1
0
Fork 0
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:
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

@ -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;