mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 19:33:34 +08:00
sensor_mag.msg: add is_external flag & set it in the mag drivers
With this we don't have to use the ioctl MAGIOCGEXTERNAL, which does not work on POSIX (eg. RPi).
This commit is contained in:
@@ -945,6 +945,7 @@ LIS3MDL::collect()
|
||||
|
||||
unsigned dummy;
|
||||
sensor_is_onboard = !_interface->ioctl(MAGIOCGEXTERNAL, dummy);
|
||||
new_report.is_external = !sensor_is_onboard;
|
||||
|
||||
/*
|
||||
* RAW outputs
|
||||
|
||||
Reference in New Issue
Block a user