2014-05-24 14:29:44 -04:00
|
|
|
#include <WPILib.h>
|
|
|
|
#include "../Definitions.h"
|
|
|
|
|
|
|
|
class JoystickController
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Joystick *rightJoystick, *leftJoystick;
|
|
|
|
public:
|
|
|
|
int leftJoystickValues[];
|
|
|
|
int rightJoystickValues[];
|
2014-05-25 14:41:10 -04:00
|
|
|
float leftJoystickAxisValues[];
|
|
|
|
float rightJoystickAxisValues[];
|
|
|
|
float throttle;
|
2014-05-24 14:29:44 -04:00
|
|
|
JoystickController();
|
2014-05-25 14:41:10 -04:00
|
|
|
void updateJoysticks();
|
2014-05-24 14:29:44 -04:00
|
|
|
void getRightJoystick();
|
|
|
|
void getLeftJoystick();
|
2014-05-25 14:41:10 -04:00
|
|
|
void getLeftJoystickAxis();
|
|
|
|
void getRightJoystickAxis();
|
2014-05-24 14:29:44 -04:00
|
|
|
};
|