-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPoseControl.h
74 lines (56 loc) · 1.5 KB
/
PoseControl.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
67
68
69
70
71
72
73
74
#ifndef POSE_CONTROL_H__
#define POSE_CONTROL_H__
#include "WPILib.h"
#include "Hardware.h"
class PoseControl
{
private:
PoseControl() {} // Private
//Position Buttons
static bool Position_1;
static bool Position_2;
static bool Position_3;
static bool Position_4;
static bool Position_5;
static bool Position_6;
static bool Position_7;
static bool Position_8;
static bool Position_9;
//Misc Buttons
static bool Pos_Ground;
static bool Pos_Stow;
static bool Pos_Slot;
static bool Trav_Up;
static bool Oper_Orient;
//Execute Buttons
static bool Go_To;
//Binary Variables
static int BinInput;
//Position Variables
static float ArmVar;
static int ShutVar;
static int DriveVar;
static int PoseCommand;
static int Config;
static bool InvalidState;
static int m_state;
static float m_current_arm;
static int m_current_shuttle;
static void ConfigurePose();
public:
//See the .cpp for reasoning on commenting this out
/*static bool GetBinVar();*/
static bool GetShut1();
static bool GetShut2();
static bool GetShut3();
static float GetArmPosition();
static int GetState() { return Config; }
static void Init();
static void Process();
static bool GetGoToButton() { return Go_To; }
static bool UsePoseControl() { return true; }
typedef enum { kStraightUp = 13, kScore = 9999, kScore2 = 9998};
static void GoToPose(int pose);
static bool GetInvalidState() { return InvalidState; }
};
#endif