-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add force mode to input ports and output ports #123
Comments
Tiny thing, I assume |
Fixed. Thanks! |
This should help with Mindsensors Touch Sensor Multiplexer, which is currently autodetected as an nxt touch sensor. It is currently possible to trick ev3dev into detecting it as a generic nxt analog sensor by pressing nxt touch sensor connected to TouchMUX port T3 while plugging TouchMUX into ev3. (hope this is the right place to file this note) |
Yes. And you should also open a new issue for the touch sensor multiplexer since we don't have a driver for it yet. Would you be interested in writing the driver? If not, I would like to at least enlist you to do some homework for us. Open a new issue and we will pick up the conversation there. |
Added |
Thanks. But I think "pwm" might be preferable to "led". I was thinking that instead of a LED one can connect one of those RC servo motors or a poor man' DAC... and probably much more interesting devices. |
Linux already has a leds class that we are using for the built-in leds, so I don't see a reason to not use it. If you really want raw pwm device, then you can disable the port completely as discussed in #121. Also, I will soon be adding a new device class for servo motors, so I need to rethink the list above. |
Added |
@JorgePe, Actually, the |
@dlech I agree with you (raw as catch-all). |
|
The input portion of this is done in 283f0be. |
The input ports implementation is included in kernel version 3.16.1-3-ev3dev. If there are any problems, please open a new issue. |
Uhrm, I am missing something. |
I have not yet implemented force mode for motors |
OK, than I understand. |
Output ports is implemented in ev3dev/ev3-kernel@8f76af4 |
These changes have been released in kernel v3.16.1-6-ev3dev. No more resistors required! |
Confirmed: Power Functions Motor M running as "rcx-motor" with just a 8528 NXT->RCX conversion cable, no need for resistors at all. |
Currently, input and output ports only auto-detect sensors. We need to add a module parameter (or sysfs attribute -
but I think module parameter is better for thison second thought sysfs attribute is better) that allows users to force ports into a specific mode.In fact, maybe we remove the disable_in/out_port parameters and just have mode fore parameters that include a disable mode.Nope. we better keep these.For input ports, the modes will be:
disabled
The legoev3 port driver won't touch the underlying gpios or other system devices so that they are free to be used directlyauto
nxt-analog
nxt-analog-host
will be loaded whether a sensor is plugged in or not. A driver can then be loaded using theset_sensor
attribute.nxt-i2c
ev3-uart
other-uart
raw
For output ports...
disabled
The legoev3 port driver won't touch the underlying gpios, pwms or other system devices so that they are free to be used directlyauto
tacho-motor
servo-motor
dc-motor
led
raw
The text was updated successfully, but these errors were encountered: