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

20 lines
376 B
C++

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