mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 08:01:36 +08:00
posix drivers: Populate baro device ID
TODO - use unique HW ID
This commit is contained in:
committed by
Lorenz Meier
parent
0ba31b521c
commit
c21b4aaf2e
@@ -680,6 +680,9 @@ BAROSIM::collect()
|
||||
report.altitude = raw_baro.altitude;
|
||||
report.temperature = raw_baro.temperature;
|
||||
|
||||
/* TODO get device ID for sensor */
|
||||
report.device_id = 0;
|
||||
|
||||
/* publish it */
|
||||
if (!(m_pub_blocked)) {
|
||||
if (_baro_topic != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user