mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 03:43:35 +08:00
drivers: use driver class instance as surrogate sensor ID for gyro and accelerometer
This commit is contained in:
committed by
Lorenz Meier
parent
60c12aaa36
commit
e84a189380
@@ -1075,8 +1075,8 @@ L3GD20::measure()
|
||||
report.scaling = _gyro_range_scale;
|
||||
report.range_rad_s = _gyro_range_rad_s;
|
||||
|
||||
/* TODO return unique hardware ID */
|
||||
report.device_id = 0;
|
||||
/* Return class instance as a surrogate device ID */
|
||||
report.device_id = _class_instance;
|
||||
|
||||
_reports->force(&report);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user