forked from Archive/PX4-Autopilot
[df_ms5607_wrapper] convert to mbar, fix error_count, device_id
This commit is contained in:
parent
5cb6753572
commit
05fc506a56
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue