ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

setSpeed

Movement.setSpeed(speed/speedLeft, [speedRight])

Parameters

speed/speedLeft Global Movement Speed value for left and right wheel. If speedRight is provided this value will be used for the global Movement Speed value of the left wheel only.
speedRight (optional) Global movement speed value for the right wheel.

Returns

Nothing

Description

Sets the global movement speed value for the left and right wheels. If speedLeft and speedRight are provided the values for the left and right wheels will be set respectively.

Example

// Set both left and right speeds to 127 (half speed)
Movement.setSpeed(127);

// Set the left speed to 100 and right speed to 200 (slightly turn left)
Movement.setSpeed(100, 200);