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

19 lines
378 B
C++
Raw Normal View History

#include "Calibrate.h"
#include "../DentRobot.h"
Calibrate::Calibrate() : Command("Calibrate"){
}
void Calibrate::Initialize(){
}
void Calibrate::Execute(){
DentRobot::elevator->Run(-0.4f);
}
bool Calibrate::IsFinished(){
return DentRobot::elevator->GetPotValue()>=0.1f;
}
void Calibrate::End(){
DentRobot::elevator->Run(0.0f);
}
void Calibrate::Interrupted(){
End();
}