mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Remove delay from periodic methods. (#243)
This commit is contained in:
committed by
Peter Johnson
parent
28e178b1a8
commit
2c15bb247e
@@ -223,7 +223,6 @@ public class IterativeRobot extends RobotBase {
|
||||
System.out.println("Default IterativeRobot.robotPeriodic() method... Overload me!");
|
||||
m_rpFirstRun = false;
|
||||
}
|
||||
Timer.delay(0.001);
|
||||
}
|
||||
|
||||
private boolean m_dpFirstRun = true;
|
||||
@@ -244,7 +243,6 @@ public class IterativeRobot extends RobotBase {
|
||||
System.out.println("Default IterativeRobot.disabledPeriodic() method... Overload me!");
|
||||
m_dpFirstRun = false;
|
||||
}
|
||||
Timer.delay(0.001);
|
||||
}
|
||||
|
||||
private boolean m_apFirstRun = true;
|
||||
@@ -265,7 +263,6 @@ public class IterativeRobot extends RobotBase {
|
||||
System.out.println("Default IterativeRobot.autonomousPeriodic() method... Overload me!");
|
||||
m_apFirstRun = false;
|
||||
}
|
||||
Timer.delay(0.001);
|
||||
}
|
||||
|
||||
private boolean m_tpFirstRun = true;
|
||||
@@ -286,7 +283,6 @@ public class IterativeRobot extends RobotBase {
|
||||
System.out.println("Default IterativeRobot.teleopPeriodic() method... Overload me!");
|
||||
m_tpFirstRun = false;
|
||||
}
|
||||
Timer.delay(0.001);
|
||||
}
|
||||
|
||||
private boolean m_tmpFirstRun = true;
|
||||
|
||||
Reference in New Issue
Block a user