2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Commands/Pneumatics/DisableCompressor.cpp

24 lines
542 B
C++

#include "DisableCompressor.h"
#include "../../DentRobot.h"
#include "../../OI.h"
DisableCompressor::DisableCompressor(double timeout): Command("DisableCompressor") {
SetTimeout(timeout);
}
void DisableCompressor::Initialize() {}
void DisableCompressor::Execute() {
DentRobot::pneumatics->SetCompressorEnabled(false);
}
bool DisableCompressor::IsFinished() {
if(IsTimedOut()) {
return true;
} else {
return false;
}
}
void DisableCompressor::End() {
}
void DisableCompressor::Interrupted() {
End();
}
// vim: ts=2:sw=2:et