mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: add WARN_IF_UNUSED to several methods
This commit is contained in:
parent
8572c2bef3
commit
5528159f31
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue