AP_Module: rename AP_AHRS::get_position to get_location

This commit is contained in:
Peter Barker 2022-01-21 10:42:41 +11:00 committed by Andrew Tridgell
parent f51914ed25
commit 3f8fe9d3ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;