mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 00:05:28 +03:00
Initial cut for NAV yaw adjustments with separate PID controller on FW
This commit is contained in:
parent
412a5b456a
commit
e7387df0f8
6 changed files with 56 additions and 0 deletions
|
@ -3195,6 +3195,13 @@ void navigationUsePIDs(void)
|
|||
0.0f,
|
||||
NAV_DTERM_CUT_HZ
|
||||
);
|
||||
|
||||
navPidInit(&posControl.pids.fw_heading, (float)pidProfile()->bank_fw.pid[PID_POS_HEADING].P / 100.0f,
|
||||
(float)pidProfile()->bank_fw.pid[PID_POS_HEADING].I / 100.0f,
|
||||
(float)pidProfile()->bank_fw.pid[PID_POS_HEADING].D / 100.0f,
|
||||
0.0f,
|
||||
NAV_DTERM_CUT_HZ
|
||||
);
|
||||
}
|
||||
|
||||
void navigationInit(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue