mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
AP_Soaring: adding const qualifiers to some of soaring controller's methods
This commit is contained in:
parent
2b2fed735b
commit
9f2f070439
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user