[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

@@ -63,7 +63,7 @@ public abstract class TrapezoidProfileSubsystem extends SubsystemBase {
@Override
public void periodic() {
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);
}