mirror of
https://github.com/team2059/Dent
synced 2024-12-18 20:52:29 -05:00
27 lines
503 B
C++
27 lines
503 B
C++
#include "BinIn.h"
|
|
#include "../../DentRobot.h"
|
|
#include "../../OI.h"
|
|
BinIn::BinIn(float timeout): Command("BinIn"){
|
|
SetTimeout(timeout);
|
|
}
|
|
void BinIn::Initialize(){
|
|
}
|
|
void BinIn::Execute(){
|
|
DentRobot::binCollector->MoveArms(0.75);
|
|
}
|
|
bool BinIn::IsFinished(){
|
|
if(IsTimedOut()){
|
|
printf("Robot stopped collecting bin.\n");
|
|
return true;
|
|
}else{
|
|
return false;
|
|
}
|
|
}
|
|
void BinIn::End(){
|
|
DentRobot::binCollector->MoveArms(0.0);
|
|
}
|
|
void BinIn::Interrupted(){
|
|
End();
|
|
}
|
|
// vim: ts=2:sw=2:et
|