2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/Commands/Elevator/OpenArm.h

47 lines
736 B
C
Raw Normal View History

2015-10-08 16:14:57 +00:00
#ifndef OPENARM_H
#define OPENARM_H
#include "Commands/Command.h"
#include "WPILib.h"
/**
2015-10-10 06:51:23 +00:00
* @brief Opens bin retaining arm
2015-10-08 16:14:57 +00:00
*/
class OpenArm: public Command {
public:
/**
* @brief Constructs OpenArm
*
* @param timeout Timeout in seconds
*/
OpenArm(double timeout);
/**
* @brief Constructs OpenArm
*/
OpenArm();
/**
* @brief Initializes the class
*/
void Initialize();
/**
2015-10-10 06:51:23 +00:00
* @brief Sets the solenoid to open the arm
2015-10-08 16:14:57 +00:00
*/
void Execute();
/**
* @brief Returns true to prevent solenoid damage
*
* @return True
*/
bool IsFinished();
/**
* @brief Ends the command
*/
void End();
/**
* @brief Calls End()
*/
void Interrupted();
};
#endif
// vim: ts=2:sw=2:et