Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pressure_board_navarro.h File Reference

Pressure Board Navarro (2010) More...

#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for pressure_board_navarro.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  PBNState
 

Macros

#define PbnEvent()   { if (pbn_trans.status == I2CTransSuccess) pbn_read_event(); }
 

Functions

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

Variables

struct PBNState pbn
 
struct i2c_transaction pbn_trans
 

Detailed Description

Pressure Board Navarro (2010)

by Matthieu Navarro

combine differential and absolute pressure sensor (ETS raw sensors) controlled by a dspic return scaled values over I2C

Definition in file pressure_board_navarro.h.


Data Structure Documentation

struct PBNState

Definition at line 41 of file pressure_board_navarro.h.

Data Fields
float airspeed
uint16_t airspeed_adc
float airspeed_filter
uint16_t airspeed_offset
float altitude
uint16_t altitude_adc
uint16_t altitude_offset
bool_t data_valid

Macro Definition Documentation

#define PbnEvent ( )    { if (pbn_trans.status == I2CTransSuccess) pbn_read_event(); }

Definition at line 60 of file pressure_board_navarro.h.

Function Documentation

void pbn_periodic ( void  )

Definition at line 97 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

struct PBNState pbn

Definition at line 76 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

struct i2c_transaction pbn_trans

Definition at line 77 of file pressure_board_navarro.c.

Referenced by pbn_periodic(), and pbn_read_event().