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
pressure_board_navarro.c File Reference
#include "pressure_board_navarro.h"
#include "state.h"
+ Include dependency graph for pressure_board_navarro.c:

Go to the source code of this file.

Macros

#define PBN_I2C_DEV   i2c0
 
#define PBN_I2C_ADDR   0x28
 
#define OFFSET_NBSAMPLES_AVRG   100
 
#define PBN_START_DELAY   30
 
#define PBN_OFFSET_FILTER   7
 
#define PBN_AIRSPEED_SCALE   (1./0.54)
 
#define PBN_ALTITUDE_SCALE   0.32
 

Functions

void pbn_init (void)
 
void pbn_periodic (void)
 
void pbn_read_event (void)
 

Variables

uint16_t altitude_adc
 
uint16_t airspeed_adc
 
bool_t data_valid
 
struct i2c_transaction pbn_trans
 
uint32_t airspeed_offset_tmp
 
uint32_t altitude_offset_tmp
 
uint16_t offset_cnt
 
uint16_t altitude_offset
 
uint16_t airspeed_offset
 
float pbn_altitude
 
float pbn_airspeed
 
float airspeed_filter
 
uint16_t startup_delay
 

Macro Definition Documentation

#define OFFSET_NBSAMPLES_AVRG   100

Definition at line 41 of file pressure_board_navarro.c.

Referenced by pbn_init().

#define PBN_AIRSPEED_SCALE   (1./0.54)

Definition at line 51 of file pressure_board_navarro.c.

Referenced by pbn_read_event().

#define PBN_ALTITUDE_SCALE   0.32

Definition at line 56 of file pressure_board_navarro.c.

Referenced by pbn_read_event().

#define PBN_I2C_ADDR   0x28

Definition at line 38 of file pressure_board_navarro.c.

Referenced by pbn_periodic().

#define PBN_I2C_DEV   i2c0

Definition at line 34 of file pressure_board_navarro.c.

Referenced by pbn_periodic().

#define PBN_OFFSET_FILTER   7

Definition at line 47 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

#define PBN_START_DELAY   30

Definition at line 44 of file pressure_board_navarro.c.

Referenced by pbn_init().

Function Documentation

void pbn_periodic ( void  )

Definition at line 90 of file pressure_board_navarro.c.

References i2c_transaction::buf, i2c_transceive(), PBN_I2C_ADDR, PBN_I2C_DEV, pbn_trans, and startup_delay.

+ Here is the call graph for this function:

Variable Documentation

uint16_t airspeed_adc

Definition at line 61 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float airspeed_filter

Definition at line 73 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint16_t airspeed_offset

Definition at line 70 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint32_t airspeed_offset_tmp

Definition at line 66 of file pressure_board_navarro.c.

uint16_t altitude_adc

Definition at line 60 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint16_t altitude_offset

Definition at line 69 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint32_t altitude_offset_tmp

Definition at line 67 of file pressure_board_navarro.c.

bool_t data_valid

Definition at line 62 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint16_t offset_cnt

Definition at line 68 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float pbn_airspeed

Definition at line 72 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float pbn_altitude

Definition at line 71 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

struct i2c_transaction pbn_trans

Definition at line 63 of file pressure_board_navarro.c.

Referenced by pbn_periodic(), and pbn_read_event().

uint16_t startup_delay

Definition at line 74 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_periodic().