mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-29 15:59:14 +02:00
commit history final boss
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ void tilt_init(TiltCorrectionFilter* filter, float alpha) {
|
|||||||
filter->dc_estimate = 0.0f;
|
filter->dc_estimate = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
float tilt_correct(TiltCorrectionFilter* filter, float input) {
|
float tilt(TiltCorrectionFilter* filter, float input) {
|
||||||
// Track the baseline/DC level
|
// Track the baseline/DC level
|
||||||
filter->dc_estimate = filter->alpha * filter->dc_estimate + (1.0f - filter->alpha) * input;
|
filter->dc_estimate = filter->alpha * filter->dc_estimate + (1.0f - filter->alpha) * input;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user