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

Fix Q parameter not being used from input

This commit is contained in:
borisbstyle 2016-07-16 11:05:46 +02:00
parent a203693f95
commit a5a0024fbd

View file

@ -67,7 +67,7 @@ void biquadFilterInit(biquadFilter_t *filter, float filterFreq, uint32_t refresh
const float omega = 2 * M_PI_FLOAT * filterFreq / sampleRate;
const float sn = sinf(omega);
const float cs = cosf(omega);
const float alpha = sn / (2 * BIQUAD_Q);
const float alpha = sn / (2 * Q);
float b0, b1, b2, a0, a1, a2;