Method | Description | |
---|---|---|
Backward ( int speed ) : void |
Run backward at the specified speed
|
|
Backward ( int speed, int timeout ) : void |
Run backward for the specified number of milliseconds
|
|
Foreward ( int speed, int timeout ) : void |
Run forward for the specified number of milliseconds
|
|
Forward ( int speed ) : void |
Run forward at the specified speed
|
|
IsRunning ( ) : bool |
Return true if the vehicule is moving
|
|
Stop ( ) : void |
Stop the vehicule
|
|
TrunLeftTime ( int speed, int timeout ) : void |
Turn the vehicule left for a number of milliseconds
|
|
TrunRightTime ( int speed, int timeout ) : void |
Turn the vehicule right for a number of milliseconds
|
|
TurnLeft ( int speed, int degrees ) : void |
Turn the vehicule left by the specified number of degrees for each motor. So 360 will do 1 motor turn. You need to do some math to have the actual vehicule turning fully at 360. It depends of the reduction used.
|
|
TurnRight ( int speed, int degrees ) : void |
Turn the vehicule right by the specified number of degrees for each motor. So 360 will do 1 motor turn. You need to do some math to have the actual vehicule turning fully at 360. It depends of the reduction used.
|
|
Vehicule ( BrickPortMotor left, BrickPortMotor right ) : System |
Create a vehicule with 2 motors, one left and one right
|
Method | Description | |
---|---|---|
IsRunning ( BrickPortMotor port ) : bool | ||
RunMotorSyncDegrees ( BrickPortMotor ports, int speeds, int degrees ) : Task | ||
RunMotorSyncTime ( BrickPortMotor ports, int speeds, int timeout ) : Task | ||
RunUntil ( object state ) : void | ||
StartMotor ( int port, int speed ) : void | ||
StopMotor ( int port ) : void |
public Backward ( int speed ) : void | ||
speed | int | speed is between -255 and +255 |
return | void |
public Backward ( int speed, int timeout ) : void | ||
speed | int | speed is between -255 and +255 |
timeout | int | >number of milliseconds to run the motors |
return | void |
public Foreward ( int speed, int timeout ) : void | ||
speed | int | speed is between -255 and +255 |
timeout | int | >number of milliseconds to run the motors |
return | void |
public Forward ( int speed ) : void | ||
speed | int | speed is between -255 and +255 |
return | void |
public TrunLeftTime ( int speed, int timeout ) : void | ||
speed | int | speed is between -255 and +255 |
timeout | int | number of milliseconds to run the motors |
return | void |
public TrunRightTime ( int speed, int timeout ) : void | ||
speed | int | speed is between -255 and +255 |
timeout | int | number of milliseconds to run the motors |
return | void |
public TurnLeft ( int speed, int degrees ) : void | ||
speed | int | speed is between -255 and +255 |
degrees | int | degrees to turn each motor |
return | void |
public TurnRight ( int speed, int degrees ) : void | ||
speed | int | speed is between -255 and +255 |
degrees | int | degrees to turn each motor |
return | void |
public Vehicule ( BrickPortMotor left, BrickPortMotor right ) : System | ||
left | BrickPortMotor | Motor port for left motor |
right | BrickPortMotor | Motor port for right motor |
return | System |