pub fn smoothing_span(machine: &dyn Machine, trace: &Trace) -> f64Expand description
The span a machine’s trace is smoothed over, s: SMOOTHING_S where every motor turns each way long enough at it
(turns_both_ways); else the longest span at which they do, in whole rows of the trace’s step, but not shorter than
one period of the machine’s lowest mode (Machine::modes, at the forward kinematics of the motor angles at ten rows
spread over the trace), where the triangle’s first zero takes its ringing out. SMOOTHING_S where none does (or
where the lowest mode is below 25 Hz): the trace is then not fitted. The four-arm delta’s lifts last some 60 ms and its
arms 2 and 4 reverse in each traverse: at 40 ms its motor 2 kept its sign forward for 198 of the 810 rows a direction
needs; its lowest mode, 44 Hz without the payload, allows down to 23 ms.
A machine that reports no mode at all may go down to RIGID_SPAN_S: the cycle of a planar two-arm picker with friction
feedforward from its model (15 November 2026) keeps motor 1 turning backwards for 808 of the 810 rows 40 ms needs,
and its fit was skipped.