mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Reorder TrapezoidProfile.calculate() arguments (#5874)
ProfiledPIDController and ExponentialProfile use current, then goal. This isn't a breaking change because this overload of calculate() is new for 2024.
This commit is contained in:
@@ -79,7 +79,7 @@ class TrapezoidProfileCommand
|
||||
void Initialize() override { m_timer.Restart(); }
|
||||
|
||||
void Execute() override {
|
||||
m_output(m_profile.Calculate(m_timer.Get(), m_goal(), m_currentState()));
|
||||
m_output(m_profile.Calculate(m_timer.Get(), m_currentState(), m_goal()));
|
||||
}
|
||||
|
||||
void End(bool interrupted) override { m_timer.Stop(); }
|
||||
|
||||
Reference in New Issue
Block a user