- // set the last probe position to the current actuator units
- THEROBOT->set_last_probe_position(std::make_tuple(
- THEROBOT->actuators[X_AXIS]->get_current_position(),
- THEROBOT->actuators[Y_AXIS]->get_current_position(),
- THEROBOT->actuators[Z_AXIS]->get_current_position(),
- 1));
-
- // move back to where it started, unless a Z is specified (and not a rotary delta)
- if(gcode->has_letter('Z') && !is_rdelta) {
- // set Z to the specified value, and leave probe where it is