mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:43:33 +08:00
posix drivers: Populate device ID in sensor topics for lsm9ds1 sensor
This commit is contained in:
committed by
Lorenz Meier
parent
7c9e9f31e1
commit
48f81f24e1
@@ -689,10 +689,16 @@ int DfLsm9ds1Wrapper::_publish(struct imu_sensor_data &data)
|
||||
gyro_report.y_integral = gyro_val_integ(1);
|
||||
gyro_report.z_integral = gyro_val_integ(2);
|
||||
|
||||
/* TODO return unique hardware ID */
|
||||
gyro_report.device_id = 0;
|
||||
|
||||
accel_report.x_integral = accel_val_integ(0);
|
||||
accel_report.y_integral = accel_val_integ(1);
|
||||
accel_report.z_integral = accel_val_integ(2);
|
||||
|
||||
/* TODO return unique hardware ID */
|
||||
accel_report.device_id = 0;
|
||||
|
||||
// TODO: when is this ever blocked?
|
||||
if (!(m_pub_blocked)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user