Dual Hbridge icon Dual Hbridge Two-channel Dual H-Bridge movement panel to control two DC motors (on/off) for forward, reverse, left, right via EZ-B digital ports; no PWM speed. Try it →
 

Right

Movement.right([speed], [timeOut])

Parameters

speed (optional) Speed to move at.
timeOut (optional) Duration to move right for in milliseconds.

Returns

Nothing

Description

Moves the robot right using the project's Movement Panel skill. The speed can be specified by providing speed as a value between 0 and 255. If timeOut is provided the robot will move right for timeOut milliseconds. Otherwise it will continue to move right until a different Movement function is called.