pub fn inertia_ratios(
entry: &MachineEntry,
cfg: &Config,
) -> Result<Vec<f64>, ConfigError>Expand description
The inertia ratio of each motor, load over motor, at the middle of the travel: the inertia the motor turns
besides its rotor (the load, and the gearbox’s own inertia with it) over the rotor’s inertia, where the rotor’s is
that of the motor’s own config (motor_config). Per axis the inertia the motor turns is the torque the rigid machine
needs per unit of that axis’s acceleration (torque_per_acceleration) over the motor’s acceleration it takes (from
Machine::inverse, standing: no speed, so no term of the speed squared); of the axes that move the motor the
largest. NaN for a motor no axis moves. Assumes the machine’s feedforward has the rotors in, as every machine’s has.