From 0ba31b521c5a32b5336c130bce4579663c530830 Mon Sep 17 00:00:00 2001 From: Paul Riseborough Date: Mon, 9 Jan 2017 13:25:36 +0100 Subject: [PATCH] uavcan: Populate baro device ID TODO - use unique HW ID --- src/modules/uavcan/sensors/baro.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/uavcan/sensors/baro.cpp b/src/modules/uavcan/sensors/baro.cpp index 0847773a55..9c547e58ab 100644 --- a/src/modules/uavcan/sensors/baro.cpp +++ b/src/modules/uavcan/sensors/baro.cpp @@ -165,6 +165,9 @@ void UavcanBarometerBridge::air_pressure_sub_cb(const report.pressure = msg.static_pressure / 100.0F; // Convert to millibar report.error_count = 0; + /* TODO get device ID for sensor */ + report.device_id = 0; + /* * Altitude computation * Refer to the MS5611 driver for details