Browse Source

AP_Module: rename AP_AHRS::get_position to get_location

gps-1.3.1
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
3f8fe9d3ef
  1. 2
      libraries/AP_Module/AP_Module.cpp

2
libraries/AP_Module/AP_Module.cpp

@ -177,7 +177,7 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs)
state.origin.altitude = loc.alt*0.01f; state.origin.altitude = loc.alt*0.01f;
} }
if (ahrs.get_position(loc)) { if (ahrs.get_location(loc)) {
state.position.available = true; state.position.available = true;
state.position.latitude = loc.lat; state.position.latitude = loc.lat;
state.position.longitude = loc.lng; state.position.longitude = loc.lng;

Loading…
Cancel
Save