aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/airspeed/airspeed.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-04-20 21:43:18 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-04-20 21:43:18 +0200
commit709d104de44b1cf7e338f4ae25e8b1fdc336a279 (patch)
tree51590d8d6c9f93b3004097e97c877744d76e7d54 /src/drivers/airspeed/airspeed.h
parent071f9c648b71a421f12f6968a9367c5219abf076 (diff)
downloadpx4-firmware-709d104de44b1cf7e338f4ae25e8b1fdc336a279.tar.gz
px4-firmware-709d104de44b1cf7e338f4ae25e8b1fdc336a279.tar.bz2
px4-firmware-709d104de44b1cf7e338f4ae25e8b1fdc336a279.zip
airspeed driver: Do not spam the console on error, report the system change only once
Diffstat (limited to 'src/drivers/airspeed/airspeed.h')
-rw-r--r--src/drivers/airspeed/airspeed.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/airspeed/airspeed.h b/src/drivers/airspeed/airspeed.h
index 186602eda..0b8e949c9 100644
--- a/src/drivers/airspeed/airspeed.h
+++ b/src/drivers/airspeed/airspeed.h
@@ -118,14 +118,21 @@ protected:
virtual int measure() = 0;
virtual int collect() = 0;
+ /**
+ * Update the subsystem status
+ */
+ void update_status();
+
work_s _work;
float _max_differential_pressure_pa;
bool _sensor_ok;
+ bool _last_published_sensor_ok;
int _measure_ticks;
bool _collect_phase;
float _diff_pres_offset;
orb_advert_t _airspeed_pub;
+ orb_advert_t _subsys_pub;
int _class_instance;