pub fn s1_torque(cfg: &Config, speed: f64) -> Result<Option<f64>, ConfigError>Expand description
The motor’s S1 torque at a speed, as Siemens sizes a cycle (RMS torque at the mean speed against it): from the static
torque kt I_0 at standstill (motor.stall_current_a) straight to the rated torque at the rated speed, and on along
that line above it. None where the config has no stall current. Where it has the maker’s printed curve
(motor.s1_curve_speed_rad_s and motor.s1_curve_torque_nm, digitised from the graph) the torque is read from it,
linearly between its points (drive::s1_interpolated), with the bend the voltage limit gives above the rated speed.