Rover: call check_latlng in location_from_command_t

.... rather than in each caller to it
This commit is contained in:
Peter Barker
2026-05-20 18:50:29 +10:00
committed by Peter Barker
parent ab778e9861
commit dc90983bab
-4
View File
@@ -513,10 +513,6 @@ MAV_RESULT GCS_MAVLINK_Rover::handle_command_int_do_reposition(const mavlink_com
return MAV_RESULT_DENIED;
}
// sanity check location
if (!check_latlng(packet.x, packet.y)) {
return MAV_RESULT_DENIED;
}
if (packet.x == 0 && packet.y == 0) {
return MAV_RESULT_DENIED;
}