mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[commands] TrapezoidProfileSubsystem: Fix incorrect ordering of parameters (#6338)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user