pub(crate) fn margins(args: &Args, tr: &Translations) -> Result<(), Failure>Expand description
margins <machine> [--bands]: per motor the stability margins of its velocity loop (velocity_loop_margins), for
the config as it is at each pose its cycle stops at (margin_poses; the start pose’s run is named “”) and with
--bands with each value of [bounds] at its low and at its high bound at the start pose. With several poses each
motor’s least phase margin, gain margin and margin across the play over them is named on stderr with its pose. A row whose
loop is unstable, whose measurement is not valid or that hammers across its gearbox’s play (LoopMargins::stable)
says FAIL; one that hammers is named on stderr with the frequency and the torque’s peak. The column before it is the
describing function’s gain margin across the play (LoopMargins::play_margin_db, dB; empty where no play acts on the
loop), told and not judged.