pub fn check_limits(
machine: &dyn Machine,
drives: &[&DriveParams],
) -> Vec<LimitViolation>Expand description
Checks that the axis limits do not ask more of a motor than its drive and motor allow (drives, each motor’s own, in
the order of Machine::motors): the motor speed at the highest axis speeds against the motor’s maximum speed
(DriveParams::max_speed), and the torque of the rigid machine at the highest axis accelerations against its
torque-speed curve at that speed (or the torque of the drive’s maximum current, where lower). A diagonal move loads
one motor with both axes, so every combination of axis directions is tried, at the middle pose.
A warning about the axis limits, not a verdict: it takes every axis at its highest speed and acceleration at once, which a cycle need not ask. So nothing is refused by it; the search simulates every candidate and the verdicts judge what the cycle asks (“motor-peak” against the curve, “motor-speed” against the maximum speed).