airspeed_ms45xx_i2c

MS45XX differential or gauge type of pressure sensor for e.g measuring airspeed. This sensor module is using the MS45xxDO digital pressure sensor with readings via I2C. Needs to be a versions with 14bit pressure and 11bit temperature data output. If the airspeed reading is badly calibrated, use the MS45XX_PRESSURE_SCALE to compensate. Use the MS45XX_AIRSPEED_SCALE only to change air density.

Defines

Name

Value

Description

MS45XX_I2C_DEV

i2cX

set i2c peripheral (default: i2c2)

MS45XX_I2C_ADDR

0x50

i2c slave address (default: 0x50)

MS45XX_PRESSURE_TYPE

0|1

Pressure Differential or Gauge, default is Differential

MS45XX_PRESSURE_RANGE

1|2|4|5|10|15|20|30|50|100|150

pressure range in psi (default: 1)

MS45XX_OUTPUT_TYPE

0|1

set to 0 for output type A, to 1 for output type B (default: type A)

MS45XX_PRESSURE_SCALE

1.05

pressure scaling factor to convert raw output to Pa (default: set according to pressure range and output type according to datasheet)

MS45XX_PRESSURE_OFFSET

8618.4

pressure offset in Pa (default: set according to pressure range and output type according to datasheet)

MS45XX_LOWPASS_TAU

0.15

Time constant for second order Butterworth low pass filter

Depends

  • i2c

Provides

  • airspeed