mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
mavlink: Populate baro device ID
TODO - use unique HW ID
This commit is contained in:
committed by
Lorenz Meier
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user