2013-12-15 18:30:16 -05:00
|
|
|
#include "ExampleCommand.h"
|
|
|
|
|
|
2014-02-25 18:43:40 -05:00
|
|
|
ExampleCommand::ExampleCommand()
|
|
|
|
|
{
|
2013-12-15 18:30:16 -05:00
|
|
|
// Use Requires() here to declare subsystem dependencies
|
|
|
|
|
// eg. Requires(chassis);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called just before this Command runs the first time
|
2014-02-25 18:43:40 -05:00
|
|
|
void ExampleCommand::Initialize()
|
|
|
|
|
{
|
|
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called repeatedly when this Command is scheduled to run
|
2014-02-25 18:43:40 -05:00
|
|
|
void ExampleCommand::Execute()
|
|
|
|
|
{
|
|
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Make this return true when this Command no longer needs to run execute()
|
2014-02-25 18:43:40 -05:00
|
|
|
bool ExampleCommand::IsFinished()
|
|
|
|
|
{
|
2013-12-15 18:30:16 -05:00
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called once after isFinished returns true
|
2014-02-25 18:43:40 -05:00
|
|
|
void ExampleCommand::End()
|
|
|
|
|
{
|
|
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called when another command which requires one or more of the same
|
|
|
|
|
// subsystems is scheduled to run
|
2014-02-25 18:43:40 -05:00
|
|
|
void ExampleCommand::Interrupted()
|
|
|
|
|
{
|
|
|
|
|
|
2013-12-15 18:30:16 -05:00
|
|
|
}
|