Merge "Run the scheduler in disabled (fixes artf3631)"

This commit is contained in:
Brad Miller (WPI)
2014-10-17 13:50:35 -07:00
committed by Gerrit Code Review
2 changed files with 9 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ private:
autonomousCommand = new ExampleCommand();
lw = LiveWindow::GetInstance();
}
void DisabledPeriodic()
{
Scheduler::GetInstance()->Run();
}
void AutonomousInit()
{

View File

@@ -31,6 +31,10 @@ public class Robot extends IterativeRobot {
// instantiate the command used for the autonomous period
autonomousCommand = new ExampleCommand();
}
public void disabledPeriodic() {
Scheduler.getInstance().run();
}
public void autonomousInit() {
// schedule the autonomous command (example)