AP_Camera: replace location_offset() and get_distance() function calls with Location object member function calls

This allows removing duplicated code
This commit is contained in:
Dr.-Ing. Amilcar do Carmo Lucas 2019-02-25 01:16:19 +01:00 committed by Peter Barker
parent c977a646db
commit dba80c95d5
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ void AP_Camera::update()
return;
}
if (get_distance(current_loc, _last_location) < _trigg_dist) {
if (current_loc.get_distance(_last_location) < _trigg_dist) {
return;
}