Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
baro_amsys.h File Reference
#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for baro_amsys.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BARO_AMSYS_DT   BARO_AMSYS_READ_PERIODIC_PERIOD
 new measurement every baro_amsys_read_periodic More...
 
#define BaroAmsysEvent()   { if (baro_amsys_i2c_trans.status == I2CTransSuccess) baro_amsys_read_event(); }
 

Functions

void baro_amsys_init (void)
 
void baro_amsys_read_periodic (void)
 
void baro_amsys_read_event (void)
 

Variables

uint16_t baro_amsys_adc
 
bool baro_amsys_valid
 
bool baro_amsys_enabled
 
float baro_amsys_altitude
 
float baro_amsys_r
 
float baro_amsys_sigma2
 
float baro_filter
 
struct i2c_transaction baro_amsys_i2c_trans
 

Macro Definition Documentation

◆ BARO_AMSYS_DT

#define BARO_AMSYS_DT   BARO_AMSYS_READ_PERIODIC_PERIOD

new measurement every baro_amsys_read_periodic

Definition at line 32 of file baro_amsys.h.

◆ BaroAmsysEvent

#define BaroAmsysEvent ( )    { if (baro_amsys_i2c_trans.status == I2CTransSuccess) baro_amsys_read_event(); }

Definition at line 49 of file baro_amsys.h.

Function Documentation

◆ baro_amsys_init()

◆ baro_amsys_read_event()

◆ baro_amsys_read_periodic()

Variable Documentation

◆ baro_amsys_adc

uint16_t baro_amsys_adc
extern

Definition at line 73 of file baro_amsys.c.

Referenced by baro_amsys_read_event().

◆ baro_amsys_altitude

float baro_amsys_altitude
extern

Definition at line 76 of file baro_amsys.c.

Referenced by baro_amsys_init(), baro_amsys_read_event(), and baro_amsys_read_periodic().

◆ baro_amsys_enabled

bool baro_amsys_enabled
extern

Definition at line 77 of file baro_amsys.c.

Referenced by alt_kalman(), and baro_amsys_init().

◆ baro_amsys_i2c_trans

struct i2c_transaction baro_amsys_i2c_trans
extern

Definition at line 87 of file baro_amsys.c.

Referenced by baro_amsys_init(), baro_amsys_read_event(), and baro_amsys_read_periodic().

◆ baro_amsys_r

float baro_amsys_r
extern

Definition at line 78 of file baro_amsys.c.

Referenced by alt_kalman(), and baro_amsys_init().

◆ baro_amsys_sigma2

float baro_amsys_sigma2
extern

Definition at line 79 of file baro_amsys.c.

Referenced by alt_kalman(), and baro_amsys_init().

◆ baro_amsys_valid

bool baro_amsys_valid
extern

Definition at line 75 of file baro_amsys.c.

Referenced by baro_amsys_init(), and baro_amsys_read_event().

◆ baro_filter

float baro_filter
extern

Definition at line 86 of file baro_amsys.c.

Referenced by baro_amsys_init(), and baro_amsys_read_event().