-
Notifications
You must be signed in to change notification settings - Fork 0
/
RERRobot.h
51 lines (41 loc) · 903 Bytes
/
RERRobot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef RERROBOT_H
#define RERROBOT_H
#include "outputcommon.h"
#include "modebase.h"
#include "modedisabled.h"
#include "modeteleoperated.h"
#include "modeautonomous.h"
#include "modetest.h"
#include "arduino.h"
#include "input/jsbase.h"
#include "solenoidbreakout.h"
#include <RobotBase.h>
#ifndef BUILDING
#include "generated.h"
#else
#include "gen_out.h"
#endif
class RERRobot : public RobotBase, public OutputCommon {
private:
typedef enum {
unknown = 0,
test = 1,
teleop = 2,
autonomous = 3
} mode_type;
public:
RERRobot();
~RERRobot();
void setup();
void StartCompetition(); // The entry point
void setupSmartDashboard();
private:
bool disabled;
mode_type mode;
ModeBase *enabledMode;
ModeBase *disabledMode;
int cyclecounter;
double lastcycle;
double compound;
};
#endif // RERROBOT_H