diff --git a/libraries/AP_Soaring/AP_Soaring.cpp b/libraries/AP_Soaring/AP_Soaring.cpp index 0a546fbab3..536c3de5f3 100644 --- a/libraries/AP_Soaring/AP_Soaring.cpp +++ b/libraries/AP_Soaring/AP_Soaring.cpp @@ -387,7 +387,7 @@ float SoaringController::McCready(float alt) return thermal_vspeed; } -bool SoaringController::is_active() +bool SoaringController::is_active() const { if (!soar_active) { return false; diff --git a/libraries/AP_Soaring/AP_Soaring.h b/libraries/AP_Soaring/AP_Soaring.h index d3c4351302..79bdb944f2 100644 --- a/libraries/AP_Soaring/AP_Soaring.h +++ b/libraries/AP_Soaring/AP_Soaring.h @@ -96,8 +96,8 @@ public: void init_cruising(); void update_thermalling(); void update_cruising(); - bool is_active(); - bool get_throttle_suppressed() + bool is_active() const; + bool get_throttle_suppressed() const { return _throttle_suppressed; }