mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Rover: call check_latlng in location_from_command_t
.... rather than in each caller to it
This commit is contained in:
committed by
Peter Barker
parent
ab778e9861
commit
dc90983bab
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user