2015-02-10 20:12:41 -05:00
|
|
|
#ifndef BINLOWER_H
|
|
|
|
#define BINLOWER_H
|
2015-01-31 12:16:02 -05:00
|
|
|
|
|
|
|
#include "Commands/Command.h"
|
|
|
|
#include "WPILib.h"
|
|
|
|
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Lowers the bin elevator until a timeout is reached
|
|
|
|
*/
|
2015-02-10 20:12:41 -05:00
|
|
|
class BinLower: public Command{
|
2015-02-27 06:47:10 -05:00
|
|
|
private:
|
2015-01-31 12:16:02 -05:00
|
|
|
public:
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Constructs BinLower
|
|
|
|
*
|
2015-03-10 20:49:32 -04:00
|
|
|
* @param timeout The timeout
|
2015-03-01 17:19:00 -05:00
|
|
|
*/
|
2015-03-09 10:07:54 -04:00
|
|
|
BinLower(float timeout);
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Initializes the class
|
|
|
|
*/
|
2015-01-31 12:16:02 -05:00
|
|
|
void Initialize();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Lowers the bin elevator at -1.0 power
|
|
|
|
*/
|
2015-01-31 12:16:02 -05:00
|
|
|
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
|
|
|
|
*/
|
2015-01-31 12:16:02 -05:00
|
|
|
bool IsFinished();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Sets the bin elevator to stop
|
|
|
|
*/
|
2015-01-31 12:16:02 -05:00
|
|
|
void End();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Calls End()
|
|
|
|
*/
|
2015-01-31 12:16:02 -05:00
|
|
|
void Interrupted();
|
|
|
|
};
|
|
|
|
#endif
|
2015-02-08 12:26:15 -05:00
|
|
|
// vim: ts=2:sw=2:et
|