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

46 lines
834 B
C
Raw Normal View History

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
*
* @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