Browse Source

ArduCopter: move check_latlng to Location

master
Pierre Kancir 6 years ago committed by Tom Pittenger
parent
commit
43dcf066c1
  1. 2
      ArduCopter/GCS_Mavlink.cpp

2
ArduCopter/GCS_Mavlink.cpp

@ -553,7 +553,7 @@ MAV_RESULT GCS_MAVLINK_Copter::_handle_command_preflight_calibration(const mavli @@ -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…
Cancel
Save