2015-02-20 15:54:41 -05:00
|
|
|
#ifndef BINCLOSEARMS_H
|
|
|
|
#define BINCLOSEARMS_H
|
|
|
|
|
|
|
|
#include "Commands/Command.h"
|
|
|
|
#include "WPILib.h"
|
|
|
|
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Closes BinElevatorArms (NOT USED)
|
|
|
|
*
|
|
|
|
* Sets the solenoid to close the arms of the BinElevator
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
class BinCloseArms: public Command{
|
|
|
|
public:
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Constructs BinCloseArms
|
2015-03-09 10:07:54 -04:00
|
|
|
*
|
2015-03-09 11:15:57 -04:00
|
|
|
* @param timeout The timeout
|
2015-03-01 17:19:00 -05:00
|
|
|
*/
|
2015-03-09 10:07:54 -04:00
|
|
|
BinCloseArms(double timeout = 0.5);
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Initializes the class
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
void Initialize();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Sets the solenoid to close the arms
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
void Execute();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Returns true to prevent solenoid damage
|
|
|
|
*
|
|
|
|
* @return True
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
bool IsFinished();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Ends the command
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
void End();
|
2015-03-01 17:19:00 -05:00
|
|
|
/**
|
|
|
|
* @brief Calls End()
|
|
|
|
*/
|
2015-02-20 15:54:41 -05:00
|
|
|
void Interrupted();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// vim: ts=2:sw=2:et
|