[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

@@ -257,8 +257,7 @@ void MecanumControllerCommand::Initialize() {
m_prevSpeeds = m_kinematics.ToWheelSpeeds(
frc::ChassisSpeeds{initialXVelocity, initialYVelocity, 0_rad_per_s});
m_timer.Reset();
m_timer.Start();
m_timer.Restart();
if (m_usePID) {
m_frontLeftController->Reset();
m_rearLeftController->Reset();