mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
HMC: Fill extended mag report completely
This commit is contained in:
@@ -898,6 +898,9 @@ HMC5883::collect()
|
||||
/* this should be fairly close to the end of the measurement, so the best approximation of the time */
|
||||
new_report.timestamp = hrt_absolute_time();
|
||||
new_report.error_count = perf_event_count(_comms_errors);
|
||||
new_report.range_ga = _range_ga;
|
||||
new_report.scaling = _range_scale;
|
||||
new_report.device_id = _device_id.devid;
|
||||
|
||||
/*
|
||||
* @note We could read the status register here, which could tell us that
|
||||
|
||||
Reference in New Issue
Block a user