Describe the bug
When the motor is spinning clockwise and is commanded to start going counter-clockwise from the SetMotorDirection service, it maintains the same speed and direction of rotation.
This bug is not present when commanded to go from CCW to CW however.
To Reproduce
Steps to reproduce the behavior:
Change to controller mode to Velocity (open loop) using the SetControllerMode service. Note mode=7.
Set the target velocity to >0 rad/sec with the SetTarget service
Use the SetMotorDirection to change the rotation to CW (direction=true)
Try to change the rotation direction to CCW with the SetMotorDirection service (direction=false)
Expected behavior
When the SetMotorDirection service is called with the value of direction=false, the motor is expected to switch rotation from CW to CCW
Describe the bug When the motor is spinning clockwise and is commanded to start going counter-clockwise from the
SetMotorDirection
service, it maintains the same speed and direction of rotation. This bug is not present when commanded to go from CCW to CW however.To Reproduce Steps to reproduce the behavior:
Velocity (open loop)
using theSetControllerMode
service. Notemode=7
.SetTarget
serviceSetMotorDirection
to change the rotation to CW (direction=true
)SetMotorDirection
service (direction=false
)Expected behavior When the
SetMotorDirection
service is called with the value ofdirection=false
, the motor is expected to switch rotation from CW to CCW