mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-08 11:24:02 +08:00
AP_Module: Update for AHRS NED changes
This commit is contained in:
committed by
Andrew Tridgell
parent
3274f1dbb1
commit
95edf6ab66
@@ -179,7 +179,7 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS_NavEKF &ahrs)
|
||||
}
|
||||
|
||||
Vector3f pos;
|
||||
if (ahrs.get_relative_position_NED(pos)) {
|
||||
if (ahrs.get_relative_position_NED_origin(pos)) {
|
||||
state.relative_position[0] = pos[0];
|
||||
state.relative_position[1] = pos[1];
|
||||
state.relative_position[2] = pos[2];
|
||||
|
||||
Reference in New Issue
Block a user