Skip to content

Commit

Permalink
Blimp: Support PD Max
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Aug 9, 2023
1 parent 78bbc05 commit 3a142c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Blimp/Blimp.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Blimp : public AP_Vehicle

AC_PID_2D pid_pos_xy{1, 0.05, 0, 0, 0.1, 3, 3};
AC_PID_Basic pid_pos_z{0.7, 0, 0, 0, 0, 3, 3};
AC_PID pid_pos_yaw{1.2, 0.5, 0, 0, 2, 3, 3, 3}; //p, i, d, ff, imax, filt_t, filt_e, filt_d, dt, opt srmax, opt srtau
AC_PID pid_pos_yaw{1.2, 0.5, 0, 0, 0, 2, 3, 3, 3}; //p, i, d, ff, imax, pdmax, filt_t, filt_e, filt_d, dt, opt srmax, opt srtau

// System Timers
// --------------
Expand Down
8 changes: 8 additions & 0 deletions Blimp/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,14 @@ const AP_Param::Info Blimp::var_info[] = {
// @Range: 0 200
// @Increment: 0.5
// @User: Advanced

// @Param: POSYAW_PDMX
// @DisplayName: PD Sum Maximum
// @Description: The maximum/minimum value that the sum of the P and D term can output
// @Range: 0 4000
// @Increment: 10
// @Units: d%
// @User: Standard
GOBJECT(pid_pos_yaw, "POSYAW_", AC_PID),

// @Group:
Expand Down

0 comments on commit 3a142c9

Please sign in to comment.