From 2e1eef7cf0d9debe93f1c00c536ea9c203a87526 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Wed, 4 May 2016 15:38:24 -0700 Subject: [PATCH] AP_Airspeed: airspeed healthy should also check if enabled --- libraries/AP_Airspeed/AP_Airspeed.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Airspeed/AP_Airspeed.h b/libraries/AP_Airspeed/AP_Airspeed.h index 38ea6749a9..73662c0663 100644 --- a/libraries/AP_Airspeed/AP_Airspeed.h +++ b/libraries/AP_Airspeed/AP_Airspeed.h @@ -137,7 +137,7 @@ public: void log_mavlink_send(mavlink_channel_t chan, const Vector3f &vground); // return health status of sensor - bool healthy(void) const { return _healthy && fabsf(_offset) > 0; } + bool healthy(void) const { return _healthy && fabsf(_offset) > 0 && _enable; } void setHIL(float pressure) { _healthy=_hil_set=true; _hil_pressure=pressure; }