Skip to content

Commit

Permalink
Merge pull request #9462 from breadoven/abo_circularloiter_fix
Browse files Browse the repository at this point in the history
Fixed wing RC altitude adjustment fix
  • Loading branch information
breadoven authored Nov 8, 2023
2 parents a54849b + 9c01d06 commit a0b2844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/navigation/navigation_fixedwing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0b2844

Please sign in to comment.