1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

MAG: Support for Freescale MAG3110 compass chip

This commit is contained in:
Konstantin (DigitalEntity) Sharlaimov 2016-03-09 21:21:59 +02:00
parent d424879b87
commit 8f25007144
10 changed files with 165 additions and 1 deletions

View file

@ -55,6 +55,7 @@
#include "drivers/compass.h"
#include "drivers/compass_hmc5883l.h"
#include "drivers/compass_ak8975.h"
#include "drivers/compass_mag3110.h"
#include "drivers/sonar_hcsr04.h"
@ -690,6 +691,18 @@ retry:
#endif
; // fallthrough
case MAG_MAG3110:
#ifdef USE_MAG_MAG3110
if (mag3110detect(&mag)) {
#ifdef MAG_MAG3110_ALIGN
magAlign = MAG_MAG3110_ALIGN;
#endif
magHardware = MAG_MAG3110;
break;
}
#endif
; // fallthrough
case MAG_FAKE:
#ifdef USE_FAKE_MAG
if (fakeMagDetect(&mag)) {