[[home/Alessandruino/InMoov2.joystick.py]]

kwatters

9 years 5 months ago

Thanks for sharing this example!  

I've tried this out and some varients on it.  I notice that you don't get publishRX called unless the joystick position changes.  I was thinking that we could try this with setSpeed(value)  to scale the speed and just start the servo moving towards the max position  (if value is positive) and towards min position (if the value is negative).

when the joysticks return to the zero position, the speed would be 0 and the servo's shouldn't move.

I think the idea is, if you loose connection to the joystick  (or let go) the robot shouldn't move.  Movements of the joysticks should be considered incremental to the current servo position.