mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
ArduCopter: added NUM_IMU_SAMPLES_FOR_XYZHZ definitions for MPU6000 and Oilpan to allow more syncing of the mainloop with the arrival of data from the IMU.
This commit is contained in:
parent
5a3645d36a
commit
4e85e545bf
@ -98,6 +98,17 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if CONFIG_IMU_TYPE == CONFIG_IMU_OILPAN
|
||||
# define NUM_IMU_SAMPLES_FOR_200HZ 5
|
||||
# define NUM_IMU_SAMPLES_FOR_100HZ 10
|
||||
# define NUM_IMU_SAMPLES_FOR_50HZ 20
|
||||
#endif
|
||||
|
||||
#if CONFIG_IMU_TYPE == CONFIG_IMU_MPU6000
|
||||
# define NUM_IMU_SAMPLES_FOR_200HZ 1
|
||||
# define NUM_IMU_SAMPLES_FOR_100HZ 2
|
||||
# define NUM_IMU_SAMPLES_FOR_50HZ 4
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// ADC Enable - used to eliminate for systems which don't have ADC.
|
||||
|
Loading…
Reference in New Issue
Block a user