1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00

Merge pull request #3799 from adrianmiriuta/HEADFREE_MAG

HEADFREE true 3D (second edition)...
This commit is contained in:
Michael Keller 2017-10-12 00:01:23 +13:00 committed by GitHub
commit a7deb8b899
11 changed files with 181 additions and 92 deletions

View file

@ -89,7 +89,7 @@ static float hanningWindow[FFT_WINDOW_SIZE];
void initHanning(void)
{
for (int i = 0; i < FFT_WINDOW_SIZE; i++) {
hanningWindow[i] = (0.5 - 0.5 * cosf(2 * M_PIf * i / (FFT_WINDOW_SIZE - 1)));
hanningWindow[i] = (0.5 - 0.5 * cos_approx(2 * M_PIf * i / (FFT_WINDOW_SIZE - 1)));
}
}