AP_Soaring: adding const qualifiers to some of soaring controller's methods

This commit is contained in:
Andrey Kolobov 2017-03-03 01:16:40 -08:00 committed by Andrew Tridgell
parent 2b2fed735b
commit 9f2f070439
2 changed files with 3 additions and 3 deletions

View File

@ -387,7 +387,7 @@ float SoaringController::McCready(float alt)
return thermal_vspeed; return thermal_vspeed;
} }
bool SoaringController::is_active() bool SoaringController::is_active() const
{ {
if (!soar_active) { if (!soar_active) {
return false; return false;

View File

@ -96,8 +96,8 @@ public:
void init_cruising(); void init_cruising();
void update_thermalling(); void update_thermalling();
void update_cruising(); void update_cruising();
bool is_active(); bool is_active() const;
bool get_throttle_suppressed() bool get_throttle_suppressed() const
{ {
return _throttle_suppressed; return _throttle_suppressed;
} }