mirror of
https://github.com/team2059/Dent
synced 2025-01-07 22:14:14 -05:00
46 lines
863 B
C++
46 lines
863 B
C++
#ifndef DISABLECOMPRESSOR_H
|
|
#define DISABLECOMPRESSOR_H
|
|
|
|
#include "Commands/Command.h"
|
|
#include "WPILib.h"
|
|
|
|
/**
|
|
* @brief disable the compressor regardless of current psi
|
|
*/
|
|
class DisableCompressor: public Command {
|
|
private:
|
|
bool softLimits;
|
|
double speed;
|
|
public:
|
|
/**
|
|
* @brief Constructs DisableCompressor
|
|
*
|
|
* @param timeout Timeout in seconds (default: 3.5)
|
|
*/
|
|
DisableCompressor(double timeout = 3.5);
|
|
/**
|
|
* @brief Initializes the class
|
|
*/
|
|
void Initialize();
|
|
/**
|
|
* @brief DisableCompressors sets the compressor to disabled
|
|
*/
|
|
void Execute();
|
|
/**
|
|
* @brief Checks if the command is finished
|
|
*
|
|
* @return True if the timeout was reached
|
|
*/
|
|
bool IsFinished();
|
|
/**
|
|
* @brief required for command
|
|
*/
|
|
void End();
|
|
/**
|
|
* @brief Calls End()
|
|
*/
|
|
void Interrupted();
|
|
};
|
|
#endif
|
|
// vim: ts=2:sw=2:et
|