1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Merge pull request #1606 from martinbudden/bf_gyro_isr

Gyro initialisation refactoring
This commit is contained in:
Martin Budden 2016-12-01 18:43:43 +01:00 committed by GitHub
commit fd5710051e
28 changed files with 136 additions and 124 deletions

View file

@ -18,6 +18,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "platform.h"
@ -990,7 +991,7 @@ static void loadMainState(uint32_t currentTime)
}
for (i = 0; i < XYZ_AXIS_COUNT; i++) {
blackboxCurrent->gyroADC[i] = gyroADC[i];
blackboxCurrent->gyroADC[i] = lrintf(gyroADCf[i]);
}
for (i = 0; i < XYZ_AXIS_COUNT; i++) {