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:
parent
deda79cb14
commit
0b9c326ffe
4 changed files with 6 additions and 46 deletions
|
@ -535,7 +535,7 @@ void loop(void)
|
|||
if (masterConfig.looptime == 0 || (int32_t)(currentTime - loopTime) >= 0) {
|
||||
loopTime = currentTime + masterConfig.looptime;
|
||||
|
||||
computeIMU(¤tProfile.accelerometerTrims);
|
||||
computeIMU(¤tProfile.accelerometerTrims, masterConfig.mixerConfiguration);
|
||||
annexCode();
|
||||
// Measure loop rate just afer reading the sensors
|
||||
currentTime = micros();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue