Vehicle.TurnRight(Int32, Int32) Method

Definition

Turn the vehicle right by the specified number of degrees for each motor. So 360 will do 1 motor turn. You need to do some math to have the actual vehicle turning fully at 360. It depends of the reduction used.

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

Parameters

speed
Int32

speed is between -255 and +255

degrees
Int32

degrees to turn each motor

Applies to