Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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   0.05
 
#define BaroAmsysEvent()   { if (baro_amsys_i2c_trans.status == I2CTransSuccess) baro_amsys_read_event(); }
 
#define BaroAmsysUpdate(_b, _h)   { if (baro_amsys_valid) { _b = baro_amsys_adc; _h(); baro_amsys_valid = FALSE; } }
 

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_t baro_amsys_valid
 
float baro_amsys_altitude
 
float baro_filter
 
struct i2c_transaction baro_amsys_i2c_trans
 

Macro Definition Documentation

#define BARO_AMSYS_DT   0.05

Definition at line 31 of file baro_amsys.h.

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

Definition at line 49 of file baro_amsys.h.

#define BaroAmsysUpdate (   _b,
  _h 
)    { if (baro_amsys_valid) { _b = baro_amsys_adc; _h(); baro_amsys_valid = FALSE; } }

Definition at line 51 of file baro_amsys.h.

Function Documentation

void baro_amsys_read_periodic ( void  )

Variable Documentation

uint16_t baro_amsys_adc

Definition at line 75 of file baro_amsys.c.

Referenced by baro_amsys_read_event(), and baro_amsys_read_periodic().

float baro_amsys_altitude

Definition at line 78 of file baro_amsys.c.

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

struct i2c_transaction baro_amsys_i2c_trans

Definition at line 91 of file baro_amsys.c.

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

bool_t baro_amsys_valid

Definition at line 77 of file baro_amsys.c.

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

float baro_filter

Definition at line 84 of file baro_amsys.c.

Referenced by baro_amsys_init(), and baro_amsys_read_event().