AP_AHRS: use get_distance_NED

This commit is contained in:
Pierre Kancir 2019-04-08 15:28:51 +02:00 committed by Peter Barker
parent 121e5d0abf
commit 0b16d7576f
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ bool AP_AHRS_NavEKF::get_relative_position_NED_home(Vector3f &vec) const
return false;
}
const Vector3f offset = location_3d_diff_NED(originLLH, _home);
const Vector3f offset = originLLH.get_distance_NED(_home);
vec.x = originNED.x - offset.x;
vec.y = originNED.y - offset.y;