mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
32 lines
697 B
C++
32 lines
697 B
C++
|
|
#include "ExampleCommand.h"
|
||
|
|
|
||
|
|
ExampleCommand::ExampleCommand() {
|
||
|
|
// Use Requires() here to declare subsystem dependencies
|
||
|
|
// eg. Requires(chassis);
|
||
|
|
}
|
||
|
|
|
||
|
|
// 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() {
|
||
|
|
}
|