airspeed driver: Do not spam the console on error, report the system change only once

This commit is contained in:
Lorenz Meier
2014-04-20 21:43:18 +02:00
parent 071f9c648b
commit 709d104de4
4 changed files with 53 additions and 22 deletions
+7
View File
@@ -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;