Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pressure_board_navarro.h File Reference
#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.

Macros

#define PbnEvent()   { if (pbn_trans.status == I2CTransSuccess) pbn_read_event(); }
 
#define PERIODIC_SEND_PBN(_chan)   DOWNLINK_SEND_PBN(DefaultChannel, DefaultDevice,&airspeed_adc,&altitude_adc,&pbn_airspeed,&pbn_altitude,&airspeed_offset,&altitude_offset);
 

Functions

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

Variables

uint16_t altitude_adc
 
uint16_t airspeed_adc
 
uint16_t altitude_offset
 
uint16_t airspeed_offset
 
float pbn_altitude
 
float pbn_airspeed
 
float airspeed_filter
 
bool_t data_valid
 
struct i2c_transaction pbn_trans
 

Macro Definition Documentation

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

Definition at line 55 of file pressure_board_navarro.h.

#define PERIODIC_SEND_PBN (   _chan)    DOWNLINK_SEND_PBN(DefaultChannel, DefaultDevice,&airspeed_adc,&altitude_adc,&pbn_airspeed,&pbn_altitude,&airspeed_offset,&altitude_offset);

Definition at line 57 of file pressure_board_navarro.h.

Function Documentation

void pbn_periodic ( void  )

Definition at line 96 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 67 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float airspeed_filter
uint16_t airspeed_offset

Definition at line 76 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint16_t altitude_adc

Definition at line 66 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

uint16_t altitude_offset

Definition at line 75 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

bool_t data_valid

Definition at line 68 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float pbn_airspeed

Definition at line 78 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

float pbn_altitude

Definition at line 77 of file pressure_board_navarro.c.

Referenced by pbn_init(), and pbn_read_event().

struct i2c_transaction pbn_trans

Definition at line 69 of file pressure_board_navarro.c.

Referenced by pbn_periodic(), and pbn_read_event().