-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOI.h
49 lines (47 loc) · 1.03 KB
/
OI.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
#ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "Commands/Command.h"
/**
* @brief Controls the robot with joysticks
*/
class OI{
private:
Joystick *leftStick, //<! Left joystick
*rightStick; //<! Right joystick
public:
/**
* @brief Constructs OI
*/
OI();
Command *raise, //<! Raise command
*lower, //<! Lower command
*binLower, //<! BinLower command
*binRaise; //<! BinRaise command
/**
* @brief Returns the right joystick
*
* @return The right joystick
*/
Joystick* GetRightStick();
/**
* @brief Returns the left joystick
*
* @return The left joystick
*/
Joystick* GetLeftStick();
/**
* @brief Returns the left joystick throttle
*
* @return The left joystick throttle
*/
double GetLeftThrottle();
/**
* @brief Returns the right joystick throttle
*
* @return The right joystick throttle
*/
double GetRightThrottle();
};
#endif
// vim: ts=2:sw=2:et