1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-19 22:35:19 +03:00

Refactor HDG controller usages

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-12-27 13:34:54 +01:00
parent c5bc1903f7
commit d234324cff
5 changed files with 25 additions and 9 deletions

View file

@ -3250,6 +3250,16 @@ void navigationInit(void)
/* Use system config */
navigationUsePIDs();
if (
mixerConfig()->platformType == PLATFORM_BOAT ||
mixerConfig()->platformType == PLATFORM_ROVER ||
navConfig()->fw.useFwNavYawControl
) {
ENABLE_STATE(FW_HEADING_USE_YAW);
} else {
DISABLE_STATE(FW_HEADING_USE_YAW);
}
}
/*-----------------------------------------------------------