mirror of https://github.com/ArduPilot/ardupilot
AP_Camera: fix for new AP_Math API
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
This commit is contained in:
parent
6b5ee80b70
commit
f3b3e23bbc
|
@ -178,7 +178,7 @@ bool AP_Camera::update_location(const struct Location &loc)
|
|||
// be called without a new GPS fix
|
||||
return false;
|
||||
}
|
||||
if (get_distance(&loc, &_last_location) < _trigg_dist) {
|
||||
if (get_distance(loc, _last_location) < _trigg_dist) {
|
||||
return false;
|
||||
}
|
||||
_last_location = loc;
|
||||
|
|
Loading…
Reference in New Issue