Browse Source

drivers/mpu6500: Populate device ID in sensor topics

sbg
Paul Riseborough 8 years ago committed by Lorenz Meier
parent
commit
5177866b54
  1. 6
      src/drivers/mpu6500/mpu6500.cpp

6
src/drivers/mpu6500/mpu6500.cpp

@ -1833,6 +1833,9 @@ MPU6500::measure() @@ -1833,6 +1833,9 @@ MPU6500::measure()
arb.temperature_raw = report.temp;
arb.temperature = _last_temperature;
/* TODO return unique hardware ID */
arb.device_id = 0;
grb.x_raw = report.gyro_x;
grb.y_raw = report.gyro_y;
grb.z_raw = report.gyro_z;
@ -1866,6 +1869,9 @@ MPU6500::measure() @@ -1866,6 +1869,9 @@ MPU6500::measure()
grb.temperature_raw = report.temp;
grb.temperature = _last_temperature;
/* TODO return unique hardware ID */
grb.device_id = 0;
_accel_reports->force(&arb);
_gyro_reports->force(&grb);

Loading…
Cancel
Save