mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-156 AHRS: Make the account for the fact the analog data is downsampled two
times for each EKF update git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2193 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
476d548da9
commit
e6a21977f1
@ -228,7 +228,7 @@ TIM8 | | | |
|
||||
// PCKL2 = HCLK / 16
|
||||
// ADCCLK = PCLK2 / 2
|
||||
#define PIOS_ADC_RATE (72.0e6 / 16 / 2 / 252 / (PIOS_ADC_NUM_PINS / 2))
|
||||
#define EKF_RATE (PIOS_ADC_RATE / adc_oversampling)
|
||||
#define EKF_RATE (PIOS_ADC_RATE / adc_oversampling / 2)
|
||||
|
||||
//-------------------------
|
||||
// GPIO
|
||||
|
Loading…
x
Reference in New Issue
Block a user