-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOI.h
More file actions
80 lines (78 loc) · 2.3 KB
/
Copy pathOI.h
File metadata and controls
80 lines (78 loc) · 2.3 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// RobotBuilder Version: 0.0.2
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in th future.
#ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "Round.h"
class OI {
private:
static const double PotRange;
Joystick* m_leftStick;
Joystick* m_rightStick;
Joystick* m_gameStick;
JoystickButton* m_rightTrigger;
JoystickButton* m_leftTrigger;
JoystickButton* m_rightButton2;
JoystickButton* m_rightButton3;
JoystickButton* m_rightButton4;
JoystickButton* m_rightButton5;
JoystickButton* m_rightButton6;
JoystickButton* m_rightButton7;
JoystickButton* m_rightButton8;
JoystickButton* m_rightButton9;
JoystickButton* m_rightButton10;
JoystickButton* m_rightButton11;
JoystickButton* m_leftButton2;
JoystickButton* m_leftButton3;
JoystickButton* m_leftButton4;
JoystickButton* m_leftButton5;
JoystickButton* m_leftButton6;
JoystickButton* m_leftButton7;
JoystickButton* m_leftButton8;
JoystickButton* m_leftButton9;
JoystickButton* m_leftButton10;
JoystickButton* m_gameButton1;
JoystickButton* m_gameButton2;
JoystickButton* m_gameButton3;
JoystickButton* m_gameButton4;
JoystickButton* m_gameButton5;
JoystickButton* m_gameButton6;
JoystickButton* m_gameButton7;
JoystickButton* m_gameButton8;
DriverStationEnhancedIO* m_enhancedIO;
DigitalIOButton m_EasyButton;
public:
enum AutonomousVariant {
AV_2 = 2,
AV_4 = 4,
AV_6 = 6,
AV_8 = 8,
AV_NONE = 10
};
OI();
DriverStation *station;
DriverStationLCD *screen;
Joystick* getm_rightStick();
Joystick* getm_leftStick();
float getCrouch();
AutonomousVariant getAutonomousVariant();
float getCatapultSpeed();
float getCatapultDuration();
bool getAutonomousCatapultState();
void printEncoderValues();
void printCrouch();
void printAngle();
void printVariant();
void printDurationValue();
void printTargeting();
void UpdateScreen();
void SetLEDState(bool value);
};
#endif