Skip to content

Commit

Permalink
clarify usage of -getPeriod() in SystemTestRobot
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolSpy3 committed May 16, 2024
1 parent 283053f commit 7bc9197
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/src/systemTest/java/frc/robot/SystemTestRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private void webotsInit() {
// startup time.
robotTime.stop();
robotTime.reset();
// Set the offset to -period to run before other WPILib periodic methods
addPeriodic(robotTime::start, getPeriod(), -getPeriod());
SimDevice timeSynchronizer = SimDevice.create("TimeSynchronizer");
SimDouble simTimeSecSim = timeSynchronizer.createDouble("simTimeSec", SimDevice.Direction.kInput, -1.0);
Expand Down

0 comments on commit 7bc9197

Please sign in to comment.