uavcan: Populate baro device ID

TODO - use unique HW ID
This commit is contained in:
Paul Riseborough
2017-01-19 19:24:52 +01:00
committed by Lorenz Meier
parent 677616ed83
commit 0ba31b521c
+3
View File
@@ -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