Expand description
The loop-response tab’s measurement: per motor the open-loop response of its velocity loop as sim-cli margins
measures it (analysis::velocity_loop_responses, refined where it changes fast), its margins, the machine’s
resonances and the input shaper’s and the notch filter’s frequencies, and what the plots draw of it (closed loop,
phases, the phase crossover). It runs in a thread of its own, with progress and a cancel switch, as the app’s other
long runs do. No text for the user is written here.
Structs§
- Loop
Response - The tab’s state: the last result with the config it was measured for, the motor shown, and the job under way.
- Response
- What the measurement gives the tab.
Functions§
- cancelled
- Whether an error is the answer of a cancelled measurement.
- closed_
loop - The closed loop T = L / (1 + L) of a point, (real, imaginary part).
- markers
- The frequencies the config filters or shapes at: the input shaper’s (the first, the second and each of
profile.shaper_modes) witheffects.input_shapingon, the velocity loop’s notch filter witheffects.notch_filteron. - measure
- The measurement: the responses of the config’s motors (
velocity_loop_responses), their margins with the time run for hammering across a play (backlash_hammering), and what the plots mark. A cancelled one answersConfigError::Invalid(CANCELLED). - phase_
crossover - Where the gain margin is read: the crossing
loop_marginstakes. The phase (phases) starts from 0 at the first point’s gain; of its crossings of odd multiples of -180 degrees only falling ones count (interpolated on the logarithmic frequency axis, linearly in the phase), and a rising one at |L| > 1 cancels the latest falling one at |L| > 1 (Nyquist). Of those left the one with the largest |L|;Nonewithout one. - phases
- Phases in degrees of complex values in frequency order, unwrapped along the frequency axis and turned by whole
turns so that the first lies in (-270, 90], as
loop_marginstakes the loop’s phase. A value that is not a number gives NaN and the next one is unwrapped from the last that was. - unwrap_
near - The phase
raw(degrees) turned by whole turns to lie within half a turn of the previous one,last: unwrapped in both directions.