36 #if USE_BARO_MEDIAN_FILTER
42 #define BMP180_OSS 0 // Parrot ARDrone uses no oversampling
46 #if USE_BARO_MEDIAN_FILTER
67 x3 = ((x1 + x2) + 2) >> 2;
70 int32_t p = b7 < 0x80000000L ? (b7 * 2) / b4 : (b7 / b4) * 2;
71 x1 = (p >> 8) * (p >> 8);
72 x1 = (x1 * 3038UL) >> 16;
73 x2 = (-7357L *
p) >> 16;
74 int32_t press = p + ((x1 + x2 + 3791L) >> 4);
100 #if USE_BARO_MEDIAN_FILTER
103 float pressure = (float)press_pascal;
bool_t baro_calibrated
Whenever the baro is calibrated.
Common barometric sensor implementation.
bool_t baro_available
Whenever the baro is available.
struct bmp180_calib_t bmp180_calib
BMP180 calibration receieved from navboard.
static int32_t baro_apply_calibration(int32_t raw)
Apply temperature and sensor calibration to get pressure in Pa.
struct navdata_measure_t measure
Main navdata packet receieved from navboard.
Main include for ABI (AirBorneInterface).
uint16_t temperature_pressure
#define BMP180_OSS
Use an extra median filter to filter baro data.
Paparazzi AR Drone 2 Baro Sensor implementation:.
#define BARO_BOARD_SENDER_ID
default onboard baro
ardrone2 navdata aquisition driver.
void ardrone_baro_event(void)
static int32_t baro_apply_calibration_temp(int32_t tmp_raw)
Apply temperature calibration.