Skip to content

Commit

Permalink
[commands] TrapezoidProfileSubsystem: Fix incorrect ordering of param…
Browse files Browse the repository at this point in the history
…eters (#6338)
  • Loading branch information
rzblue authored Feb 2, 2024
1 parent d4533a8 commit 6cc7e52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public TrapezoidProfileSubsystem(TrapezoidProfile.Constraints constraints) {

@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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6cc7e52

Please sign in to comment.