pub(crate) fn identify(args: &Args, tr: &Translations) -> Result<(), Failure>Expand description
identify [MACHINE] --trace FILE [--map FILE]: one motor’s drive train from its own trace, with no
machine config: inertia, friction (Coulomb, viscous, Stribeck, LuGre presliding stiffness), constant
torque, and the lag and dead time from torque setpoint to torque (where mapped) and from position
setpoint to position. --motor N picks the motor (default 0). --from HZ --to HZ also computes the
frequency response torque to speed from the trace (which needs an excitation in it) and fits the
two-mass model to it; --sweep FILE fits it to a measured response instead. --step-from S [--step-to S]
fits the ringing of the speed after a torque step, and with --motor-inertia KGM2 (rotor and what sits on
it) and the fitted total inertia the two-mass model. Every value with its standard error and 95 %
interval, and how well each model reproduces the trace; --overlay FILE writes measured and modelled
signals side by side. Without --map the trace is in the simulator’s columns of MACHINE.