mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-21 15:25:29 +03:00
fix2
This commit is contained in:
parent
6dce0e076e
commit
81a4788246
1 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue