forked from Archive/PX4-Autopilot
use mBar
This commit is contained in:
parent
f5ae90a7cb
commit
68701b197a
|
@ -153,7 +153,7 @@ int DfBmp280Wrapper::_publish(struct baro_sensor_data &data)
|
|||
baro_report baro_report = {};
|
||||
baro_report.timestamp = hrt_absolute_time();
|
||||
|
||||
baro_report.pressure = data.pressure_pa;
|
||||
baro_report.pressure = data.pressure_pa / 100.0f; // to mbar
|
||||
baro_report.temperature = data.temperature_c;
|
||||
|
||||
// TODO: verify this, it's just copied from the MS5611 driver.
|
||||
|
|
Loading…
Reference in New Issue