PX4 Firmware
PX4 Autopilot Software http://px4.io
ets_airspeed.cpp File Reference
#include <float.h>
#include <drivers/airspeed/airspeed.h>
#include <px4_platform_common/getopt.h>
Include dependency graph for ets_airspeed.cpp:

Go to the source code of this file.

Classes

class  ETSAirspeed
 

Namespaces

 ets_airspeed
 Local functions in support of the shell command.
 

Macros

#define I2C_ADDRESS   0x75 /* 7-bit address. 8-bit address is 0xEA */
 
#define ETS_PATH   "/dev/ets_airspeed"
 
#define READ_CMD   0x07 /* Read the data */
 
#define MIN_ACCURATE_DIFF_PRES_PA   0
 The Eagle Tree Airspeed V3 cannot provide accurate reading below speeds of 15km/h. More...
 
#define CONVERSION_INTERVAL   (1000000 / 100) /* microseconds */
 

Functions

__EXPORT int ets_airspeed_main (int argc, char *argv[])
 
int ets_airspeed::start ()
 Attempt to start driver on all available I2C busses. More...
 
int ets_airspeed::start_bus (int i2c_bus)
 Start the driver on a specific bus. More...
 
int ets_airspeed::stop ()
 Stop the driver. More...
 
int ets_airspeed::reset ()
 Reset the driver. More...
 
int ets_airspeed::info ()
 Print a little info about the driver. More...
 
static void ets_airspeed_usage ()
 

Variables

ETSAirspeedets_airspeed::g_dev = nullptr
 

Detailed Description

Author
Simon Wilks

Driver for the Eagle Tree Airspeed V3 connected via I2C.

Definition in file ets_airspeed.cpp.

Macro Definition Documentation

◆ CONVERSION_INTERVAL

#define CONVERSION_INTERVAL   (1000000 / 100) /* microseconds */

Definition at line 60 of file ets_airspeed.cpp.

Referenced by MS5525::Run(), ETSAirspeed::Run(), and SDP3X::Run().

◆ ETS_PATH

#define ETS_PATH   "/dev/ets_airspeed"

Definition at line 48 of file ets_airspeed.cpp.

Referenced by pmw3901::reset().

◆ I2C_ADDRESS

#define I2C_ADDRESS   0x75 /* 7-bit address. 8-bit address is 0xEA */

Definition at line 47 of file ets_airspeed.cpp.

◆ MIN_ACCURATE_DIFF_PRES_PA

#define MIN_ACCURATE_DIFF_PRES_PA   0

The Eagle Tree Airspeed V3 cannot provide accurate reading below speeds of 15km/h.

You can set this value to 12 if you want a zero reading below 15km/h.

Definition at line 57 of file ets_airspeed.cpp.

◆ READ_CMD

#define READ_CMD   0x07 /* Read the data */

Definition at line 51 of file ets_airspeed.cpp.

Referenced by ETSAirspeed::measure().

Function Documentation

◆ ets_airspeed_main()

int ets_airspeed_main ( int  argc,
char *  argv[] 
)

Definition at line 356 of file ets_airspeed.cpp.

References ets_airspeed_usage(), PX4_I2C_BUS_DEFAULT, ets_airspeed::reset(), ets_airspeed::start(), ets_airspeed::start_bus(), and ets_airspeed::stop().

Here is the call graph for this function:

◆ ets_airspeed_usage()

static void ets_airspeed_usage ( )
static

Definition at line 345 of file ets_airspeed.cpp.

References PX4_I2C_BUS_DEFAULT.

Referenced by ets_airspeed_main().

Here is the caller graph for this function: