1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Merge pull request #7529 from jflyper/bfdev-stronger-USE_ACC

[REFACTOR] More application of USE_ACC
This commit is contained in:
Michael Keller 2019-02-06 10:08:49 +13:00 committed by GitHub
commit 7393d5fdac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 48 additions and 21 deletions

View file

@ -140,8 +140,10 @@ static void activateConfig(void)
rcControlsInit();
failsafeReset();
#ifdef USE_ACC
setAccelerationTrims(&accelerometerConfigMutable()->accZero);
accInitFilters();
#endif
imuConfigure(throttleCorrectionConfig()->throttle_correction_angle, throttleCorrectionConfig()->throttle_correction_value);