1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00

Complete decoupling of imu code from config.

The giant list of unrelated includes is now gone and the dependencies
are now clear.
This commit is contained in:
Dominic Clifton 2014-06-07 02:44:06 +01:00
parent deda79cb14
commit 0b9c326ffe
4 changed files with 6 additions and 46 deletions

View file

@ -535,7 +535,7 @@ void loop(void)
if (masterConfig.looptime == 0 || (int32_t)(currentTime - loopTime) >= 0) {
loopTime = currentTime + masterConfig.looptime;
computeIMU(&currentProfile.accelerometerTrims);
computeIMU(&currentProfile.accelerometerTrims, masterConfig.mixerConfiguration);
annexCode();
// Measure loop rate just afer reading the sensors
currentTime = micros();