Change minimum smoothing time threshold

Updated the minimum smoothing time threshold from 0.00001f to 0.0001f.
This commit is contained in:
David Buezas 2025-12-22 08:26:24 +01:00 committed by GitHub
parent 221237632a
commit 19e21b79b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,13 +28,14 @@
// Set smoothing time and recalculate alpha and delay.
void AxisSmoothing::set_time(const float s_time) {
if (s_time >= 0.00001f) {
if (s_time >= 0.0001f) {
alpha = 1.0f - expf(-(FTM_TS) * (FTM_SMOOTHING_ORDER) / s_time );
delay_samples = s_time * FTM_FS;
}
else {
alpha = 1.0f;
delay_samples = 0;
}
delay_samples = s_time * FTM_FS;
}
#endif // FTM_SMOOTHING