How to stop RC Servo (RCC1000_0 ) during motion?
Posted: Fri Mar 06, 2020 4:29 pm
Hello Phidget Forums,
I have an 16X RC Servo Phidget (RCC1000_0), board version 110.
I use the board to move a servo slowly (5 °/second). I do something like this:
[*] phidget.getPosition(), returns 0.0°
[*] phidget.setVelocityLimit(5.0)
[*] phidget.setTargetPosition(180.0)
How can I stop the servo in the middle of its motion?
Originally, I wanted to do something like this:
But as shown here: viewtopic.php?p=31367, it's not possible to get position updates during motion, with this board.
Aside
When the servo's current position != target position, and it's velocity limit is 0.0 °/second, the servo's getIsMoving() method still returns True. I think, since it's not moving, getIsMoving() should return False.
I have an 16X RC Servo Phidget (RCC1000_0), board version 110.
I use the board to move a servo slowly (5 °/second). I do something like this:
[*] phidget.getPosition(), returns 0.0°
[*] phidget.setVelocityLimit(5.0)
[*] phidget.setTargetPosition(180.0)
How can I stop the servo in the middle of its motion?
Originally, I wanted to do something like this:
Code: Select all
phidget.setTargetPosition(phidget.getPosition())
Aside
When the servo's current position != target position, and it's velocity limit is 0.0 °/second, the servo's getIsMoving() method still returns True. I think, since it's not moving, getIsMoving() should return False.