ArduCopter: move check_latlng to Location
This commit is contained in:
parent
5a7081b457
commit
43dcf066c1
@ -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)
|
||||
{
|
||||
if (!check_latlng(roi_loc)) {
|
||||
if (!roi_loc.check_latlng()) {
|
||||
return MAV_RESULT_FAILED;
|
||||
}
|
||||
copter.flightmode->auto_yaw.set_roi(roi_loc);
|
||||
|
Loading…
Reference in New Issue
Block a user