<< Previous | Next >>

servo_set_vel

void servo_set_vel( int which, long vel );

Description

Move the specified servo motor at a constant velocity. This cancels any move that is currently in effect.

Parameters

which
Servo (0 or 1).

vel
Velocity, in units of encoder counts per loop update interval, times 65536. You can convert RPM to a suitable velocity command using servo_millirpm2vcmd().

Library

SERVO.LIB

See Also

servo_move_to, servo_set_pos, servo_millirpm2vcmd


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