2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/OI.h
2015-03-08 21:27:33 -04:00

49 lines
1004 B
C++

#ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "Commands/Command.h"
/**
* @brief Controls the robot with joysticks
*/
class OI{
private:
Joystick *leftStick, *rightStick;
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