Vehicle.TurnRight(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for