MRMS
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ActionBase Class Referenceabstract
Inheritance diagram for ActionBase:
Action8x8Test ActionBluetoothTest ActionCANBusScan ActionCANBusSniff ActionCANBusStress ActionColorBTest6Colors ActionColorBTestHSV ActionColorIlluminationOff ActionColorIlluminationOn ActionColorPatternErase ActionColorPatternPrint ActionColorPatternRecognize ActionColorPatternRecord ActionColorTest6Colors ActionColorTestHSV ActionDecide ActionDeviceIdChange ActionDoNothing ActionEvacuationZone ActionFPS ActionFirmware ActionGoAhead ActionI2CTest ActionIMUTest ActionIRFinderCanTest ActionIRFinderCanTestCalculated ActionIRFinderTest ActionInfo ActionLidar2mTest ActionLidar4mTest ActionLidarCalibrate ActionLineFollow ActionLoop ActionLoop0 ActionLoop1 ActionLoop2 ActionLoop3 ActionLoop4 ActionLoop5 ActionLoop6 ActionLoop7 ActionLoop8 ActionLoop9 ActionLoopMenu ActionMap ActionMenuColor ActionMenuColorB ActionMenuMain ActionMenuReflectance ActionMenuSystem ActionMotorTest ActionMove ActionNodeServoTest ActionNodeTest ActionObstacleAvoid ActionOmniWheelsTest ActionRCJLine ActionReflectanceArrayAnalogTest ActionReflectanceArrayCalibrate ActionReflectanceArrayCalibrationPrint ActionReflectanceArrayDigitalTest ActionRescueMaze ActionServoInteractive ActionServoTest ActionSoccerCatch ActionSoccerIdle ActionSoccerPlay ActionStop ActionThermoTest ActionUS1Test ActionUS_BTest ActionWallFollow ActionWallsTest

Public Member Functions

 ActionBase (Robot *robot, const char shortcut[4], const char text[20], uint8_t menuLevel=1, BoardId boardsId=ID_ANY)
 
BoardId boardsId ()
 
bool preprocessing ()
 
void preprocessingEnd ()
 
void preprocessingStart ()
 
virtual void performAfter ()
 
virtual void performBefore ()
 
virtual void perform ()=0
 

Public Attributes

char _shortcut [4]
 
char _text [19]
 
uint8_t _menuLevel
 

Protected Attributes

BoardId _boardsId
 
bool _preprocessing = true
 
Robot_robot
 

Constructor & Destructor Documentation

◆ ActionBase()

ActionBase::ActionBase ( Robot robot,
const char  shortcut[4],
const char  text[20],
uint8_t  menuLevel = 1,
BoardId  boardsId = ID_ANY 
)

Constructor

Parameters
robot- robot
shortcut- up-to-3-letter word
text- menu entry
menuLevel- all the actions with the same menuLevel are displayed. Permitted values are: 0 (in no menu), 1, 2, 4, 16, 16, 32, 64, and 128. A menu-action changes menuLevel to its own, forcing all the actions with this menuLevel to be displayed. "|" lists action in many menus, for example 1 | 16 | 16.
boardId- menu only for a specific board

Constructor

Parameters
robot- robot
shortcut- up-to-3-letter word
text- menu entry
menuLevel- all the actions with the same menuLevel are displayed. Permitted values are: 0 (in no menu), 1, 2, 4, 8, 16, 32, 64, and 128. A menu-action changes menuLevel to its own, forcing all the actions with this menuLevel to be displayed. "|" lists action in many menus, for example 1 | 8 | 16.
boardId- menu only for a specific board

The documentation for this class was generated from the following files: