[df_ms5607_wrapper] convert to mbar, fix error_count, device_id

This commit is contained in:
Bram Strack van Schijndel 2018-07-04 17:13:32 +02:00 committed by Beat Küng
parent 5cb6753572
commit 05fc506a56
1 changed files with 3 additions and 1 deletions

View File

@ -151,8 +151,10 @@ int DfMS5607Wrapper::_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; // convert to mbar
baro_report.temperature = data.temperature_c;
baro_report.error_count = data.error_counter;
baro_report.device_id = m_id.dev_id;
// TODO: when is this ever blocked?
if (!(m_pub_blocked)) {