From 9229fb6f9df9e6ba94cc8ee8167d9848e2bae9d1 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 18 Feb 2022 17:46:38 +1100 Subject: [PATCH] AP_AHRS: add alias get_position to get_location --- libraries/AP_AHRS/AP_AHRS.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index f3eb87ca44..e2d6cd0863 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -106,6 +106,10 @@ public: // dead-reckoning support bool get_location(struct Location &loc) const; + // for scripting until aliases get sorted out: + bool get_position(struct Location &loc) const { + return get_location(loc); + } // get latest altitude estimate above ground level in meters and validity flag bool get_hagl(float &hagl) const WARN_IF_UNUSED;