2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Commands/Collector/RollVar.h

47 lines
941 B
C
Raw Permalink Normal View History

2015-03-21 10:24:33 -04:00
#ifndef RollVar_H
#define RollVar_H
#include "Commands/Command.h"
#include "../../DentRobot.h"
#include "../../DentRobot.h"
#include "WPILib.h"
/**
* @brief Rolls collector motors based on button 7
*/
class RollVar: public Command{
private:
2015-03-22 14:29:07 -04:00
double speed; //<! Speed multiplier of the collector
2015-03-21 10:24:33 -04:00
public:
/**
* @brief Constructs RollVar
*
* @param speedVal Speed control of the collector
*/
RollVar(double speedVal);
/**
* @brief Initializes the class
*/
void Initialize();
/**
* @brief Rolls the collector motors in variable speeds
*/
void Execute();
/**
* @brief Checks if the command is finished
*
* @return True only if the timeout was reached
*/
bool IsFinished();
/**
* @brief Sets the collector to stop
*/
void End();
/**
* @brief Calls End()
*/
void Interrupted();
};
#endif
// vim: ts=2:sw=2:et