1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00

Merge pull request #9462 from breadoven/abo_circularloiter_fix

Fixed wing RC altitude adjustment fix
This commit is contained in:
breadoven 2023-11-08 19:37:41 +00:00 committed by GitHub
commit a0b2844012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,8 +518,8 @@ void applyFixedWingPositionController(timeUs_t currentTimeUs)
// POSITION_TARGET_UPDATE_RATE_HZ should be chosen keeping in mind that position target shouldn't be reached until next pos update occurs
// FIXME: verify the above
calculateVirtualPositionTarget_FW(HZ2S(MIN_POSITION_UPDATE_RATE_HZ) * 2);
updatePositionHeadingController_FW(currentTimeUs, deltaMicrosPositionUpdate);
needToCalculateCircularLoiter = false;
}
else {
// Position update has not occurred in time (first iteration or glitch), reset altitude controller