2017-10-17 21:37:58 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */
|
2017-10-17 21:37:58 -07:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#include "ExampleCommand.h"
|
|
|
|
|
|
2018-03-05 22:06:40 -08:00
|
|
|
#include "../Robot.h"
|
|
|
|
|
|
2017-10-17 21:37:58 -07:00
|
|
|
ExampleCommand::ExampleCommand() {
|
|
|
|
|
// Use Requires() here to declare subsystem dependencies
|
2018-03-05 22:06:40 -08:00
|
|
|
Requires(&Robot::m_subsystem);
|
2017-10-17 21:37:58 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called just before this Command runs the first time
|
|
|
|
|
void ExampleCommand::Initialize() {}
|
|
|
|
|
|
|
|
|
|
// Called repeatedly when this Command is scheduled to run
|
|
|
|
|
void ExampleCommand::Execute() {}
|
|
|
|
|
|
|
|
|
|
// Make this return true when this Command no longer needs to run execute()
|
|
|
|
|
bool ExampleCommand::IsFinished() {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Called once after isFinished returns true
|
|
|
|
|
void ExampleCommand::End() {}
|
|
|
|
|
|
|
|
|
|
// Called when another command which requires one or more of the same
|
|
|
|
|
// subsystems is scheduled to run
|
|
|
|
|
void ExampleCommand::Interrupted() {}
|