mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Use Timer.restart() (#5023)
This commit is contained in:
@@ -63,10 +63,7 @@ class TrapezoidProfileCommand
|
||||
this->AddRequirements(requirements);
|
||||
}
|
||||
|
||||
void Initialize() override {
|
||||
m_timer.Reset();
|
||||
m_timer.Start();
|
||||
}
|
||||
void Initialize() override { m_timer.Restart(); }
|
||||
|
||||
void Execute() override { m_output(m_profile.Calculate(m_timer.Get())); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user