From 7c507f136c6521fabb059eafb0df98ed964ecf93 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 20 Nov 2024 13:20:54 +1300 Subject: [PATCH] bmp280: disable device filter It looks like the BMP280 was heavily filtered, leading to a step response of around 3 seconds. Comparing it to baro logs of BMP388 and MS5611, it looks very slow. I therefore suggest to disable the on device IIR filter which makes the log data look more like the other baros. --- src/drivers/barometer/bmp280/BMP280.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/barometer/bmp280/BMP280.cpp b/src/drivers/barometer/bmp280/BMP280.cpp index ae5387ad7c2a..864d4d3f3b88 100644 --- a/src/drivers/barometer/bmp280/BMP280.cpp +++ b/src/drivers/barometer/bmp280/BMP280.cpp @@ -67,7 +67,7 @@ BMP280::init() // set config, recommended settings _interface->set_reg(_curr_ctrl, BMP280_ADDR_CTRL); - _interface->set_reg(BMP280_CONFIG_F16, BMP280_ADDR_CONFIG); + _interface->set_reg(BMP280_CONFIG_F0, BMP280_ADDR_CONFIG); // get calibration and pre process them _cal = _interface->get_calibration(BMP280_ADDR_CAL);