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 "subsystems/sensors/baro.h"
#include "mcu_periph/adc.h"
#include "mcu_periph/dac.h"
+ Include dependency graph for baro_board.h:

Go to the source code of this file.

Data Structures

struct  BaroBoard
 

Macros

#define BaroEvent(_b_abs_handler, _b_diff_handler)
 

Functions

void baro_board_calibrate (void)
 
static void baro_board_SetOffset (uint16_t _o)
 

Variables

struct BaroBoard baro_board
 

Macro Definition Documentation

#define BaroEvent (   _b_abs_handler,
  _b_diff_handler 
)
Value:
{ \
_b_abs_handler(); \
} \
}
#define FALSE
Definition: imu_chimu.h:141
struct BaroBoard baro_board
Definition: baro_board.c:35
bool_t data_available
Definition: baro_board.h:14

Definition at line 22 of file baro_board.h.

Referenced by main_event(), main_event_task(), and test_baro_event().

Function Documentation

void baro_board_calibrate ( void  )

Definition at line 68 of file baro_board.c.

References baro, baro_board, BOOZ_ANALOG_BARO_THRESHOLD, BS_RUNNING, DACSet(), LED_ON, LED_TOGGLE, BaroBoard::offset, Baro::status, and BaroBoard::value_filtered.

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void baro_board_SetOffset ( uint16_t  _o)
inlinestatic

Definition at line 29 of file baro_board.h.

References baro_board, DACSet(), and BaroBoard::offset.

+ Here is the call graph for this function:

Variable Documentation

struct BaroBoard baro_board

Definition at line 35 of file baro_board.c.

Referenced by baro_board_SetOffset(), and baro_event().