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

46 lines
868 B
C
Raw Normal View History

2015-02-10 20:12:41 -05:00
#ifndef BINRAISE_H
#define BINRAISE_H
#include "Commands/Command.h"
#include "WPILib.h"
2015-03-01 17:19:00 -05:00
/**
* @brief Raises the bin elevator until a timeout is reached
*/
2015-02-10 20:12:41 -05:00
class BinRaise: public Command{
private:
2015-03-02 08:28:03 -05:00
float timeout; //<! The timeout
public:
BinRaise(double);
2015-03-01 17:19:00 -05:00
/**
* @brief Constructs BinRaise
*
* @param float Timeout in seconds
*/
BinRaise(float);
2015-03-01 17:19:00 -05:00
/**
* @brief Initializes the class
*/
void Initialize();
2015-03-01 17:19:00 -05:00
/**
* @brief Raises the bin elevator at 1.0 power
*/
void Execute();
2015-03-01 17:19:00 -05:00
/**
* @brief Checks if the command is finished
*
* @return True only if the timeout was reached
*/
bool IsFinished();
2015-03-01 17:19:00 -05:00
/**
* @brief Sets the bin elevator to stop
*/
void End();
2015-03-01 17:19:00 -05:00
/**
* @brief Calls End()
*/
void Interrupted();
};
#endif
2015-02-08 12:26:15 -05:00
// vim: ts=2:sw=2:et