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

43 lines
754 B
C
Raw Permalink Normal View History

2015-02-10 20:12:41 -05:00
#ifndef BINLOWER_H
#define BINLOWER_H
#include "Commands/Command.h"
#include "WPILib.h"
2015-03-01 17:19:00 -05:00
/**
* @brief Lowers the bin elevator until a timeout is reached
*/
2015-07-31 12:52:15 -04:00
class BinLower: public Command {
public:
/**
* @brief Constructs BinLower
*
* @param timeout Timeout in seconds
*/
BinLower(float timeout);
/**
* @brief Initializes the class
*/
void Initialize();
/**
* @brief Lowers 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
2015-02-08 12:26:15 -05:00
// vim: ts=2:sw=2:et