2015-01-17 12:55:51 -05:00
|
|
|
#ifndef DRIVE_H
|
|
|
|
#define DRIVE_H
|
|
|
|
|
|
|
|
#include "Commands/Command.h"
|
2015-03-09 10:53:35 -04:00
|
|
|
#include "../../DentRobot.h"
|
2015-02-03 15:55:11 -05:00
|
|
|
#include "../../DentRobot.h"
|
2015-01-17 12:55:51 -05:00
|
|
|
#include "WPILib.h"
|
|
|
|
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Drives the robot with a joystick
|
|
|
|
*
|
|
|
|
* Uses mechanum drive
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
class Drive: public Command{
|
|
|
|
public:
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Constructs Drive
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
Drive();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Initializes the class
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
void Initialize();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Drives the robot with joysticks from OI
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
void Execute();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Checks if the command is finished
|
|
|
|
*
|
|
|
|
* @return False
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
bool IsFinished();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Ends the command
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
void End();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Calls End()
|
|
|
|
*/
|
2015-01-17 12:55:51 -05:00
|
|
|
void Interrupted();
|
|
|
|
};
|
|
|
|
#endif
|
2015-02-08 12:26:15 -05:00
|
|
|
// vim: ts=2:sw=2:et
|