Skip to content

Commit

Permalink
updated Scheduler frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshBhambhani committed Nov 11, 2019
1 parent 251e15c commit 591c20f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion MiniLib/src/edu/wpi/first/wpilibj/TimedRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void startCompetition() throws Exception {

long currentTime = System.currentTimeMillis();
while (currentTime < nextTime) {
Thread.sleep(nextTime - currentTime);
Thread.sleep((nextTime*(long)1.5) - currentTime);
currentTime = System.currentTimeMillis();
}
loopFunc();
Expand Down

0 comments on commit 591c20f

Please sign in to comment.