Paparazzi UAS  v5.15_devel-47-g0391b4d
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_ms45xx_i2c.h File Reference

Airspeed driver for the MS45xx pressure sensor via I2C. More...

#include "std.h"
+ Include dependency graph for airspeed_ms45xx_i2c.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Airspeed driver for the MS45xx pressure sensor via I2C.

Definition in file airspeed_ms45xx_i2c.h.


Data Structure Documentation

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 airspeed_scale Quadratic scale factor to convert (differential) pressure to airspeed.
bool autoset_offset Set offset value from current filtered value.
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.
bool sync_send Flag to enable sending every new measurement via telemetry for debugging purpose.
int16_t temperature Temperature in 0.1 deg Celcius.

Function Documentation

void ms45xx_i2c_periodic ( void  )

Definition at line 207 of file airspeed_ms45xx_i2c.c.

References i2c_receive(), I2CTransDone, MS45XX_I2C_ADDR, MS45XX_I2C_DEV, ms45xx_trans, and i2c_transaction::status.

+ Here is the call graph for this function:

Variable Documentation

struct AirspeedMs45xx ms45xx

Definition at line 170 of file airspeed_ms45xx_i2c.c.

Referenced by ms45xx_downlink(), ms45xx_i2c_event(), and ms45xx_i2c_init().