2
0
mirror of https://github.com/team2059/Dent synced 2025-01-07 22:14:14 -05:00
dent/Commands/CloseCollector.cpp
2015-02-02 20:43:22 -05:00

19 lines
412 B
C++

#include "CloseCollector.h"
CloseCollector::CloseCollector() : Command("CloseCollector"){
Requires(DentRobot::collector);
}
void CloseCollector::Initialize(){
SetTimeout(0.5);
}
void CloseCollector::Execute(){
DentRobot::collector->MoveArms(.1);
}
bool CloseCollector::IsFinished(){
return DentRobot::collector->ArmSensor();
}
void CloseCollector::End(){
}
void CloseCollector::Interrupted(){
End();
}