mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -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;
|
return thermal_vspeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SoaringController::is_active()
|
bool SoaringController::is_active() const
|
||||||
{
|
{
|
||||||
if (!soar_active) {
|
if (!soar_active) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user