Méthode | Description | |
---|---|---|
Forward ( ) : void |
Tells the motor to move forward.
|
|
Forward ( |
Tells the motor to move forward for the specified amount of time.
|
|
IsState ( MotorState state ) : System.Boolean |
Determines whether the motor's current state is the specified state.
|
|
Reverse ( ) : void |
Tells the motor to reverse direction.
|
|
Reverse ( |
Tells the motor to reverse direction for the specified amount of time.
|
|
Stop ( ) : void |
Stops the motor's movement.
|
Méthode | Description | |
---|---|---|
MotorBase ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.MotorBase class. This is the default constructor.
|
|
OnMotorStateChanged ( |
Raises the motor state changed event.
|
public Forward ( |
||
millis | /// The number of milliseconds to continue moving forward for. /// | |
Résultat | void |
public IsState ( MotorState state ) : System.Boolean | ||
state | MotorState | /// The state to check for. /// |
Résultat | System.Boolean |
protected OnMotorStateChanged ( |
||
e | /// The event arguments. /// | |
Résultat | void |
public Reverse ( |
||
millis | /// The number of milliseconds to continue moving in reverse for. /// | |
Résultat | void |