LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
DriverStationConfig.h
1 #ifndef DRIVER_STATION_CONFIG_H_
2 #define DRIVER_STATION_CONFIG_H_
3 
8 namespace DriverStationConfig
9 {
10 namespace JoystickConfig
11 {
12 const uint32_t NUM_JOYSTICK_BUTTONS = 12;// Max supported by the driver station software.
13  // Having more than 12 can cause a crash in very particular scenarios involving broken USB hubs.
14 const uint32_t NUM_JOYSTICK_AXES = 6;
15 const uint32_t NUM_WHEEL_BUTTONS = 11;
16 
17 const uint32_t NUM_WHEEL_AXES = 3;
18 const uint32_t DRIVER_STICK_PORT = 1;
19 const uint32_t OPERATOR_STICK_PORT = 2;
20 const uint32_t DRIVER_WHEEL_PORT = 3;
21 }
22 namespace JoystickButtons
23 {
24 //Driver stick
25 const uint32_t COLLECTOR_SLIDE = 1;
26 const uint32_t FIRE = 2;
27 const uint32_t MANUAL_FIRE = 3;
28 const uint32_t START_CLIMB = 4;
29 
30 //const uint32_t FORCE_CLIMB_ADVANCE= 4;
31 
32 const uint32_t VECTOR_DRIVE = 8;
33 const uint32_t AUTO_AIM_BACKBOARD = 9;
34 //const uint32_t FEEDER_STATION_APPROACH = 3;
35 const uint32_t APPLY_CONFIG = 5;
36 const uint32_t LOAD_CONFIG = 6;
37 const uint32_t SAVE_CONFIG = 7;
38 const uint32_t RESET_ZERO = 10;
39 const uint32_t PAUSE_AUTON = 11;
40 
41 //Driver wheel
42 const uint32_t FLASHLIGHT_A = 7;
43 const uint32_t FLASHLIGHT_B = 11;
44 
45 //Operator stick
46 const uint32_t SHOOTER_OFF = 1;
47 const uint32_t SHOOTER_ON = 2;
48 const uint32_t CONDITIONAL_ABORT = 2;
49 const uint32_t CONTINUE_CLIMB = 3;
50 const uint32_t CHANGE_ANGLE = 4;
51 const uint32_t COLLECTOR_DOWN_NO_MOTOR = 5;
52 const uint32_t COLLECT_OPERATOR = 6;
53 const uint32_t CLIMBER_ARMS = 7;
54 const uint32_t PAWL_UP = 8;
55 const uint32_t PAWL_DOWN = 9;
56 //const uint32_t RECORD = 9;
57 const uint32_t PURGE = 10;
58 const uint32_t DISENGAGE_PTO = 11;
59 const uint32_t ENGAGE_PTO = 12;
60 const uint32_t STOP_ROBOT = 5;
61 const uint32_t REVERSE_DRIVE = 6;
62 }
63 namespace DigitalIns
64 {
65 const uint32_t MOTORS = 1;
66 const uint32_t DRIVETRAIN = 2;
67 const uint32_t COLLECTOR = 3;
68 const uint32_t SHOOTER = 4;
69 const uint32_t CLIMBER = 5;
70 const uint32_t WINCH_PAWL = 6;
71 const uint32_t COMPRESSOR = 7;
72 const uint32_t COMP_UNIT_TEST = 8;
73 }
74 namespace AnalogIns
75 {
76 const uint32_t AUTONOMOUS_DELAY = 1;
77 const uint32_t AUTONOMOUS_SELECT = 2;
78 const uint32_t NUM_FRISBEES = 3;
79 }
80 }
81 
82 #endif