Browse Source

AP_AHRS: add WARN_IF_UNUSED to some getters

zr-v5.1
Peter Barker 6 years ago committed by Peter Barker
parent
commit
60d0b0f07c
  1. 2
      libraries/AP_AHRS/AP_AHRS.h

2
libraries/AP_AHRS/AP_AHRS.h

@ -243,7 +243,7 @@ public: @@ -243,7 +243,7 @@ public:
// get our current position estimate. Return true if a position is available,
// otherwise false. This call fills in lat, lng and alt
virtual bool get_position(struct Location &loc) const = 0;
virtual bool get_position(struct Location &loc) const WARN_IF_UNUSED = 0;
// get latest altitude estimate above ground level in meters and validity flag
virtual bool get_hagl(float &height) const WARN_IF_UNUSED { return false; }

Loading…
Cancel
Save