pub fn velocity_loop_response(
entry: &MachineEntry,
cfg: &Config,
motor: usize,
frequencies: &[f64],
amplitude: f64,
) -> Result<Vec<LoopPoint>, ConfigError>Expand description
The open-loop response of the velocity loop of one motor, measured on the closed loop as a drive’s own measurement function does: a sine torque d is added to what the loop asks for (u), before the limit, with the machine holding its start pose. The torque that reaches the motor is e = u + d, the loop answers u = -L e, so L = -U / E and S = E / D at the frequency. Everything between the two is in L: velocity filter, PI, torque filter, delays, current loop, the elastic mechanics, and the position loop around it. Sampled at the velocity cycle, over whole periods: at least 0.1 s to settle and 0.1 s to measure.
Measured with effects.gearbox_efficiency off: at standstill the efficiency’s fade with the transmitted power
(Gearbox::loss_factor) would act as a large damper on the small-signal torque and hide the loop (a crane hoist read
no gain crossover); the small-signal loop is that of the lossless gearbox. And with the motor encoders unrounded and
without noise (Controller::unrounded_encoders), their speed still the difference per cycle: above some 270 Hz the
test swing of a track of linear-motor movers is less than a count, and the rounding read its gain margin as 16.3 to
32.9 dB, mover by mover as each stood in its count, where the loop has 16.96 to 17.29 dB (its force ripple’s +-2 %).