AP_Airspeed_analog.h 601 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <AP_HAL/AP_HAL.h>
  3. #include <AP_Param/AP_Param.h>
  4. #include "AP_Airspeed_Backend.h"
  5. class AP_Airspeed_Analog : public AP_Airspeed_Backend
  6. {
  7. public:
  8. AP_Airspeed_Analog(AP_Airspeed &frontend, uint8_t _instance);
  9. // probe and initialise the sensor
  10. bool init(void) override;
  11. // return the current differential_pressure in Pascal
  12. bool get_differential_pressure(float &pressure) override;
  13. // temperature not available via analog backend
  14. bool get_temperature(float &temperature) override { return false; }
  15. private:
  16. AP_HAL::AnalogSource *_source;
  17. };