AP_AHRS: add alias get_position to get_location

This commit is contained in:
Peter Barker 2022-02-18 17:46:38 +11:00 committed by Peter Barker
parent 9aeab4978f
commit 9229fb6f9d

View File

@ -106,6 +106,10 @@ public:
// dead-reckoning support // dead-reckoning support
bool get_location(struct Location &loc) const; 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 // get latest altitude estimate above ground level in meters and validity flag
bool get_hagl(float &hagl) const WARN_IF_UNUSED; bool get_hagl(float &hagl) const WARN_IF_UNUSED;