mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[commands] Use Timer.restart() (#5023)
This commit is contained in:
@@ -22,8 +22,7 @@ class Robot : public frc::TimedRobot {
|
||||
void RobotPeriodic() override { m_drive.Periodic(); }
|
||||
|
||||
void AutonomousInit() override {
|
||||
m_timer.Reset();
|
||||
m_timer.Start();
|
||||
m_timer.Restart();
|
||||
m_drive.ResetOdometry(m_trajectory.InitialPose());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user