From 9f4e08888efe0b53d0dd4db98b61de673df41f4d Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Thu, 29 Feb 2024 08:31:39 +0000 Subject: [PATCH] Plane: remove duplicate check for guided mode Signed-off-by: Rhys Mainwaring --- ArduPlane/GCS_Mavlink.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 9e258d71ef25d7..81bceaf86c6517 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -1451,10 +1451,7 @@ void GCS_MAVLINK_Plane::handle_set_position_target_global_int(const mavlink_mess } } - // only accept position updates when in GUIDED mode - if (!plane.control_mode->is_guided_mode()) { - return; - } + // update path guidance plane.mode_guided.handle_guided_path_request( cmd.content.location, unit_vel, path_curvature, dir_is_ccw);