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

MPL3115 barometer of the Apogee board, an i2c slave of the MPU6050: only read once the MPU is configured. More...

Include dependency graph for baro_apogee.c:

Go to the source code of this file.

Macros

#define BARO_STARTUP_COUNTER   (4 * BARO_APOGEE_FREQ)
 Number of readings skipped at startup, about 4 s.

Functions

void baro_apogee_init (void)
void baro_apogee_periodic (void)
void baro_apogee_event (void)

Variables

uint16_t startup_cnt
struct Mpl3115 apogee_baro

Detailed Description

MPL3115 barometer of the Apogee board, an i2c slave of the MPU6050: only read once the MPU is configured.

Definition in file baro_apogee.c.

Macro Definition Documentation

◆ BARO_STARTUP_COUNTER

#define BARO_STARTUP_COUNTER   (4 * BARO_APOGEE_FREQ)

Number of readings skipped at startup, about 4 s.

Definition at line 46 of file baro_apogee.c.

Referenced by baro_apogee_init().

Function Documentation

◆ baro_apogee_event()

void baro_apogee_event ( void )

Definition at line 75 of file baro_apogee.c.

References apogee_baro, BARO_MPL3115_SENDER_ID, get_sys_time_usec(), gps, mpl3115_event(), pprzLogFile, Mpl3115::pressure, sdLogWriteLog(), startup_cnt, and TEMPERATURE_TYPE_BARO.

Here is the call graph for this function:

◆ baro_apogee_init()

void baro_apogee_init ( void )

Definition at line 51 of file baro_apogee.c.

References apogee_baro, BARO_STARTUP_COUNTER, MPL3115_I2C_ADDR, mpl3115_init(), and startup_cnt.

Here is the call graph for this function:

◆ baro_apogee_periodic()

void baro_apogee_periodic ( void )

Definition at line 61 of file baro_apogee.c.

References apogee_baro, imu_apogee, mpl3115_periodic(), and startup_cnt.

Here is the call graph for this function:

Variable Documentation

◆ apogee_baro

struct Mpl3115 apogee_baro

Definition at line 49 of file baro_apogee.c.

Referenced by baro_apogee_event(), baro_apogee_init(), and baro_apogee_periodic().

◆ startup_cnt

uint16_t startup_cnt

Definition at line 47 of file baro_apogee.c.

Referenced by baro_apogee_event(), baro_apogee_init(), and baro_apogee_periodic().