-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.h
47 lines (42 loc) · 1.06 KB
/
main.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
#ifndef MAIN_H
#define MAIN_H
#include <IterativeRobot.h>
#include "updateRegistry.h"
#include "EnhancedJoystick.h"
class EnhancedRobotDrive;
class EnhancedShooter;
class robot_class : public IterativeRobot {
public:
static const unsigned int BTN_CLIMBING_STATE = 9;
static const unsigned int BTN_NORMAL_STATE = 10;
enum state {
CLIMBING,
NORMAL
} curState;
robot_class();
void RobotInit();
void DisabledInit();
void AutonomousInit();
void TeleopInit();
void TestInit();
void DisabledPeriodic();
void AutonomousPeriodic();
void TeleopPeriodic();
void TestPeriodic();
UpdateRegistry disableRegistry;
UpdateRegistry updateRegistry;
EnhancedJoystick drive_gamepad; //1
EnhancedJoystick gunner_gamepad; //2
Task Autonomous;
//Hardware Info
struct hw_info {
UINT8 moduleNumber;
UINT8 channel;
};
EnhancedRobotDrive* driveTrain;
EnhancedShooter* shooter;
private:
static void setClimbing(void*);
static void setNormal(void*);
};
#endif