From dff27ec5069c1353309461c1cca046121c33188f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 14 Dec 2017 13:12:26 +1100 Subject: [PATCH] AC_WPNav: correct call for getting location vector Function has been renamed and only takes a Vector2f --- libraries/AC_WPNav/AC_WPNav.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AC_WPNav/AC_WPNav.cpp b/libraries/AC_WPNav/AC_WPNav.cpp index dd227d7819..12d0680097 100644 --- a/libraries/AC_WPNav/AC_WPNav.cpp +++ b/libraries/AC_WPNav/AC_WPNav.cpp @@ -1237,9 +1237,9 @@ bool AC_WPNav::get_terrain_offset(float& offset_cm) // returns false if conversion failed (likely because terrain data was not available) bool AC_WPNav::get_vector_NEU(const Location_Class &loc, Vector3f &vec, bool &terrain_alt) { - // convert location to NEU vector3f - Vector3f res_vec; - if (!loc.get_vector_xy_from_origin_NEU(res_vec)) { + // convert location to NE vector2f + Vector2f res_vec; + if (!loc.get_vector_xy_from_origin_NE(res_vec)) { return false; }