mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
committed by
Lorenz Meier
parent
a9070ce6e6
commit
520a81a951
@@ -543,6 +543,7 @@ __BEGIN_DECLS
|
||||
# endif
|
||||
#endif /* HAVE_AUTOMOUNTER */
|
||||
|
||||
#define BOARD_HAS_NOISY_FXOS8700_MAG 1 // Disable internal MAG
|
||||
|
||||
/************************************************************************************
|
||||
* Public data
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user