![]() |
MonoBrick EV3 Firmware
|
Class for controlling a vehicle More...
Public Member Functions | |
| Vehicle (MotorPort left, MotorPort right) | |
| Initializes a new instance of the Vehicle class. More... | |
| void | Backward (sbyte speed) |
| Run backwards More... | |
| WaitHandle | Backward (sbyte speed, UInt32 degrees, bool brake) |
| Run backwards More... | |
| void | Forward (sbyte speed) |
| Run forward More... | |
| WaitHandle | Forward (sbyte speed, UInt32 degrees, bool brake) |
| Run forward More... | |
| void | SpinLeft (sbyte speed) |
| Spins the vehicle left. More... | |
| WaitHandle | SpinLeft (sbyte speed, UInt32 degrees, bool brake) |
| Spins the left. More... | |
| void | SpinRight (sbyte speed) |
| Spins the vehicle right More... | |
| WaitHandle | SpinRight (sbyte speed, UInt32 degrees, bool brake) |
| Spins the vehicle right More... | |
| void | Off () |
| Stop moving the vehicle More... | |
| void | Brake () |
| Brake the vehicle (the motor is still on but it does not move) More... | |
| void | TurnRightForward (sbyte speed, sbyte turnPercent) |
| Turns the vehicle right More... | |
| WaitHandle | TurnRightForward (sbyte speed, sbyte turnPercent, UInt32 degrees, bool brake) |
| Turns the vehicle right More... | |
| void | TurnRightReverse (sbyte speed, sbyte turnPercent) |
| Turns the vehicle right while moving backwards More... | |
| WaitHandle | TurnRightReverse (sbyte speed, sbyte turnPercent, UInt32 degrees, bool brake) |
| Turns the vehicle right while moving backwards More... | |
| void | TurnLeftForward (sbyte speed, sbyte turnPercent) |
| Turns the vehicle left More... | |
| WaitHandle | TurnLeftForward (sbyte speed, sbyte turnPercent, UInt32 degrees, bool brake) |
| Turns the vehicle left More... | |
| void | TurnLeftReverse (sbyte speed, sbyte turnPercent) |
| Turns the vehicle left while moving backwards More... | |
| WaitHandle | TurnLeftReverse (sbyte speed, sbyte turnPercent, UInt32 degrees, bool brake) |
| Turns the vehicle left while moving backwards More... | |
Properties | |
| MotorPort | LeftPort [get, set] |
| Gets or sets the left motor More... | |
| MotorPort | RightPort [get, set] |
| Gets or sets the right motor More... | |
| bool | ReverseLeft [get, set] |
| Gets or sets a value indicating whether the left motor is running in reverse direction More... | |
| bool | ReverseRight [get, set] |
| Gets or sets a value indicating whether the right motor is running in reverse direction More... | |
Class for controlling a vehicle
Initializes a new instance of the Vehicle class.
| left | The left motor of the vehicle |
| right | The right motor of the vehicle |
|
inline |
Run backwards
| speed | Speed of the vehicle -100 to 100 |
|
inline |
Run backwards
| speed | Speed. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Brake the vehicle (the motor is still on but it does not move)
|
inline |
Run forward
| speed | Speed of the vehicle -100 to 100 |
|
inline |
Run forward
| speed | Speed. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Stop moving the vehicle
|
inline |
Spins the vehicle left.
| speed | Speed of the vehicle -100 to 100 |
|
inline |
Spins the left.
| speed | Speed. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Spins the vehicle right
| speed | Speed -100 to 100 |
|
inline |
Spins the vehicle right
| speed | Speed. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Turns the vehicle left
| speed | Speed of the vehicle -100 to 100 |
| turnPercent | Turn percent. |
|
inline |
Turns the vehicle left
| speed | Speed. |
| turnPercent | Turn percent. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Turns the vehicle left while moving backwards
| speed | Speed of the vehicle -100 to 100 |
| turnPercent | Turn percent. |
|
inline |
Turns the vehicle left while moving backwards
| speed | Speed. |
| turnPercent | Turn percent. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Turns the vehicle right
| speed | Speed of the vehicle -100 to 100 |
| turnPercent | Turn percent |
|
inline |
Turns the vehicle right
| speed | Speed. |
| turnPercent | Turn percent. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
inline |
Turns the vehicle right while moving backwards
| speed | Speed of the vehicle -100 to 100 |
| turnPercent | Turn percent. |
|
inline |
Turns the vehicle right while moving backwards
| speed | Speed. |
| turnPercent | Turn percent. |
| degrees | Degrees. |
| brake | If set to true motors will brake when done otherwise off. |
|
getset |
Gets or sets the left motor
The left motor
|
getset |
Gets or sets a value indicating whether the left motor is running in reverse direction
true if left motor is reverse; otherwise, false.
|
getset |
Gets or sets a value indicating whether the right motor is running in reverse direction
true if right motor is reverse; otherwise, false.
|
getset |
Gets or sets the right motor
The right motor
1.8.3.1