next up previous contents
Next: int servo_rad(float angle) Up: 9.1.2 Servo Motor Previous: void servo_on()

int servo(int period)

Sets length of servo control pulse. Value is the time in half-microseconds of the positive portion of a rectangular wave that is generated on the PA7 pin for use in controlling a servo motor. Minimum allowable value is 1400 (i.e., 700 sec); maximum is 4860.

Function return value is actual period set by driver software.

Fred G. Martin
Fri Mar 29 17:44:15 EST 1996