mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 01:03:33 +08:00
drivers/mpu6000: Populate device ID in sensor topics
This commit is contained in:
committed by
Lorenz Meier
parent
cfaef7f433
commit
ddda5eccd6
@@ -2030,6 +2030,9 @@ MPU6000::measure()
|
|||||||
arb.temperature_raw = report.temp;
|
arb.temperature_raw = report.temp;
|
||||||
arb.temperature = _last_temperature;
|
arb.temperature = _last_temperature;
|
||||||
|
|
||||||
|
/* TODO return unique hardware ID */
|
||||||
|
arb.device_id = 0;
|
||||||
|
|
||||||
grb.x_raw = report.gyro_x;
|
grb.x_raw = report.gyro_x;
|
||||||
grb.y_raw = report.gyro_y;
|
grb.y_raw = report.gyro_y;
|
||||||
grb.z_raw = report.gyro_z;
|
grb.z_raw = report.gyro_z;
|
||||||
@@ -2063,6 +2066,9 @@ MPU6000::measure()
|
|||||||
grb.temperature_raw = report.temp;
|
grb.temperature_raw = report.temp;
|
||||||
grb.temperature = _last_temperature;
|
grb.temperature = _last_temperature;
|
||||||
|
|
||||||
|
/* TODO return unique hardware ID */
|
||||||
|
grb.device_id = 0;
|
||||||
|
|
||||||
_accel_reports->force(&arb);
|
_accel_reports->force(&arb);
|
||||||
_gyro_reports->force(&grb);
|
_gyro_reports->force(&grb);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user