mirror of https://github.com/ArduPilot/ardupilot
AP_Module: rename AP_AHRS::get_position to get_location
This commit is contained in:
parent
f51914ed25
commit
3f8fe9d3ef
|
@ -177,7 +177,7 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs)
|
|||
state.origin.altitude = loc.alt*0.01f;
|
||||
}
|
||||
|
||||
if (ahrs.get_position(loc)) {
|
||||
if (ahrs.get_location(loc)) {
|
||||
state.position.available = true;
|
||||
state.position.latitude = loc.lat;
|
||||
state.position.longitude = loc.lng;
|
||||
|
|
Loading…
Reference in New Issue