nxphlite-v3:Disable internal mag due to random spikes.

This will disable the fxos8701cq internal mag on
  the NXPHlite. There are random noise spikes on the
  HIGHRES_IMU.[x|y|x]mag. Even with all other SPI
  devices shut down, the noise is still present.
This commit is contained in:
David Sidrane
2018-09-10 16:46:54 -07:00
committed by Lorenz Meier
parent a9070ce6e6
commit 520a81a951
2 changed files with 3 additions and 0 deletions

View File

@@ -543,6 +543,7 @@ __BEGIN_DECLS
# endif
#endif /* HAVE_AUTOMOUNTER */
#define BOARD_HAS_NOISY_FXOS8700_MAG 1 // Disable internal MAG
/************************************************************************************
* Public data

View File

@@ -1200,7 +1200,9 @@ FXOS8701CQ::start()
1000,
_call_accel_interval - FXOS8701C_TIMER_REDUCTION,
(hrt_callout)&FXOS8701CQ::measure_trampoline, this);
#if !defined(BOARD_HAS_NOISY_FXOS8700_MAG)
hrt_call_every(&_mag_call, 1000, _call_mag_interval, (hrt_callout)&FXOS8701CQ::mag_measure_trampoline, this);
#endif
}
void