mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +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 @@ public class TrapezoidProfileCommand extends Command {
|
||||
@SuppressWarnings("removal")
|
||||
public void execute() {
|
||||
if (m_newAPI) {
|
||||
m_output.accept(m_profile.calculate(m_timer.get(), m_goal.get(), m_currentState.get()));
|
||||
m_output.accept(m_profile.calculate(m_timer.get(), m_currentState.get(), m_goal.get()));
|
||||
} else {
|
||||
m_output.accept(m_profile.calculate(m_timer.get()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user