1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 15:25:29 +03:00
This commit is contained in:
JuliooCesarMDM 2021-06-26 13:09:20 -03:00
parent 6dce0e076e
commit 81a4788246

View file

@ -655,12 +655,14 @@ void applyFixedWingNavigationController(navigationFSMStateFlags_t navStateFlags,
// Motor has been stopped by user. Update target altitude and bypass navigation pitch/throttle control
resetFixedWingAltitudeController();
setDesiredPosition(&navGetCurrentActualPositionAndVelocity()->pos, posControl.actualState.yaw, NAV_POS_UPDATE_Z);
} else
} else {
applyFixedWingAltitudeAndThrottleController(currentTimeUs);
}
}
if (navStateFlags & NAV_CTL_POS)
if (navStateFlags & NAV_CTL_POS) {
applyFixedWingPositionController(currentTimeUs);
}
} else {
posControl.rcAdjustment[PITCH] = 0;