Path: blob/master/libraries/AP_Airspeed/AP_Airspeed_analog.h
9837 views
#pragma once12#include "AP_Airspeed_config.h"34#if AP_AIRSPEED_ANALOG_ENABLED56#include <AP_HAL/AP_HAL.h>78#include "AP_Airspeed_Backend.h"910class AP_Airspeed_Analog : public AP_Airspeed_Backend11{12public:13AP_Airspeed_Analog(AP_Airspeed &frontend, uint8_t _instance);1415// probe and initialise the sensor16bool init(void) override;1718// return the current differential_pressure in Pascal19bool get_differential_pressure(float &pressure) override;2021// temperature not available via analog backend22bool get_temperature(float &temperature) override { return false; }2324private:25AP_HAL::AnalogSource *_source;26};2728#endif // AP_AIRSPEED_ANALOG_ENABLED293031