From 53eb2f2bf49eabf27e02c48230a0ce12bc5f68c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:31 -0300 Subject: [PATCH] AP_NavEKF2: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp | 2 +- libraries/AP_NavEKF2/AP_NavEKF2_core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp b/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp index 7b92ad19c1..49b46647d6 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp @@ -572,7 +572,7 @@ uint8_t NavEKF2_core::getFramesSincePredict(void) const } // return true when external nav data is also being used as a yaw observation -bool NavEKF2_core::isExtNavUsedForYaw() +bool NavEKF2_core::isExtNavUsedForYaw() const { return extNavUsedForYaw; } diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_core.h b/libraries/AP_NavEKF2/AP_NavEKF2_core.h index a8d15296c8..f033541afb 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_core.h +++ b/libraries/AP_NavEKF2/AP_NavEKF2_core.h @@ -309,7 +309,7 @@ public: void writeExtNavVelData(const Vector3f &vel, float err, uint32_t timeStamp_ms, uint16_t delay_ms); // return true when external nav data is also being used as a yaw observation - bool isExtNavUsedForYaw(void); + bool isExtNavUsedForYaw(void) const; // Writes the default equivalent airspeed in m/s to be used in forward flight if a measured airspeed is required and not available. void writeDefaultAirSpeed(float airspeed);