Skip to content

Commit

Permalink
update D term default
Browse files Browse the repository at this point in the history
  • Loading branch information
breadoven committed Jan 10, 2025
1 parent 512b677 commit 92e9315
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3598,7 +3598,7 @@ D gain of altitude PID controller (Fixedwing)

| Default | Min | Max |
| --- | --- | --- |
| 6 | 0 | 255 |
| 10 | 0 | 255 |

---

Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ groups:
max: 255
- name: nav_fw_pos_z_d
description: "D gain of altitude PID controller (Fixedwing)"
default_value: 6
default_value: 10
field: bank_fw.pid[PID_POS_Z].D
min: 0
max: 255
Expand Down
2 changes: 1 addition & 1 deletion src/main/navigation/navigation.c
Original file line number Diff line number Diff line change
Expand Up @@ -4960,7 +4960,7 @@ void navigationUsePIDs(void)

navPidInit(&posControl.pids.fw_alt, (float)pidProfile()->bank_fw.pid[PID_POS_Z].P / 100.0f,
(float)pidProfile()->bank_fw.pid[PID_POS_Z].I / 100.0f,
(float)pidProfile()->bank_fw.pid[PID_POS_Z].D / 200.0f,
(float)pidProfile()->bank_fw.pid[PID_POS_Z].D / 300.0f,
(float)pidProfile()->bank_fw.pid[PID_POS_Z].FF / 100.0f,
NAV_DTERM_CUT_HZ,
0.0f
Expand Down

0 comments on commit 92e9315

Please sign in to comment.