mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Start decoupling imu from config.
This commit is contained in:
parent
9b6e8feeea
commit
da73be1b2d
4 changed files with 36 additions and 11 deletions
|
@ -36,9 +36,9 @@
|
|||
#include "sensors/battery.h"
|
||||
#include "io/buzzer.h"
|
||||
#include "io/escservo.h"
|
||||
#include "flight/flight.h"
|
||||
#include "flight/failsafe.h"
|
||||
#include "flight/imu.h"
|
||||
#include "flight/flight.h"
|
||||
#include "flight/autotune.h"
|
||||
#include "flight/mixer.h"
|
||||
#include "io/gimbal.h"
|
||||
|
@ -535,7 +535,7 @@ void loop(void)
|
|||
if (masterConfig.looptime == 0 || (int32_t)(currentTime - loopTime) >= 0) {
|
||||
loopTime = currentTime + masterConfig.looptime;
|
||||
|
||||
computeIMU();
|
||||
computeIMU(¤tProfile.accelerometerTrims);
|
||||
annexCode();
|
||||
// Measure loop rate just afer reading the sensors
|
||||
currentTime = micros();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue