mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:43:33 +08:00
ak09916: fixed driver not reporting magnetometer as external
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -252,6 +252,7 @@ AK09916::measure()
|
|||||||
}
|
}
|
||||||
|
|
||||||
_px4_mag.set_error_count(perf_event_count(_mag_errors));
|
_px4_mag.set_error_count(perf_event_count(_mag_errors));
|
||||||
|
_px4_mag.set_external(external());
|
||||||
_px4_mag.update(timestamp_sample, raw_data.x, raw_data.y, raw_data.z);
|
_px4_mag.update(timestamp_sample, raw_data.x, raw_data.y, raw_data.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user