calibrate z endstop update
This commit is contained in:
parent
af348aa8ba
commit
dd4d8e1277
2 changed files with 20 additions and 10 deletions
|
@ -2115,7 +2115,12 @@ bool calibrate_z_auto()
|
||||||
plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate / 60, active_extruder);
|
plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate / 60, active_extruder);
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
enable_endstops(endstops_enabled);
|
enable_endstops(endstops_enabled);
|
||||||
|
if (PRINTER_TYPE == PRINTER_MK3) {
|
||||||
current_position[Z_AXIS] = Z_MAX_POS + 2.0;
|
current_position[Z_AXIS] = Z_MAX_POS + 2.0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
current_position[Z_AXIS] = Z_MAX_POS + 9.0;
|
||||||
|
}
|
||||||
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3208,7 +3208,12 @@ bool lcd_calibrate_z_end_stop_manual(bool only_z)
|
||||||
calibrated:
|
calibrated:
|
||||||
// Let the machine think the Z axis is a bit higher than it is, so it will not home into the bed
|
// Let the machine think the Z axis is a bit higher than it is, so it will not home into the bed
|
||||||
// during the search for the induction points.
|
// during the search for the induction points.
|
||||||
|
if (PRINTER_TYPE == PRINTER_MK25) {
|
||||||
current_position[Z_AXIS] = Z_MAX_POS-3.f;
|
current_position[Z_AXIS] = Z_MAX_POS-3.f;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
current_position[Z_AXIS] = Z_MAX_POS+4.f;
|
||||||
|
}
|
||||||
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue