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 mpu9250
This commit is contained in:
committed by
Lorenz Meier
parent
1009550262
commit
961474f430
@@ -708,10 +708,16 @@ int DfMpu9250Wrapper::_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