Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
baro_board.h File Reference
#include "std.h"
#include "peripherals/ads1114.h"
+ Include dependency graph for baro_board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define BARO_FILTER_GAIN   5
#define DIFF_FILTER_GAIN   5
#define BARO_ABS_ADS   ads1114_1
#define BaroAbs(_ads, _handler)
#define BaroDiff(_a, _h)   {}
#define BaroEvent(_b_abs_handler, _b_diff_handler)

Macro Definition Documentation

#define BARO_ABS_ADS   ads1114_1

Definition at line 49 of file baro_board.h.

Referenced by baro_periodic().

#define BARO_FILTER_GAIN   5

Definition at line 36 of file baro_board.h.

#define BaroAbs (   _ads,
{ \
if (_ads.data_available) { \
if (baro.status == BS_RUNNING) { \
_handler(); \
_ads.data_available = FALSE; \
} \
} \
#define FALSE
Definition: imu_chimu.h:141
int32_t absolute
Definition: baro.h:42
struct Baro baro
Definition: baro_board.c:34
#define Ads1114GetValue(_p)
Definition: ads1114.h:165
Definition: baro_board.h:36
enum BaroStatus status
Definition: baro.h:44

Definition at line 51 of file baro_board.h.

#define BaroDiff (   _a,
)    {}

Definition at line 79 of file baro_board.h.

#define BaroEvent (   _b_abs_handler,
{ \
BaroAbs(BARO_ABS_ADS,_b_abs_handler); \
BaroDiff(BARO_DIFF_ADS,_b_diff_handler); \
#define BaroAbs(_ads, _handler)
Definition: baro_board.h:51
#define BaroDiff(_a, _h)
Definition: baro_board.h:79
#define BARO_ABS_ADS
Definition: baro_board.h:49
#define Ads1114Event()
Definition: ads1114.h:158

Definition at line 84 of file baro_board.h.

#define DIFF_FILTER_GAIN   5

Definition at line 41 of file baro_board.h.