mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
46 lines
868 B
C++
46 lines
868 B
C++
#ifndef BINRAISE_H
|
|
#define BINRAISE_H
|
|
|
|
#include "Commands/Command.h"
|
|
#include "WPILib.h"
|
|
|
|
/**
|
|
* @brief Raises the bin elevator until a timeout is reached
|
|
*/
|
|
class BinRaise: public Command{
|
|
private:
|
|
float timeout; //<! The timeout
|
|
public:
|
|
BinRaise(double);
|
|
/**
|
|
* @brief Constructs BinRaise
|
|
*
|
|
* @param float Timeout in seconds
|
|
*/
|
|
BinRaise(float);
|
|
/**
|
|
* @brief Initializes the class
|
|
*/
|
|
void Initialize();
|
|
/**
|
|
* @brief Raises the bin elevator at 1.0 power
|
|
*/
|
|
void Execute();
|
|
/**
|
|
* @brief Checks if the command is finished
|
|
*
|
|
* @return True only if the timeout was reached
|
|
*/
|
|
bool IsFinished();
|
|
/**
|
|
* @brief Sets the bin elevator to stop
|
|
*/
|
|
void End();
|
|
/**
|
|
* @brief Calls End()
|
|
*/
|
|
void Interrupted();
|
|
};
|
|
#endif
|
|
// vim: ts=2:sw=2:et
|