From 5a7081b45775f35eb44345dbb9c88a5dc2930d0b Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 8 Apr 2019 15:51:24 +0200 Subject: [PATCH] GCS_MAVLink: move check_latlng to Location --- libraries/GCS_MAVLink/GCS_Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 3ebef1fedb..bb7bff5ec8 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2776,7 +2776,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_camera(const mavlink_command_long_t &pack void GCS_MAVLINK::set_ekf_origin(const Location& loc) { // check location is valid - if (!check_latlng(loc)) { + if (!loc.check_latlng()) { return; } @@ -3731,7 +3731,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_do_set_roi(const Location &roi_loc) } // sanity check location - if (!check_latlng(roi_loc)) { + if (!roi_loc.check_latlng()) { return MAV_RESULT_FAILED; }