mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Merge "Run the scheduler in disabled (fixes artf3631)"
This commit is contained in:
@@ -15,6 +15,11 @@ private:
|
||||
autonomousCommand = new ExampleCommand();
|
||||
lw = LiveWindow::GetInstance();
|
||||
}
|
||||
|
||||
void DisabledPeriodic()
|
||||
{
|
||||
Scheduler::GetInstance()->Run();
|
||||
}
|
||||
|
||||
void AutonomousInit()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user