Vehicle.Forward Method

Definition

Overloads

Forward(Int32)

Run forward at the specified speed

Forward(Int32, Int32)

Run forward for the specified number of milliseconds

Forward(Int32)

Run forward at the specified speed

public void Forward (int speed);
member this.Forward : int -> unit
Public Sub Forward (speed As Integer)

Parameters

speed
Int32

speed is between -255 and +255

Applies to

Forward(Int32, Int32)

Run forward for the specified number of milliseconds

public void Forward (int speed, int timeout);
member this.Forward : int * int -> unit
Public Sub Forward (speed As Integer, timeout As Integer)

Parameters

speed
Int32

speed is between -255 and +255

timeout
Int32

number of milliseconds to run the motors

Applies to