Skip to main content

deviation

Function deviation 

Source
pub fn deviation(
    axes: &[AxisInfo],
    start: &[f64],
    pieces: &[Piece],
    tolerance: impl Into<Tolerance>,
    slack: f64,
) -> Result<f64, CommandError>
Expand description

How far the path that is planned for these pieces is from the pieces as given, at most: the deviation the transition curves make, plus how far an arc ends off its stated end (given). Zero with a tolerance of zero and arcs that end on their circles. For the plan within the axis limits. A program’s run with a feed per piece (plan_feeds) is shaped per stretch of one feed, with no curve across a change of feed and shorter curves at a lower feed: this reads it as without the feeds, so it may read higher than that run’s own path, never lower, and never more than the larger of the two tolerances plus how far an arc ends off its stated end.