FwModeManager: don't skip takeoff detection if not yet in air

This commit is contained in:
mahima-yoga
2025-12-11 12:15:23 +01:00
parent 16eac303de
commit 17bc9a28b8
@@ -1280,7 +1280,7 @@ FixedWingModeManager::control_auto_takeoff_no_nav(const hrt_abstime &now, const
_launch_current_yaw = _yaw;
}
if (_skipping_takeoff_detection) {
if (_skipping_takeoff_detection && _runway_takeoff.getState() > RunwayTakeoffState::CLAMPED_TO_RUNWAY) {
_runway_takeoff.forceSetFlyState();
}