mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Fix Q parameter not being used from input
This commit is contained in:
parent
a203693f95
commit
a5a0024fbd
1 changed files with 1 additions and 1 deletions
|
@ -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 omega = 2 * M_PI_FLOAT * filterFreq / sampleRate;
|
||||||
const float sn = sinf(omega);
|
const float sn = sinf(omega);
|
||||||
const float cs = cosf(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;
|
float b0, b1, b2, a0, a1, a2;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue