MRMS
mrm-robot-min.h
1 #pragma once
2 #include <mrm-action.h>
3 #include <mrm-robot.h>
4 
5 /* All the Action-classes have to be forward declared here (before RobotMin) as RobotMin declaration uses them. The other option would be
6 not to declare them here, but in that case Action-objects in RobotMin will have to be declared as ActionBase class, forcing downcast later in code, if
7 derived functions are used.*/
8 
9 
12 class RobotMin : public Robot {
13 
14  MotorGroupDifferential* motorGroup = NULL; // Class that conveys commands to motors.
15 
16  // Actions' declarations
17 
18 
19 public:
23  RobotMin(char name[] = (char*)"RCJ Min");
24 
27  void bitmapsSet() {}
28 
31  void goAhead(){}
32 
35  void loop();
36 };
37 
38 
Definition: mrm-board.h:403
Definition: mrm-robot.h:42
Definition: mrm-robot-min.h:12
RobotMin(char name[]=(char *)"RCJ Min")
Definition: mrm-robot-min.cpp:18
void bitmapsSet()
Definition: mrm-robot-min.h:27
void goAhead()
Definition: mrm-robot-min.h:31
void loop()
Definition: mrm-robot-min.cpp:50