Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_board.c File Reference

Paparazzi AR Drone 2 Baro Sensor implementation:. More...

#include "subsystems/sensors/baro.h"
#include "subsystems/abi.h"
#include "baro_board.h"
#include "navdata.h"
+ Include dependency graph for baro_board.c:

Go to the source code of this file.

Macros

#define BMP180_OSS   0
 Use an extra median filter to filter baro data. More...
 

Functions

void baro_init (void)
 
void baro_periodic (void)
 
static int32_t baro_apply_calibration (int32_t raw)
 Apply temperature and sensor calibration to get pressure in Pa. More...
 
static int32_t baro_apply_calibration_temp (int32_t tmp_raw)
 Apply temperature calibration. More...
 
void ardrone_baro_event (void)
 

Detailed Description

Paparazzi AR Drone 2 Baro Sensor implementation:.

Based on BMP180 implementation by C. de Wagter.

Definition in file baro_board.c.

Macro Definition Documentation

#define BMP180_OSS   0

Use an extra median filter to filter baro data.

Definition at line 42 of file baro_board.c.

Referenced by baro_apply_calibration().

Function Documentation

static int32_t baro_apply_calibration ( int32_t  raw)
inlinestatic

Apply temperature and sensor calibration to get pressure in Pa.

Parameters
rawuncompensated raw pressure reading
Returns
compensated pressure in Pascal

Definition at line 58 of file baro_board.c.

References bmp180_calib_t::ac1, bmp180_calib_t::ac2, bmp180_calib_t::ac3, bmp180_calib_t::ac4, bmp180_calib_t::b1, bmp180_calib_t::b2, bmp180_calib_t::b5, navdata_t::bmp180_calib, BMP180_OSS, navdata, and p.

Referenced by ardrone_baro_event().

+ Here is the caller graph for this function:

static int32_t baro_apply_calibration_temp ( int32_t  tmp_raw)
inlinestatic

Apply temperature calibration.

Parameters
tmp_rawuncompensated raw temperature reading
Returns
compensated temperature in 0.1 deg Celcius

Definition at line 84 of file baro_board.c.

References bmp180_calib_t::ac5, bmp180_calib_t::ac6, bmp180_calib_t::b5, navdata_t::bmp180_calib, bmp180_calib_t::mc, bmp180_calib_t::md, and navdata.

Referenced by ardrone_baro_event().

+ Here is the caller graph for this function:

void baro_init ( void  )

Definition at line 44 of file baro_board.c.

References init_median_filter().

+ Here is the call graph for this function:

void baro_periodic ( void  )

Definition at line 51 of file baro_board.c.