1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Decoupling imu from config - pid profile.

This commit is contained in:
Dominic Clifton 2014-06-06 20:45:59 +01:00
parent da73be1b2d
commit 82bb6b7982
3 changed files with 9 additions and 7 deletions

View file

@ -389,7 +389,7 @@ void activateConfig(void)
imuRuntimeConfig.gyro_cmpfm_factor = masterConfig.gyro_cmpfm_factor;
imuRuntimeConfig.acc_lpf_factor = currentProfile.acc_lpf_factor;
configureImu(&imuRuntimeConfig);
configureImu(&imuRuntimeConfig, &currentProfile.pidProfile);
calculateThrottleAngleScale(currentProfile.throttle_correction_angle);