Clean up unit UDL usage (#6961)

This commit is contained in:
Tyler Veness
2024-08-14 10:44:00 -07:00
committed by GitHub
parent 70fa41c69e
commit 8e0d9ac805
25 changed files with 57 additions and 77 deletions

View File

@@ -56,15 +56,12 @@ class TrapezoidProfileCommand
void Initialize() override {}
void Execute() override {
m_output(
m_profile.Calculate(units::second_t{0.02}, m_currentState(), m_goal()));
m_output(m_profile.Calculate(20_ms, m_currentState(), m_goal()));
}
void End(bool interrupted) override {}
bool IsFinished() override {
return m_profile.IsFinished(units::second_t{0});
}
bool IsFinished() override { return m_profile.IsFinished(0_s); }
private:
frc::TrapezoidProfile<Distance> m_profile;