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


Changes the servo centre position and range at runtime.
Allows you to change the configuration of your servo at any time. You may want to do this, for example, because you have stored the servo settings in EEPROM and want to revert to those values rather than the values specified in Project Designer.
Servo. setConfig(centre,range)
Where Servo is the name you have given to the device in Project Designer.
The pulse length, in microseconds, that makes the servo move to the centre position. For a modified servo it will cause the servo to stop rotating. The default value is 1500 (ie 1.5ms)
Specifies, in microseconds, the maximum pulse width change about the centre position. The default is 500.
Assume we have already created a servo called 'servo1' then we can modify its centre position to 1450 with a range of 475 by calling:
servo1.setConfig(1450, 475);



Valid XHTML 1.0 Transitional