mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-04 13:47:43 -07:00
Change minimum smoothing time threshold
Updated the minimum smoothing time threshold from 0.00001f to 0.0001f.
This commit is contained in:
parent
221237632a
commit
19e21b79b6
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue