-
Notifications
You must be signed in to change notification settings - Fork 0
/
OI.cpp
31 lines (24 loc) · 1.12 KB
/
OI.cpp
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
#include "Commands/DropGear.h"
#include "Commands/PushGear.h"
#include "OI.h"
#include "RobotMap.h"
#include "WPILib.h"
OI::OI() {
std::cout << "[oi] OperatorInterface initializing..." << std::endl;
RightStick = new Joystick(RIGHTSTICKPORT); //Driver stick
LeftStick = new Joystick(LEFTSTICKPORT); //Operator Stick
//Driver Stick
SpinButton = new JoystickButton(RightStick, SPINBUTTON);
ResetButton = new JoystickButton(RightStick, RESETBUTTON);
TraverseButton = new JoystickButton(RightStick, TRAVERSEBUTTON);
CameraSwitchButton = new JoystickButton(RightStick, CAMERASWITCHBUTTON);
LockAngleButton = new JoystickButton(RightStick, LOCKANGLEBUTTON);
//Operator Stick
DropGearButton = new JoystickButton(LeftStick, DROPGEARBUTTON);
PushGearButton = new JoystickButton(LeftStick, PUSHGEARBUTTON);
PushGearOverrideButton = new JoystickButton(LeftStick, PUSHGEAROVERRIDEBUTTON);
ClimberButton = new JoystickButton(LeftStick, CLIMBERBUTTON);
GearSafetyButton = new JoystickButton(LeftStick, GEAROVERRIDEBUTTON);
//LimitSwitchCheck.WhenActive ( a new thing );
std::cout << "[oi] OperatorInterface initialized." << std::endl;
}