Go to the source code of this file.
|
| string | createCommandStringPlayStateOutputs (const CscState &stateToBePlayed, bool safe=false, const CscStateExtras &playStateExtras={0, 0, 0}) |
| |
| string | createCommandStringPlayStateOutputsForWheels (const CscEntityModel *entityModel, double speedLeft, double speedRight, bool safe=false, const CscStateExtras &playStateExtras={0, 0, 0}) |
| |
| CscState * | stateFromWheelsSpeedPercent (const CscEntityModel *entityModel, double speedLeftPercent, double speedRightPercent) |
| |
◆ createCommandStringPlayStateOutputs()
| string createCommandStringPlayStateOutputs |
( |
const CscState & |
stateToBePlayed, |
|
|
bool |
safe = false, |
|
|
const CscStateExtras & |
playStateExtras = {0, 0, 0} |
|
) |
| |
- Parameters
-
| safe | if true, SAFE_PLAY_STATE_OUTPUTS command will be issued (Conscience Firmware stops moving after a delay, as a safety). PLAY_STATE_OUTPUTS otherwise |
◆ createCommandStringPlayStateOutputsForWheels()
| string createCommandStringPlayStateOutputsForWheels |
( |
const CscEntityModel * |
entityModel, |
|
|
double |
speedLeft, |
|
|
double |
speedRight, |
|
|
bool |
safe = false, |
|
|
const CscStateExtras & |
playStateExtras = {0, 0, 0} |
|
) |
| |
- Parameters
-
| speedLeft | from -100 to 100 |
| speedRight | from -100 to 100 |
- See also
- #createCommandString()
◆ stateFromWheelsSpeedPercent()
| CscState* stateFromWheelsSpeedPercent |
( |
const CscEntityModel * |
entityModel, |
|
|
double |
speedLeftPercent, |
|
|
double |
speedRightPercent |
|
) |
| |