PX4 Firmware
PX4 Autopilot Software http://px4.io
SDP3X.hpp File Reference

Driver for Sensirion SDP3X Differential Pressure Sensor. More...

#include <drivers/airspeed/airspeed.h>
#include <math.h>
#include <mathlib/math/filter/LowPassFilter2p.hpp>
#include <px4_platform_common/getopt.h>
Include dependency graph for SDP3X.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SDP3X
 

Macros

#define I2C_ADDRESS_1_SDP3X   0x21
 
#define I2C_ADDRESS_2_SDP3X   0x22
 
#define I2C_ADDRESS_3_SDP3X   0x23
 
#define SDP3X_SCALE_TEMPERATURE   200.0f
 
#define SDP3X_RESET_ADDR   0x00
 
#define SDP3X_RESET_CMD   0x06
 
#define SDP3X_CONT_MEAS_AVG_MODE   0x3615
 
#define SDP3X_SCALE_PRESSURE_SDP31   60
 
#define SDP3X_SCALE_PRESSURE_SDP32   240
 
#define SDP3X_SCALE_PRESSURE_SDP33   20
 
#define PATH_SDP3X   "/dev/sdp3x"
 
#define SPD3X_MEAS_RATE   100
 
#define SDP3X_MEAS_DRIVER_FILTER_FREQ   3.0f
 
#define CONVERSION_INTERVAL   (1000000 / SPD3X_MEAS_RATE) /* microseconds */
 

Detailed Description

Macro Definition Documentation

◆ CONVERSION_INTERVAL

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

Definition at line 68 of file SDP3X.hpp.

◆ I2C_ADDRESS_1_SDP3X

#define I2C_ADDRESS_1_SDP3X   0x21

Definition at line 50 of file SDP3X.hpp.

Referenced by sdp3x_airspeed::start_bus().

◆ I2C_ADDRESS_2_SDP3X

#define I2C_ADDRESS_2_SDP3X   0x22

Definition at line 51 of file SDP3X.hpp.

Referenced by sdp3x_airspeed::start_bus().

◆ I2C_ADDRESS_3_SDP3X

#define I2C_ADDRESS_3_SDP3X   0x23

Definition at line 52 of file SDP3X.hpp.

◆ PATH_SDP3X

#define PATH_SDP3X   "/dev/sdp3x"

Definition at line 63 of file SDP3X.hpp.

Referenced by sdp3x_airspeed::reset(), and sdp3x_airspeed::start_bus().

◆ SDP3X_CONT_MEAS_AVG_MODE

#define SDP3X_CONT_MEAS_AVG_MODE   0x3615

Definition at line 57 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_MEAS_DRIVER_FILTER_FREQ

#define SDP3X_MEAS_DRIVER_FILTER_FREQ   3.0f

Definition at line 67 of file SDP3X.hpp.

◆ SDP3X_RESET_ADDR

#define SDP3X_RESET_ADDR   0x00

Definition at line 55 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_RESET_CMD

#define SDP3X_RESET_CMD   0x06

Definition at line 56 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_SCALE_PRESSURE_SDP31

#define SDP3X_SCALE_PRESSURE_SDP31   60

Definition at line 59 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_SCALE_PRESSURE_SDP32

#define SDP3X_SCALE_PRESSURE_SDP32   240

Definition at line 60 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_SCALE_PRESSURE_SDP33

#define SDP3X_SCALE_PRESSURE_SDP33   20

Definition at line 61 of file SDP3X.hpp.

Referenced by SDP3X::init_sdp3x().

◆ SDP3X_SCALE_TEMPERATURE

#define SDP3X_SCALE_TEMPERATURE   200.0f

Definition at line 54 of file SDP3X.hpp.

Referenced by SDP3X::collect().

◆ SPD3X_MEAS_RATE

#define SPD3X_MEAS_RATE   100

Definition at line 66 of file SDP3X.hpp.