mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavlink: Populate baro device ID
TODO - use unique HW ID
This commit is contained in:
parent
5e53a5425a
commit
677616ed83
@ -1802,6 +1802,9 @@ MavlinkReceiver::handle_message_hil_sensor(mavlink_message_t *msg)
|
||||
baro.altitude = imu.pressure_alt;
|
||||
baro.temperature = imu.temperature;
|
||||
|
||||
/* TODO get device ID for sensor */
|
||||
baro.device_id = 0;
|
||||
|
||||
if (_baro_pub == nullptr) {
|
||||
_baro_pub = orb_advertise(ORB_ID(sensor_baro), &baro);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user