Class for synchronizing two motors
More...
|
| MotorSync (OutputBitfield bitfield) |
| Initializes a new instance of the MonoBrickFirmware.IO.MotorSync class. More...
|
|
| MotorSync (MotorPort port1, MotorPort port2) |
| Initializes a new instance of the MonoBrickFirmware.IO.MotorSync class. More...
|
|
WaitHandle | StepSync (sbyte speed, Int16 turnRatio, UInt32 steps, bool brake) |
| Syncronise steps between two motors More...
|
|
WaitHandle | TimeSync (sbyte speed, Int16 turnRatio, UInt32 timeInMs, bool brake) |
| Syncronise time between two motors More...
|
|
void | SetSpeed (sbyte speed, Int16 turnRatio) |
| Move both motors with the same speed More...
|
|
bool | IsRunning () |
| Determines whether the motor(s) are running. More...
|
|
virtual void | Brake () |
| Brake the motor (is still on but does not move) More...
|
|
virtual void | Off () |
| Turn the motor off More...
|
|
virtual void | SetPower (sbyte power) |
| Sets the power of the motor. More...
|
|
|
void | CancelPolling () |
|
WaitHandle | WaitForMotorsToStop () |
|
WaitHandle | WaitForMotorsToStartAndStop () |
|
Class for synchronizing two motors
MonoBrickFirmware.Movement.MotorSync.MotorSync |
( |
OutputBitfield |
bitfield | ) |
|
|
inline |
Initializes a new instance of the MonoBrickFirmware.IO.MotorSync class.
- Parameters
-
Initializes a new instance of the MonoBrickFirmware.IO.MotorSync class.
- Parameters
-
void MonoBrickFirmware.Movement.MotorSync.SetSpeed |
( |
sbyte |
speed, |
|
|
Int16 |
turnRatio |
|
) |
| |
|
inline |
Move both motors with the same speed
- Parameters
-
speed | Speed of the motors. |
turnRatio | Turn ratio (-200 to 200). |
WaitHandle MonoBrickFirmware.Movement.MotorSync.StepSync |
( |
sbyte |
speed, |
|
|
Int16 |
turnRatio, |
|
|
UInt32 |
steps, |
|
|
bool |
brake |
|
) |
| |
|
inline |
Syncronise steps between two motors
- Parameters
-
speed | Speed of the motors. |
turnRatio | Turn ratio (-200 to 200). |
steps | Steps to move. |
brake | If set to true motors will brake when done otherwise off. |
WaitHandle MonoBrickFirmware.Movement.MotorSync.TimeSync |
( |
sbyte |
speed, |
|
|
Int16 |
turnRatio, |
|
|
UInt32 |
timeInMs, |
|
|
bool |
brake |
|
) |
| |
|
inline |
Syncronise time between two motors
- Parameters
-
speed | Speed of the motors. |
turnRatio | Turn ratio (-200 to 200). |
timeInMs | Time in ms to move. |
brake | If set to true motors will brake when done otherwise off. |
Gets or sets the motor bit field.
The bit field.
The documentation for this class was generated from the following file: