mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 23:53:34 +08:00
FwModeManager: don't skip takeoff detection if not yet in air
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user