AP_Airspeed: airspeed healthy should also check if enabled

This commit is contained in:
Tom Pittenger 2016-05-04 15:38:24 -07:00
parent 25dfb583d5
commit 2e1eef7cf0
1 changed files with 1 additions and 1 deletions

View File

@ -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; }