Files
allwpilib/eclipse-plugins/edu.wpi.first.wpilib.plugins.cpp/resources/templates/command-based/Command.cpp

32 lines
665 B
C++
Raw Normal View History

#include "$classname.h"
$classname::$classname() {
// Use Requires() here to declare subsystem dependencies
// eg. Requires(chassis);
}
// Called just before this Command runs the first time
void $classname::Initialize() {
}
// Called repeatedly when this Command is scheduled to run
void $classname::Execute() {
}
// Make this return true when this Command no longer needs to run execute()
bool $classname::IsFinished() {
return false;
}
// Called once after isFinished returns true
void $classname::End() {
}
// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void $classname::Interrupted() {
}