|
|
|
@ -177,7 +177,7 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs)
@@ -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; |
|
|
|
|