|
|
|
@ -160,6 +160,14 @@ public:
@@ -160,6 +160,14 @@ public:
|
|
|
|
|
|
|
|
|
|
static AP_Airspeed *get_singleton() { return _singleton; } |
|
|
|
|
|
|
|
|
|
// return the current corrected pressure, public for AP_Periph
|
|
|
|
|
float get_corrected_pressure(uint8_t i) const { |
|
|
|
|
return state[i].corrected_pressure; |
|
|
|
|
} |
|
|
|
|
float get_corrected_pressure(void) const { |
|
|
|
|
return get_corrected_pressure(primary); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
static AP_Airspeed *_singleton; |
|
|
|
|
|
|
|
|
@ -220,13 +228,7 @@ private:
@@ -220,13 +228,7 @@ private:
|
|
|
|
|
// return the differential pressure in Pascal for the last airspeed reading for the requested instance
|
|
|
|
|
// returns 0 if the sensor is not enabled
|
|
|
|
|
float get_pressure(uint8_t i); |
|
|
|
|
// return the current corrected pressure
|
|
|
|
|
float get_corrected_pressure(uint8_t i) const { |
|
|
|
|
return state[i].corrected_pressure; |
|
|
|
|
} |
|
|
|
|
float get_corrected_pressure(void) const { |
|
|
|
|
return get_corrected_pressure(primary); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// get the failure health probability
|
|
|
|
|
float get_health_failure_probability(uint8_t i) const { |
|
|
|
|
return state[i].failures.health_probability; |
|
|
|
|