AP_AHRS: Change airspeed_estimate to const in children of AP_AHRS
Allows roll/pitch controllers to use DCM's airspeed estimate. Thanks to Kevin Hester for assistance in finding this.
This commit is contained in:
parent
72a91ccbca
commit
f321a5f241
@ -872,7 +872,7 @@ bool AP_AHRS_DCM::get_position(struct Location &loc)
|
||||
}
|
||||
|
||||
// return an airspeed estimate if available
|
||||
bool AP_AHRS_DCM::airspeed_estimate(float *airspeed_ret)
|
||||
bool AP_AHRS_DCM::airspeed_estimate(float *airspeed_ret) const
|
||||
{
|
||||
bool ret = false;
|
||||
if (_airspeed && _airspeed->use()) {
|
||||
|
@ -74,7 +74,7 @@ public:
|
||||
|
||||
// return an airspeed estimate if available. return true
|
||||
// if we have an estimate
|
||||
bool airspeed_estimate(float *airspeed_ret);
|
||||
bool airspeed_estimate(float *airspeed_ret) const;
|
||||
|
||||
bool use_compass(void);
|
||||
|
||||
|
@ -132,7 +132,7 @@ Vector3f AP_AHRS_NavEKF::wind_estimate(void)
|
||||
|
||||
// return an airspeed estimate if available. return true
|
||||
// if we have an estimate
|
||||
bool AP_AHRS_NavEKF::airspeed_estimate(float *airspeed_ret)
|
||||
bool AP_AHRS_NavEKF::airspeed_estimate(float *airspeed_ret) const
|
||||
{
|
||||
return AP_AHRS_DCM::airspeed_estimate(airspeed_ret);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
// return an airspeed estimate if available. return true
|
||||
// if we have an estimate
|
||||
bool airspeed_estimate(float *airspeed_ret);
|
||||
bool airspeed_estimate(float *airspeed_ret) const;
|
||||
|
||||
// true if compass is being used
|
||||
bool use_compass(void);
|
||||
|
Loading…
Reference in New Issue
Block a user