From 4820a7d9368d6b13222ada08ca604403f43b71d4 Mon Sep 17 00:00:00 2001 From: Drone-Lab <2334088143@qq.com> Date: Sat, 14 Mar 2026 02:48:06 +0800 Subject: [PATCH] fix(navigator): fix bug in DO_CHANGE_ALTITUDE Co-authored-by: Nathaniel-hl <3181616004@qq.com> --- src/modules/navigator/navigator_main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 4102427954..497486fcae 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -461,12 +461,6 @@ void Navigator::run() // set the altitude corresponding to command rep->current.alt = PX4_ISFINITE(cmd.param1) ? cmd.param1 : get_global_position()->alt; - if (_vstatus.vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING - && (get_position_setpoint_triplet()->current.type != position_setpoint_s::SETPOINT_TYPE_TAKEOFF)) { - - preproject_stop_point(rep->current.lat, rep->current.lon); - } - if (PX4_ISFINITE(curr->current.loiter_radius) && curr->current.loiter_radius > FLT_EPSILON) { rep->current.loiter_radius = curr->current.loiter_radius;