2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00
dent/Commands/BinCollector/BinIn.cpp
2015-09-19 21:57:42 +00:00

26 lines
511 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