Skip to content

Commit

Permalink
Add calibration sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
j5155 committed Sep 28, 2024
1 parent 7b9b799 commit 7bc306e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ public PinpointDrive(HardwareMap hardwareMap, Pose2d pose) {
*/
//pinpoint.recalibrateIMU();
pinpoint.resetPosAndIMU();
// wait for pinpoint to finish calibrating
try {
Thread.sleep(300);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}

pinpoint.setPosition(pose);
}
Expand Down

0 comments on commit 7bc306e

Please sign in to comment.