mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
DfBmp280Wrapper: initialise baro report
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -150,7 +150,7 @@ int DfBmp280Wrapper::_publish(struct baro_sensor_data &data)
|
|||||||
{
|
{
|
||||||
perf_begin(_baro_sample_perf);
|
perf_begin(_baro_sample_perf);
|
||||||
|
|
||||||
baro_report baro_report;
|
baro_report baro_report = {};
|
||||||
baro_report.timestamp = hrt_absolute_time();
|
baro_report.timestamp = hrt_absolute_time();
|
||||||
|
|
||||||
baro_report.pressure = data.pressure_pa / 100.0f; // to mbar
|
baro_report.pressure = data.pressure_pa / 100.0f; // to mbar
|
||||||
|
|||||||
Reference in New Issue
Block a user