Add DisabledInit to C++ Command Based template. Move and modify comment on Java version. Fixes artf3840

Change-Id: I2371fc9cf64588e38f35b17715773604df6c2392
This commit is contained in:
Kevin O'Connor
2015-06-02 10:00:34 -04:00
parent 1e4e0bacde
commit 5a094879b6
2 changed files with 18 additions and 8 deletions

View File

@@ -30,6 +30,15 @@ public class Robot extends IterativeRobot {
oi = new OI();
// instantiate the command used for the autonomous period
autonomousCommand = new ExampleCommand();
}
/**
* This function is called once each time the robot enters Disabled mode.
* You can use it to reset any subsystem information you want to clear when
* the robot is disabled.
*/
public void disabledInit(){
}
public void disabledPeriodic() {
@@ -56,14 +65,6 @@ public class Robot extends IterativeRobot {
if (autonomousCommand != null) autonomousCommand.cancel();
}
/**
* This function is called when the disabled button is hit.
* You can use it to reset subsystems before shutting down.
*/
public void disabledInit(){
}
/**
* This function is called periodically during operator control
*/