mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
20 lines
396 B
C++
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();
|
|
}
|