From 1217256898fd77a1272f3e351b32c798660d6163 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 20 Feb 2017 14:31:53 +1100 Subject: [PATCH] AP_AHRS: correct infinite recursion in AP_AHRS_View --- libraries/AP_AHRS/AP_AHRS_View.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_AHRS/AP_AHRS_View.h b/libraries/AP_AHRS/AP_AHRS_View.h index 1a39a5da6d..185089eec4 100644 --- a/libraries/AP_AHRS/AP_AHRS_View.h +++ b/libraries/AP_AHRS/AP_AHRS_View.h @@ -118,12 +118,12 @@ public: return ahrs.get_relative_position_NE_origin(vecNE); } - bool get_relative_position_D_home(float &posD) const { - return get_relative_position_D_home(posD); + void get_relative_position_D_home(float &posD) const { + ahrs.get_relative_position_D_home(posD); } bool get_relative_position_D_origin(float &posD) const { - return get_relative_position_D_origin(posD); + return ahrs.get_relative_position_D_origin(posD); } float groundspeed(void) {