From 8425a58585e37f7d20a4a80a0d9046dbbe3b925a Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 8 Apr 2019 15:51:25 +0200 Subject: [PATCH] ArduSub: move check_latlng to Location --- ArduSub/GCS_Mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 22d0e35478..4a07f0d296 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -451,7 +451,7 @@ MAV_RESULT GCS_MAVLINK_Sub::_handle_command_preflight_calibration(const mavlink_ MAV_RESULT GCS_MAVLINK_Sub::handle_command_do_set_roi(const Location &roi_loc) { - if (!check_latlng(roi_loc)) { + if (!roi_loc.check_latlng()) { return MAV_RESULT_FAILED; } sub.set_auto_yaw_roi(roi_loc);