Method | Description | |
---|---|---|
GetSpeed ( ) : int |
Get the speed
|
|
GetTachoCount ( ) : |
Gets the tacho count
|
|
Motor ( BrickPortMotor port ) : System |
Create a motor
|
|
Motor ( BrickPortMotor port, int timeout ) : System | ||
SetPolarity ( Polarity polarity ) : void |
Change the polatity of the motor
|
|
SetSpeed ( int speed ) : void |
Set the speed of the motor
|
|
SetTachoCount ( |
Set Tachometer encoder offset Use this to reset or setup a specific position
|
|
Start ( ) : void |
Start the motor
|
|
Start ( int speed ) : void |
Start with the specified speed
|
|
Stop ( ) : void |
Stop the Motor
|
|
UpdateSensor ( object state ) : void |
Update the sensor and this will raised an event on the interface
|
Method | Description | |
---|---|---|
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public Motor ( BrickPortMotor port ) : System | ||
port | BrickPortMotor | Motor port |
return | System |
public Motor ( BrickPortMotor port, int timeout ) : System | ||
port | BrickPortMotor | |
timeout | int | |
return | System |
public SetPolarity ( Polarity polarity ) : void | ||
polarity | Polarity | Polarity of the motor, backward, forward or opposite |
return | void |
public SetSpeed ( int speed ) : void | ||
speed | int | speed is between -255 and +255 |
return | void |
public SetTachoCount ( |
||
position | New offset, 0 to reset | |
return | void |
public Start ( int speed ) : void | ||
speed | int | speed is between -255 and +255 |
return | void |