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