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;