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

26 lines
672 B
C
Raw Normal View History

2016-09-10 13:03:27 -07:00
/*
* @file biquad.h
*
* @date Sep 10, 2016
2017-01-03 03:05:22 -08:00
* @author Andrey Belomutskiy, (c) 2012-2017
2016-09-10 13:03:27 -07:00
*/
#ifndef CONTROLLERS_MATH_BIQUAD_H_
#define CONTROLLERS_MATH_BIQUAD_H_
// 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;
};
#endif /* CONTROLLERS_MATH_BIQUAD_H_ */