<< Previous | Next >>

servo_set_pos

void servo_set_pos( int which, long pos, long vel );

Description

Move the specified servo motor to a specified position and set the specified velocity at that position. This cancels any move which is currently in effect.

Parameters

which
Servo (0 or 1)

pos
Position, as an encoder count

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_vel, servo_millirpm2vcmd


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