rusefi-1/firmware/util/math/biquad.h

23 lines
574 B
C
Raw Normal View History

2016-09-10 13:03:27 -07:00
/*
* @file biquad.h
*
* @date Sep 10, 2016
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2016-09-10 13:03:27 -07:00
*/
2020-04-01 18:32:21 -07:00
#pragma once
2016-09-10 13:03:27 -07:00
// todo: narrow this dependency further? only 'bi_quard_s' is needed, should it be extracted / moved to a smaller header?
// todo: do we need to make code generation smarted and produce a larger number of smaller headers instead of one monster header?
#include "engine_configuration.h"
2016-09-17 12:02:55 -07:00
2016-09-10 13:03:27 -07:00
class Biquad {
public:
Biquad();
void initValue(float input, bi_quard_s *settings);
2016-09-10 13:03:27 -07:00
float getValue(float input);
float a0, a1, a2, b1, b2;
float z1, z2;
};