setVelocity

setVelocity(port, velocity, ezb index);

Parameters

port The servo port
velocity The velocity value
ezb index (optional) The ezb index

Description

Set the velocity of a servo. The servo and servo driver must support this feature. For example, check the Dynamixel robot skill because some of their servos support the Velocity feature.

Example

// Set the velocity of the servo v1 to 10. By default, this will use EZB #0 because no ezb is specified
Servo.setVelocity(v1, 10)


// Specify the velocity of servo V1 on ezb index #3
Servo.setVelocity(v1, 10, 3)