<< Previous | Next >>

servo_closedloop

void servo_closedloop( int which, int reset );

Description

Run specified servo in closed-loop (PID) mode.

Parameters

which
Servo (0 or 1).

reset
Whether to reset the current command list. The command list executes even while in open loop mode (although it will have no visible effect in that mode). If reset is non-zero, then the command list will be reset to empty and the motor will halt at the current position.

Library

SERVO.LIB

See Also

servo_openloop, servo_torque


Dynamic C Functions << Previous | Next >> rabbit.com