메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
OnPropertyChanged ( string name ) : void | ||
StopTimerInternal ( ) : void |
public Motor ( BrickPortMotor port ) : System | ||
port | BrickPortMotor | Motor port |
리턴 | System |
public Motor ( BrickPortMotor port, int timeout ) : System | ||
port | BrickPortMotor | |
timeout | int | |
리턴 | System |
public SetPolarity ( Polarity polarity ) : void | ||
polarity | Polarity | Polarity of the motor, backward, forward or opposite |
리턴 | void |
public SetSpeed ( int speed ) : void | ||
speed | int | speed is between -255 and +255 |
리턴 | void |
public SetTachoCount ( |
||
position | New offset, 0 to reset | |
리턴 | void |