mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
posix drivers: Populate device ID in sensor topics for mpu6050
This commit is contained in:
committed by
Lorenz Meier
parent
48f81f24e1
commit
1009550262
@@ -531,10 +531,16 @@ int DfMPU6050Wrapper::_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