mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-18 22:05:15 +03:00
Refactor HDG controller usages
This commit is contained in:
parent
c5bc1903f7
commit
d234324cff
5 changed files with 25 additions and 9 deletions
|
@ -346,7 +346,7 @@ static void updatePositionHeadingController_FW(timeUs_t currentTimeUs, timeDelta
|
|||
* Yaw adjustment
|
||||
* It is working in relative mode and we aim to keep error at zero
|
||||
*/
|
||||
if (navConfig()->fw.useFwNavYawControl) {
|
||||
if (STATE(FW_HEADING_USE_YAW)) {
|
||||
|
||||
static float limit = 0.0f;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue