Skip to main content

start_at_setpoint

Function start_at_setpoint 

Source
pub fn start_at_setpoint(
    entry: &'static MachineEntry,
    config: &Config,
    pose: &[f64],
) -> Result<(Sim, Config), ConfigError>
Expand description

A simulation of config whose planned setpoint stands at pose (a running machine’s setpoint), and the config it starts from. The planning model puts the tool at start.pose and its setpoint one rest sag off it (0.26 mm on the planar delta): the tool is moved by what is left until the setpoint is pose. A pose the machine cannot start at is refused; a push that would put the tool past a stroke’s end puts it at that end (the setpoint then stands up to a sag off pose along that axis, where no tool on the stroke can put it). A push off the machine’s envelope (not a stroke’s end) keeps the last start: the tool moves less than a sag between two of them.