pub fn speed_kept_of(
ki: f64,
inertia: f64,
feedforward: f64,
acc: f64,
top: f64,
train: f64,
) -> f64Expand description
The share of its top speed top (rad/s) that a motor’s velocity loop follows a ramp of acceleration acc (rad/s^2)
off by, at most, from the loop’s integral gain ki (N m per rad), the inertia inertia (kg m^2) it is tuned for
and the share feedforward of the torque J a that the precontrol gives. The speed error e of the PI loop on a ramp
a t, with the loop’s torque (1 - feedforward) J a to find, obeys J e’’ + kp e’ + ki e = 0 with e’(0) = (1 -
feedforward) a, whose peak is at most (1 - feedforward) a / w_n for the natural frequency w_n = sqrt(ki / J)
(the underdamped peak a/w_n exp(-z acos(z) / sqrt(1 - z^2)) is below it, as is the critical a/(e w_n)). The share is
that over top, at least SPEED_KEPT: a loop that follows a ramp closely keeps the least. On top of it the speed
train (rad/s) that an elastic drive train adds (train_speed); at most SPEED_KEPT_MOST in all.