|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Airspeed driver for the MS45xx pressure sensor via I2C. More...
#include "std.h"Go to the source code of this file.
Data Structures | |
| struct | AirspeedMs45xx |
Functions | |
| void | ms45xx_i2c_init (void) |
| void | ms45xx_i2c_periodic (void) |
| void | ms45xx_i2c_event (void) |
Variables | |
| struct AirspeedMs45xx | ms45xx |
Airspeed driver for the MS45xx pressure sensor via I2C.
Definition in file airspeed_ms45xx_i2c.h.
| struct AirspeedMs45xx |
Definition at line 31 of file airspeed_ms45xx_i2c.h.
| Data Fields | ||
|---|---|---|
| float | airspeed | Airspeed in m/s estimated from (differential) pressure. |
| float | pressure | (differential) pressure in Pascal |
| float | pressure_offset | Offset in Pascal. |
| float | pressure_scale | Scaling factor from raw measurement to Pascal. |
| bool | pressure_type | Pressure type Differential of Gauge. |
| uint16_t | raw_p | Raw pressure. |
| int16_t | temperature | Temperature in 0.1 deg Celcius. |
|
extern |
Definition at line 165 of file airspeed_ms45xx_i2c.c.
References get_sys_time_usec(), I2CTransDone, I2CTransFailed, I2CTransSuccess, ms45xx, MS45XX_RHO_DIV_2, MS45XX_SENDER_ID, ms45xx_trans, sign(), status, and TEMPERATURE_TYPE_DIFF.
|
extern |
Definition at line 143 of file airspeed_ms45xx_i2c.c.
References I2CTransDone, ms45xx, MS45XX_PRESSURE_OFFSET, MS45XX_PRESSURE_SCALE, MS45XX_PRESSURE_TYPE, and ms45xx_trans.
|
extern |
Definition at line 157 of file airspeed_ms45xx_i2c.c.
References i2c_receive(), I2CTransDone, MS45XX_I2C_ADDR, MS45XX_I2C_DEV, and ms45xx_trans.
|
extern |
Definition at line 140 of file airspeed_ms45xx_i2c.c.
Referenced by ms45xx_i2c_event(), and ms45xx_i2c_init().