mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-18 22:05:15 +03:00
Add deadband
This commit is contained in:
parent
f80e44ac41
commit
c5bc1903f7
4 changed files with 9 additions and 3 deletions
|
@ -359,7 +359,7 @@ static void updatePositionHeadingController_FW(timeUs_t currentTimeUs, timeDelta
|
|||
float yawAdjustment = navPidApply2(
|
||||
&posControl.pids.fw_heading,
|
||||
0,
|
||||
navHeadingError,
|
||||
applyDeadband(navHeadingError, navConfig()->fw.yawControlDeadband * 100),
|
||||
US2S(deltaMicros),
|
||||
-limit,
|
||||
limit,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue