mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Cleanup // Reorganisation
This commit is contained in:
parent
fbfc9ee9ca
commit
d076a60eb5
3 changed files with 41 additions and 75 deletions
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "common/axis.h"
|
||||
#include "common/maths.h"
|
||||
#include "common/filter.h"
|
||||
|
||||
#include "drivers/sensor.h"
|
||||
#include "drivers/accgyro.h"
|
||||
|
@ -122,6 +123,8 @@ void gyroUpdate(void)
|
|||
}
|
||||
alignSensors(gyroADC, gyroADC, gyroAlign);
|
||||
|
||||
filterApply7TapFIR(gyroADC); // Apply filter to gyro
|
||||
|
||||
if (!isGyroCalibrationComplete()) {
|
||||
performAcclerationCalibration(gyroConfig->gyroMovementCalibrationThreshold);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue