* one call only

* oops am idiot

Co-authored-by: David Holdeman <dave@holdemanenterprises.com>
This commit is contained in:
rusefillc 2022-06-27 22:29:34 -04:00 committed by GitHub
parent 76f75b776d
commit 5607baefa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -58,10 +58,7 @@ void Biquad::configureLowpass(float samplingFrequency, float cutoffFrequency, fl
float Biquad::filter(float input) {
float result = input * a0 + z1;
if (engineConfiguration->verboseQuad) {
efiPrintf("input %f", input);
efiPrintf("a0 %f", a0);
efiPrintf("z1 %f", z1);
efiPrintf("result %f", result);
efiPrintf("input %f, a0 %f, z1 %f, result %f", input, a0, z1, result);
}
z1 = input * a1 + z2 - b1 * result;
z2 = input * a2 - b2 * result;