WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

getActualIsMoving

Following a successful read() this will return TRUE if the servo is actually moving or FALSE if not.
Syntax
DynamixelAX12. getActualIsMoving()
Where DynamixelAX12 is the name you have given to the device in Project Designer.
Parameters
None
Returns
boolean
Note
If you have looked at the other information returned by read() then you may think that this call is obsolete. ie we know where we have asked the servo to move to, and what its current position and speed are. Surely - the servo will be moving if its not in the 'correct' position?
Well if the load it is trying to move is too big then it may not actually be able to move it. This function allows you to see if the servo is actually moving or not under its own power. Of course the servo may be moving for other reasons - eg it cannot support the load you have placed on it and so it is slipping.

 

 

Valid XHTML 1.0 Transitional