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

24 lines
532 B
C++

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