40 #include <px4_platform_common/px4_config.h> 41 #include <px4_platform_common/defines.h> 45 #include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp> 53 Airspeed(
int bus,
int address,
unsigned conversion_interval,
const char *path);
58 virtual int ioctl(
device::file_t *filp,
int cmd,
unsigned long arg);
72 virtual void Run() = 0;
73 virtual int measure() = 0;
74 virtual int collect() = 0;
orb_advert_t _airspeed_pub
API for the uORB lightweight object broker.
unsigned _conversion_interval
int _airspeed_orb_class_instance
High-resolution timer with callouts and timekeeping.
static constexpr uint8_t PX4_I2C_BUS_DEFAULT
void init()
Activates/configures the hardware registers.
perf_counter_t _sample_perf
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Airspeed driver interface.
perf_counter_t _comms_errors
Performance measuring tools.
Base class for devices connected via I2C.