From 73db3c382329a7524cab65c57192cf7d67402ea3 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 29 Sep 2023 02:52:46 +0100 Subject: [PATCH] Plane: MAV_CMD_GUIDED_CHANGE_HEADING: allow changing heading type or rate for same heading --- ArduPlane/GCS_Mavlink.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 15593a66fd..7bc9f72ce7 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -919,11 +919,6 @@ MAV_RESULT GCS_MAVLINK_Plane::handle_command_int_guided_slew_commands(const mavl float new_target_heading = radians(wrap_180(packet.param2)); - // if packet is requesting us to go to the heading we are already going to, we-re already on it. - if ( (is_equal(new_target_heading,plane.guided_state.target_heading))) { // compare two floats as near-enough - return MAV_RESULT_ACCEPTED; - } - // course over ground if ( int(packet.param1) == HEADING_TYPE_COURSE_OVER_GROUND) { // compare as nearest int plane.guided_state.target_heading_type = GUIDED_HEADING_COG;