ArduCopter: 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 5a7081b457
commit 43dcf066c1

View File

@ -553,7 +553,7 @@ MAV_RESULT GCS_MAVLINK_Copter::_handle_command_preflight_calibration(const mavli
MAV_RESULT GCS_MAVLINK_Copter::handle_command_do_set_roi(const Location &roi_loc) MAV_RESULT GCS_MAVLINK_Copter::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;
} }
copter.flightmode->auto_yaw.set_roi(roi_loc); copter.flightmode->auto_yaw.set_roi(roi_loc);