Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Pressure Board Navarro (2010) More...
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 |
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.
struct PBNState |
#define PbnEvent | ( | ) | { if (pbn_trans.status == I2CTransSuccess) pbn_read_event(); } |
Definition at line 60 of file pressure_board_navarro.h.
void pbn_init | ( | void | ) |
Definition at line 82 of file pressure_board_navarro.c.
References PBNState::airspeed, PBNState::airspeed_adc, PBNState::airspeed_filter, PBNState::airspeed_offset, PBNState::altitude, PBNState::altitude_adc, PBNState::altitude_offset, PBNState::data_valid, OFFSET_NBSAMPLES_AVRG, pbn, PBN_OFFSET_FILTER, PBN_START_DELAY, and TRUE.
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.
void pbn_read_event | ( | void | ) |
Definition at line 111 of file pressure_board_navarro.c.
References PBNState::airspeed, PBNState::airspeed_adc, PBNState::airspeed_filter, PBNState::airspeed_offset, PBNState::altitude, PBNState::altitude_adc, PBNState::altitude_offset, BARO_PBN_SENDER_ID, i2c_transaction::buf, PBNState::data_valid, FALSE, I2CTransDone, Max, offset_cnt, pbn, PBN_AIRSPEED_SCALE, PBN_ALTITUDE_SCALE, PBN_OFFSET_FILTER, PBN_PRESSURE_OFFSET, pbn_trans, stateSetAirspeed_f(), i2c_transaction::status, and TRUE.
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().