[commands] Use Timer.restart() (#5023)

This commit is contained in:
Sriman Achanta
2023-01-29 10:21:07 -05:00
committed by GitHub
parent 8bf67b1b33
commit f75acd11ce
18 changed files with 18 additions and 40 deletions

View File

@@ -38,8 +38,7 @@ public class Robot extends TimedRobot {
/** This function is run once each time the robot enters autonomous mode. */
@Override
public void autonomousInit() {
m_timer.reset();
m_timer.start();
m_timer.restart();
}
/** This function is called periodically during autonomous. */

View File

@@ -47,8 +47,7 @@ public class Robot extends TimedRobot {
@Override
public void autonomousInit() {
m_timer.reset();
m_timer.start();
m_timer.restart();
m_drive.resetOdometry(m_trajectory.getInitialPose());
}