From 0c5caac632de66507a52f927c13813aaa535374b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 30 Oct 2013 09:03:35 +1100 Subject: [PATCH] AP_Airspeed: added healthy() API --- libraries/AP_Airspeed/AP_Airspeed.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Airspeed/AP_Airspeed.h b/libraries/AP_Airspeed/AP_Airspeed.h index 814fed118a..f63b3cb452 100644 --- a/libraries/AP_Airspeed/AP_Airspeed.h +++ b/libraries/AP_Airspeed/AP_Airspeed.h @@ -125,6 +125,9 @@ public: // log data to MAVLink void log_mavlink_send(mavlink_channel_t chan, const Vector3f &vground); + // return health status of sensor + bool healthy(void) const { return _healthy; } + static const struct AP_Param::GroupInfo var_info[];