PX4 Firmware
PX4 Autopilot Software http://px4.io
drv_airspeed.h File Reference

Airspeed driver interface. More...

#include <stdint.h>
#include <sys/ioctl.h>
#include "drv_sensor.h"
#include "drv_orb_dev.h"
Include dependency graph for drv_airspeed.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  airspeed_scale
 airspeed scaling factors; out = (in * Vscale) + offset More...
 

Macros

#define AIRSPEED_BASE_DEVICE_PATH   "/dev/airspeed"
 
#define AIRSPEED0_DEVICE_PATH   "/dev/airspeed0"
 
#define _AIRSPEEDIOCBASE   (0x7700)
 
#define __AIRSPEEDIOC(_n)   (_PX4_IOC(_AIRSPEEDIOCBASE, _n))
 
#define AIRSPEEDIOCSSCALE   __AIRSPEEDIOC(0)
 

Detailed Description

Airspeed driver interface.

Author
Simon Wilks

Definition in file drv_airspeed.h.

Macro Definition Documentation

◆ __AIRSPEEDIOC

#define __AIRSPEEDIOC (   _n)    (_PX4_IOC(_AIRSPEEDIOCBASE, _n))

Definition at line 62 of file drv_airspeed.h.

◆ _AIRSPEEDIOCBASE

#define _AIRSPEEDIOCBASE   (0x7700)

Definition at line 61 of file drv_airspeed.h.

◆ AIRSPEED0_DEVICE_PATH

#define AIRSPEED0_DEVICE_PATH   "/dev/airspeed0"

◆ AIRSPEED_BASE_DEVICE_PATH

#define AIRSPEED_BASE_DEVICE_PATH   "/dev/airspeed"

Definition at line 51 of file drv_airspeed.h.

Referenced by Airspeed::init(), and Airspeed::~Airspeed().

◆ AIRSPEEDIOCSSCALE

#define AIRSPEEDIOCSSCALE   __AIRSPEEDIOC(0)