2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Commands/Lower.cpp
2015-01-25 08:46:48 -05:00

20 lines
396 B
C++

#include "Lower.h"
#include "../DentRobot.h"
Lower::Lower() : Command("Lower"){
}
void Lower::Initialize(){
}
void Lower::Execute(){
DentRobot::elevator->Run(-0.4f);
}
bool Lower::IsFinished(){
// 0.1f is a placeholder for the min elevator value
return DentRobot::elevator->GetPotValue()>=0.1f;
}
void Lower::End(){
DentRobot::elevator->Run(0.0f);
}
void Lower::Interrupted(){
End();
}