2
0
mirror of https://github.com/team2059/Dent synced 2024-12-28 21:02:30 -05:00
dent/Commands/Collector/RollIn.h

47 lines
865 B
C
Raw Normal View History

2015-02-13 19:40:23 -05:00
#ifndef ROLLIN_H
#define ROLLIN_H
2015-01-16 19:29:55 -05:00
2015-01-17 12:55:51 -05:00
#include "Commands/Command.h"
#include "../../DentRobot.h"
#include "../../DentRobot.h"
2015-01-16 19:29:55 -05:00
#include "WPILib.h"
2015-03-01 17:19:00 -05:00
/**
* @brief Rolls collector motors in until a timeout is reached
*/
2015-07-31 12:52:15 -04:00
class RollIn: public Command {
private:
double rawSpeed; //<! Raw speed of the collector
public:
/**
* @brief Constructs RollIn
*
* @param speed Speed to roll the collector
*/
RollIn(double speed);
/**
* @brief Initializes the class
*/
void Initialize();
/**
* @brief Rolls the four collector motors in
*/
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();
2015-01-16 19:29:55 -05:00
};
#endif
2015-02-08 12:26:15 -05:00
// vim: ts=2:sw=2:et