PixHawk Pro: Update mag IDs to have external higher priority

This commit is contained in:
Mathieu Bresciani
2017-03-07 23:43:28 +08:00
committed by Lorenz Meier
parent daf668e687
commit d67b6efda3
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -941,6 +941,11 @@ LIS3MDL::collect()
new_report.temperature = report.t;
new_report.temperature = 25 + (report.t / (16 * 8.0f));
// XXX revisit for SPI part, might require a bus type IOCTL
unsigned dummy;
sensor_is_onboard = !_interface->ioctl(MAGIOCGEXTERNAL, dummy);
/*
* RAW outputs
*