mirror of https://github.com/ArduPilot/ardupilot
ArduSub: move check_latlng to Location
This commit is contained in:
parent
43dcf066c1
commit
8425a58585
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue