Skip to content

Commit

Permalink
Plane: remove duplicate check for guided mode
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Mar 5, 2024
1 parent 4b9a540 commit 9f4e088
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ArduPlane/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9f4e088

Please sign in to comment.