2015-02-07 09:17:20 -05:00
|
|
|
#ifndef CHECKDRIVE_H
|
|
|
|
#define CHECKDRIVE_H
|
|
|
|
|
|
|
|
#include "Commands/Command.h"
|
2015-03-09 10:53:35 -04:00
|
|
|
#include "../../DentRobot.h"
|
2015-02-07 09:17:20 -05:00
|
|
|
#include "../../DentRobot.h"
|
|
|
|
#include "WPILib.h"
|
|
|
|
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief TODO
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
class CheckDrive: public CommandGroup{
|
|
|
|
private:
|
2015-03-02 08:28:03 -05:00
|
|
|
int motor; //<! TODO
|
2015-02-07 09:17:20 -05:00
|
|
|
public:
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief TODO
|
|
|
|
*
|
2015-03-10 20:49:32 -04:00
|
|
|
* @param motorID
|
2015-03-01 17:19:00 -05:00
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
CheckDrive(int);
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Initializes the class
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
void Initialize();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief TODO
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
void Execute();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Checks if the command is finished
|
|
|
|
*
|
|
|
|
* @return TODO
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
bool IsFinished();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief TODO
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
void End();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Calls End()
|
|
|
|
*/
|
2015-02-07 09:17:20 -05:00
|
|
|
void Interrupted();
|
|
|
|
};
|
|
|
|
#endif
|