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
|