Conscience Core
Functions
CscStringCommandsBuilder.h File Reference
#include "CscState.h"
#include "Exchange/ConscienceEncoder.h"

Go to the source code of this file.

Functions

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})
 
CscStatestateFromWheelsSpeedPercent (const CscEntityModel *entityModel, double speedLeftPercent, double speedRightPercent)
 

Function Documentation

◆ createCommandStringPlayStateOutputs()

string createCommandStringPlayStateOutputs ( const CscState stateToBePlayed,
bool  safe = false,
const CscStateExtras playStateExtras = {0, 0, 0} 
)
Parameters
safeif 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
speedLeftfrom -100 to 100
speedRightfrom -100 to 100
See also
#createCommandString()

◆ stateFromWheelsSpeedPercent()

CscState* stateFromWheelsSpeedPercent ( const CscEntityModel entityModel,
double  speedLeftPercent,
double  speedRightPercent 
)