Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
baro_ms5611_i2c.c File Reference

Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for I2C. More...

Include dependency graph for baro_ms5611_i2c.c:

Go to the source code of this file.

Macros

#define MS5611_I2C_DEV   i2c0
#define MS5611_SLAVE_ADDR   0xEE
#define MS5611_TYPE_MS5607   FALSE
 set to TRUE if baro is actually a MS5607

Functions

void baro_ms5611_init (void)
void baro_ms5611_periodic_check (void)
void baro_ms5611_read (void)
 trigger new measurement or initialize if needed
void baro_ms5611_event (void)

Variables

struct Ms5611_I2c baro_ms5611
float fbaroms
float ftempms
float baro_ms5611_alt
bool baro_ms5611_alt_valid
bool baro_ms5611_enabled
float baro_ms5611_r
float baro_ms5611_sigma2

Detailed Description

Measurement Specialties (Intersema) MS5611-01BA pressure/temperature sensor interface for I2C.

Definition in file baro_ms5611_i2c.c.

Macro Definition Documentation

◆ MS5611_I2C_DEV

#define MS5611_I2C_DEV   i2c0

Definition at line 38 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

◆ MS5611_SLAVE_ADDR

#define MS5611_SLAVE_ADDR   0xEE

Definition at line 43 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

◆ MS5611_TYPE_MS5607

#define MS5611_TYPE_MS5607   FALSE

set to TRUE if baro is actually a MS5607

Definition at line 48 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_init().

Function Documentation

◆ baro_ms5611_event()

void baro_ms5611_event ( void )

◆ baro_ms5611_init()

void baro_ms5611_init ( void )

Definition at line 63 of file baro_ms5611_i2c.c.

References baro_ms5611, baro_ms5611_alt_valid, baro_ms5611_enabled, baro_ms5611_init(), BARO_MS5611_R, baro_ms5611_r, BARO_MS5611_SIGMA2, baro_ms5611_sigma2, MS5611_I2C_DEV, ms5611_i2c_init(), MS5611_SLAVE_ADDR, and MS5611_TYPE_MS5607.

Referenced by baro_ms5611_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ baro_ms5611_periodic_check()

void baro_ms5611_periodic_check ( void )

Definition at line 74 of file baro_ms5611_i2c.c.

References baro_ms5611, and ms5611_i2c_periodic_check().

Here is the call graph for this function:

◆ baro_ms5611_read()

void baro_ms5611_read ( void )

trigger new measurement or initialize if needed

Definition at line 81 of file baro_ms5611_i2c.c.

References baro_ms5611, ms5611_i2c_read(), and sys_time::nb_sec.

Here is the call graph for this function:

Variable Documentation

◆ baro_ms5611

struct Ms5611_I2c baro_ms5611

◆ baro_ms5611_alt

float baro_ms5611_alt

Definition at line 55 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event().

◆ baro_ms5611_alt_valid

bool baro_ms5611_alt_valid

Definition at line 56 of file baro_ms5611_i2c.c.

Referenced by baro_ms5611_event(), and baro_ms5611_init().

◆ baro_ms5611_enabled

bool baro_ms5611_enabled

Definition at line 57 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

◆ baro_ms5611_r

float baro_ms5611_r

Definition at line 59 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

◆ baro_ms5611_sigma2

float baro_ms5611_sigma2

Definition at line 60 of file baro_ms5611_i2c.c.

Referenced by alt_kalman(), and baro_ms5611_init().

◆ fbaroms

float fbaroms

Definition at line 54 of file baro_ms5611_i2c.c.

◆ ftempms

float ftempms

Definition at line 54 of file baro_ms5611_i2c.c.