-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathControllers.h
54 lines (43 loc) · 1.05 KB
/
Controllers.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 _Controllers_
#define _Controllers_
#include "WPILib.h"
class Controllers
{
public:
Controllers(float period, int driverStickNum, int helperStickNum);
void GetInputs();
bool IsHighGearButtonPressed();
bool IsFireButtonPressed();
bool IsEjectButtonPressed();
bool IsEjectButtonFront();
bool IsFeederLeftButtonPressed();
bool IsFeederRightButtonPressed();
bool IsDebugArmButtonPressed();
bool IsLightButtonPressed();
Joystick* GetDriverJoystick();
float GetPeriod();
bool IsBackwardDirectionPressed();
bool IsFireSafetyButtonPressed();
private:
bool FireCatapult;
bool SafetyFireCatapult;
bool EjectBall;
bool EjectBallFront;
bool FeederLeftPressed;
bool PrevFeederLeftPressed;
bool FeederRightPressed;
bool PrevFeederRightPressed;
bool HighGearToggle;
bool PrevHighGearButton;
bool DebugArmButton;
bool LightButtonPressed;
bool PrevLightButtonPressed;
bool SwitchDirection;
bool ForwardDirection;
bool BackwardDirection;
bool BackwardButton;
float period;
Joystick* driverStick;
//Joystick* helperStick;
};
#endif