mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
Fix MPU6050
This commit is contained in:
committed by
Lorenz Meier
parent
62f95931ed
commit
6209cd0e57
@@ -1834,7 +1834,7 @@ MPU6500::measure()
|
||||
arb.temperature = _last_temperature;
|
||||
|
||||
/* return device ID */
|
||||
arb.device_id = _device_id;
|
||||
arb.device_id = _device_id.devid;
|
||||
|
||||
grb.x_raw = report.gyro_x;
|
||||
grb.y_raw = report.gyro_y;
|
||||
@@ -1870,7 +1870,7 @@ MPU6500::measure()
|
||||
grb.temperature = _last_temperature;
|
||||
|
||||
/* return device ID */
|
||||
grb.device_id = _gyro->_device_id;
|
||||
grb.device_id = _gyro->_device_id.devid;
|
||||
|
||||
_accel_reports->force(&arb);
|
||||
_gyro_reports->force(&grb);
|
||||
|
||||
Reference in New Issue
Block a user