mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
i hate web coding
This commit is contained in:
@@ -30,7 +30,7 @@ void tilt_init(TiltCorrectionFilter* filter, float alpha) {
|
||||
filter->dc_estimate = 0.0f; // Running DC estimate
|
||||
}
|
||||
|
||||
float tilt_correct(TiltCorrectionFilter* filter, float input) {
|
||||
float tilt(TiltCorrectionFilter* filter, float input) {
|
||||
// Update DC estimate using leaky integrator
|
||||
filter->dc_estimate = filter->alpha * filter->dc_estimate + (1.0f - filter->alpha) * input;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user