mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge pull request #7529 from jflyper/bfdev-stronger-USE_ACC
[REFACTOR] More application of USE_ACC
This commit is contained in:
commit
7393d5fdac
10 changed files with 48 additions and 21 deletions
|
@ -538,7 +538,9 @@ void init(void)
|
|||
// so we are ready to call validateAndFixGyroConfig(), pidInit(), and setAccelerationFilter()
|
||||
validateAndFixGyroConfig();
|
||||
pidInit(currentPidProfile);
|
||||
#ifdef USE_ACC
|
||||
accInitFilters();
|
||||
#endif
|
||||
|
||||
#ifdef USE_PID_AUDIO
|
||||
pidAudioInit();
|
||||
|
@ -702,9 +704,11 @@ void init(void)
|
|||
blackboxInit();
|
||||
#endif
|
||||
|
||||
#ifdef USE_ACC
|
||||
if (mixerConfig()->mixerMode == MIXER_GIMBAL) {
|
||||
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
|
||||
}
|
||||
#endif
|
||||
gyroStartCalibration(false);
|
||||
#ifdef USE_BARO
|
||||
baroSetCalibrationCycles(CALIBRATING_BARO_CYCLES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue