ArduSub: move check_latlng to Location

This commit is contained in:
Pierre Kancir 2019-04-08 15:51:25 +02:00 committed by Tom Pittenger
parent 43dcf066c1
commit 8425a58585
1 changed files with 1 additions and 1 deletions

View File

@ -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) 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; return MAV_RESULT_FAILED;
} }
sub.set_auto_yaw_roi(roi_loc); sub.set_auto_yaw_roi(roi_loc);