mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ak09916: fixed driver not reporting magnetometer as external
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
2b8337e5e2
commit
c0053409a3
@ -252,6 +252,7 @@ AK09916::measure()
|
||||
}
|
||||
|
||||
_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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user