Controls a Sabertooth motor driver running in Simplified Serial mode.
More...
SabertoothSimplified::SabertoothSimplified |
( |
| ) |
|
SabertoothSimplified::SabertoothSimplified |
( |
Print & |
port | ) |
|
Initializes a new instance of the SabertoothSimplified class. The specified serial port is used.
- Parameters
-
void SabertoothSimplified::drive |
( |
int |
power | ) |
|
Sets the driving power.
- Parameters
-
power | The power, between -127 and 127. |
- Examples:
- TankStyleSweep.ino.
void SabertoothSimplified::motor |
( |
int |
power | ) |
|
void SabertoothSimplified::motor |
( |
byte |
motor, |
|
|
int |
power |
|
) |
| |
Sets the power of the specified motor.
- Parameters
-
motor | The motor number, 1 or 2. |
power | The power, between -127 and 127. |
void SabertoothSimplified::stop |
( |
| ) |
|
void SabertoothSimplified::turn |
( |
int |
power | ) |
|
Sets the turning power.
- Parameters
-
power | The power, between -127 and 127. |
- Examples:
- TankStyleSweep.ino.