-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInput.h
66 lines (56 loc) · 1.61 KB
/
Input.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef INPUT_H
#define INPUT_H
#include "WPILib.h"
#include "CodeLevel.h"
#include "DriverStationLCD.h"
class Input {
public:
Input();
void Initialize();
bool ShouldKick();
float GetLeftDrive();
float GetRightDrive();
bool ShouldTarget();
bool MagicButton();
bool shouldReverse();
float GetArcadeLeft();
float GetArcadeRight();
bool shouldFullSuck();
double GetKickPower();
bool ShouldResetWheelEncoders();
bool ShouldExtendClimber();
bool ShouldStopExtendingClimber();
bool ShouldStartClimb();
bool ShouldClimb();
bool ShouldStopClimbing();
bool ShouldResetClimber();
bool ShouldArmKicker();
bool ShouldStopArmingKicker();
bool ShouldLaunchKicker();
bool ShouldResetKicker();
bool ShouldClimbUp();
bool ShouldClimbDown();
bool ShouldWindUp();
bool ShouldWindDown();
bool ShouldManualDriveArm();
bool YellowButton();
bool GreenButton();
bool ScorpButton();
bool ClimbButton();
//bool ShouldTarget();
//Joystick * GetStick(int stick); //FOR TESTINGONLY
// When we update the code, we will phase out the GetStick function
bool GetDigitalIn(UINT32 channel); // This is just for testing
inline UINT32 GetDBGDigitalIn(UINT32 channel) { return dseio.GetDigital(channel); }
UINT16 GetAllButtons();
inline Joystick * GetLeftStick() { return &left_stick; }
inline Joystick * GetRightStick() { return &right_stick; }
inline Joystick * GetOtherStick() { return &arcade_stick; }
private:
bool getInputAsButton(int in);
Joystick right_stick;
Joystick left_stick;
Joystick arcade_stick;
DriverStationEnhancedIO & dseio;
};
#endif