Browse Source

AP_Module: Update for AHRS NED changes

mission-4.1.18
Michael du Breuil 8 years ago committed by Andrew Tridgell
parent
commit
95edf6ab66
  1. 2
      libraries/AP_Module/AP_Module.cpp

2
libraries/AP_Module/AP_Module.cpp

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

Loading…
Cancel
Save