2014-06-24 16:54:17 -07:00
|
|
|
#include "OpenClaw.h"
|
|
|
|
|
|
|
|
|
|
#include "Robot.h"
|
|
|
|
|
|
|
|
|
|
OpenClaw::OpenClaw() {
|
2015-07-24 19:19:40 -04:00
|
|
|
Requires(Robot::collector.get());
|
2014-06-24 16:54:17 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called just before this Command runs the first time
|
|
|
|
|
void OpenClaw::Initialize() {
|
|
|
|
|
Robot::collector->Open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called repeatedly when this Command is scheduled to run
|
|
|
|
|
void OpenClaw::Execute() {}
|
|
|
|
|
|
|
|
|
|
// Make this return true when this Command no longer needs to run execute()
|
|
|
|
|
bool OpenClaw::IsFinished() {
|
|
|
|
|
return Robot::collector->IsOpen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called once after isFinished returns true
|
|
|
|
|
void OpenClaw::End() {}
|
|
|
|
|
|
|
|
|
|
// Called when another command which requires one or more of the same
|
|
|
|
|
// subsystems is scheduled to run
|
|
|
|
|
void OpenClaw::Interrupted() {}
|