Vehicle.TurnLeft(Int32, Int32) Method

Definition

Turn the vehicle left 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 TurnLeft (int speed, int degrees);
member this.TurnLeft : int * int -> unit
Public Sub TurnLeft (speed As Integer, degrees As Integer)

Parameters

speed
Int32

speed is between -255 and +255

degrees
Int32

degrees to turn each motor

Applies to