mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Module: rename AP_AHRS::get_position to get_location
This commit is contained in:
committed by
Andrew Tridgell
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;
|
||||
|
||||
Reference in New Issue
Block a user