mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Migrate ACC/GYRO to fastram
This commit is contained in:
parent
49f10730a0
commit
bbabf5589e
2 changed files with 19 additions and 19 deletions
|
@ -64,15 +64,15 @@
|
|||
#endif
|
||||
|
||||
|
||||
acc_t acc; // acc access functions
|
||||
FASTRAM acc_t acc; // acc access functions
|
||||
|
||||
static uint16_t calibratingA = 0; // the calibration is done is the main loop. Calibrating decreases at each cycle down to 0, then we enter in a normal mode.
|
||||
|
||||
static biquadFilter_t accFilter[XYZ_AXIS_COUNT];
|
||||
STATIC_FASTRAM biquadFilter_t accFilter[XYZ_AXIS_COUNT];
|
||||
|
||||
#ifdef USE_ACC_NOTCH
|
||||
static filterApplyFnPtr accNotchFilterApplyFn;
|
||||
static void *accNotchFilter[XYZ_AXIS_COUNT];
|
||||
STATIC_FASTRAM filterApplyFnPtr accNotchFilterApplyFn;
|
||||
STATIC_FASTRAM void *accNotchFilter[XYZ_AXIS_COUNT];
|
||||
#endif
|
||||
|
||||
PG_REGISTER_WITH_RESET_FN(accelerometerConfig_t, accelerometerConfig, PG_ACCELEROMETER_CONFIG, 1);
|
||||
|
@ -500,7 +500,7 @@ void accInitFilters(void)
|
|||
}
|
||||
|
||||
#ifdef USE_ACC_NOTCH
|
||||
static biquadFilter_t accFilterNotch[XYZ_AXIS_COUNT];
|
||||
STATIC_FASTRAM biquadFilter_t accFilterNotch[XYZ_AXIS_COUNT];
|
||||
accNotchFilterApplyFn = nullFilterApply;
|
||||
|
||||
if (acc.accTargetLooptime && accelerometerConfig()->acc_notch_hz) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue