Vehicle.Forward 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.
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
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