mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 12:43:35 +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.altitude = imu.pressure_alt;
|
||||||
baro.temperature = imu.temperature;
|
baro.temperature = imu.temperature;
|
||||||
|
|
||||||
|
/* TODO get device ID for sensor */
|
||||||
|
baro.device_id = 0;
|
||||||
|
|
||||||
if (_baro_pub == nullptr) {
|
if (_baro_pub == nullptr) {
|
||||||
_baro_pub = orb_advertise(ORB_ID(sensor_baro), &baro);
|
_baro_pub = orb_advertise(ORB_ID(sensor_baro), &baro);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user