Skip to content

Commit

Permalink
AC_PID: If PD max limiting isn't active clear the flag
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell committed Oct 11, 2023
1 parent 28d827c commit bc8ddab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AC_PID/AC_PID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ float AC_PID::update_all(float target, float measurement, float dt, bool limit,
P_out *= PD_scale;
D_out *= PD_scale;
_pid_info.PD_limit = true;
} else {
_pid_info.PD_limit = false;
}
}

Expand Down

0 comments on commit bc8ddab

Please sign in to comment.