|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
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) |
Paparazzi AR Drone 2 Baro Sensor implementation:.
Based on BMP180 implementation by C. de Wagter.
Definition in file baro_board.c.
| #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().
| void ardrone_baro_event | ( | void | ) |
Definition at line 92 of file baro_board.c.
References baro_apply_calibration(), baro_apply_calibration_temp(), navdata_t::baro_available, BARO_BOARD_SENDER_ID, navdata_t::baro_calibrated, navdata_t::measure, navdata, navdata_measure_t::pressure, navdata_measure_t::temperature_pressure, and update_median_filter_i().
Here is the call graph for this function:Apply temperature and sensor calibration to get pressure in Pa.
| raw | uncompensated raw pressure reading |
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:Apply temperature calibration.
| tmp_raw | uncompensated raw temperature reading |
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_i(), and MEDIAN_DEFAULT_SIZE.
Here is the call graph for this function:| void baro_periodic | ( | void | ) |
Definition at line 51 of file baro_board.c.