diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index 03b4bb8dc3..19ba95987a 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -216,22 +216,22 @@ public: bool have_inertial_nav() const; - bool get_velocity_NED(Vector3f &vec) const; + bool get_velocity_NED(Vector3f &vec) const WARN_IF_UNUSED; // return the relative position NED to either home or origin // return true if the estimate is valid - bool get_relative_position_NED_home(Vector3f &vec) const; - bool get_relative_position_NED_origin(Vector3f &vec) const; + bool get_relative_position_NED_home(Vector3f &vec) const WARN_IF_UNUSED; + bool get_relative_position_NED_origin(Vector3f &vec) const WARN_IF_UNUSED; // return the relative position NE to either home or origin // return true if the estimate is valid - bool get_relative_position_NE_home(Vector2f &posNE) const; - bool get_relative_position_NE_origin(Vector2f &posNE) const; + bool get_relative_position_NE_home(Vector2f &posNE) const WARN_IF_UNUSED; + bool get_relative_position_NE_origin(Vector2f &posNE) const WARN_IF_UNUSED; // return the relative position down to either home or origin // baro will be used for the _home relative one if the EKF isn't void get_relative_position_D_home(float &posD) const; - bool get_relative_position_D_origin(float &posD) const; + bool get_relative_position_D_origin(float &posD) const WARN_IF_UNUSED; // Get a derivative of the vertical position in m/s which is kinematically consistent with the vertical position is required by some control loops. // This is different to the vertical velocity from the EKF which is not always consistent with the vertical position due to the various errors that are being corrected for.