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

begin

Marks the start of a group of commands.
These servos are often used in humanoid robots and given the number of servos involved and time taken to update them all then you may notice each servo moving one after the other.
This command allows you to mark the start of a group of commands and would normally be placed at the start of your appControl loop. The commands are sent out to the servos in the main loop but they are only acted upon when the end() command is received at the end of your main loop.
Syntax
DynamixelAX12Driver. begin()
 
Parameters
None
Returns
None
Example
Assuming you have called the driver 'ax12_driver' and the servos 'servo1', 'servo2' etc then you can force the servos to update their new movement simultaneously as follows:-
ax12_driver.begin();
servo1.setSpeed(45);
servo2.setSpeed(-45);
servo3.setSpeed(68);
servo4.setSpeed(92);
ax12_driver.end();

 

 

Valid XHTML 1.0 Transitional