[commands] TrapezoidProfileSubsystem: Fix incorrect ordering of parameters (#6338)

This commit is contained in:
Ryan Blue
2024-02-01 23:24:43 -05:00
committed by GitHub
parent d4533a8900
commit 6cc7e52de7
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class TrapezoidProfileSubsystem : public SubsystemBase {
m_period(period) {}
void Periodic() override {
m_state = m_profile.Calculate(m_period, m_goal, m_state);
m_state = m_profile.Calculate(m_period, m_state, m_goal);
if (m_enabled) {
UseState(m_state);
}