Browse Source

AP_Limits: fix for new AP_Math API

Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
612ede81f4
  1. 2
      libraries/AP_Limits/AP_Limit_Geofence.cpp

2
libraries/AP_Limits/AP_Limit_Geofence.cpp

@ -93,7 +93,7 @@ bool AP_Limit_Geofence::triggered() {
// simple mode, pointers to current and home exist. // simple mode, pointers to current and home exist.
if (_simple && _current_loc && _home) { if (_simple && _current_loc && _home) {
distance = (uint32_t) get_distance(_current_loc, _home); distance = (uint32_t) get_distance(*_current_loc, *_home);
if (distance > 0 && distance > (uint16_t) _radius) { if (distance > 0 && distance > (uint16_t) _radius) {
// TRIGGER // TRIGGER

Loading…
Cancel
Save