Merge pull request #4687 from 3d-gussner/MK3_Replace_hard_coded_values_1
Replace hardcoded values
This commit is contained in:
commit
e405e9140c
|
|
@ -2235,12 +2235,7 @@ bool calibrate_z_auto()
|
||||||
plan_buffer_line_destinationXYZE(feedrate / 60);
|
plan_buffer_line_destinationXYZE(feedrate / 60);
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
enable_endstops(endstops_enabled);
|
enable_endstops(endstops_enabled);
|
||||||
if (PRINTER_TYPE == PRINTER_MK3) {
|
current_position[Z_AXIS] = Z_MAX_POS + Z_MAX_POS_XYZ_CALIBRATION_CORRECTION;
|
||||||
current_position[Z_AXIS] = Z_MAX_POS + 2.0;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
current_position[Z_AXIS] = Z_MAX_POS + 9.0;
|
|
||||||
}
|
|
||||||
plan_set_position_curposXYZE();
|
plan_set_position_curposXYZE();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 2
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 2
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 2
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 9
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 9
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,9 @@
|
||||||
#define Z_MAX_POS 210
|
#define Z_MAX_POS 210
|
||||||
#define Z_MIN_POS 0.15
|
#define Z_MIN_POS 0.15
|
||||||
|
|
||||||
|
// Z height correction value
|
||||||
|
#define Z_MAX_POS_XYZ_CALIBRATION_CORRECTION 9
|
||||||
|
|
||||||
// Canceled home position
|
// Canceled home position
|
||||||
#define X_CANCEL_POS 50
|
#define X_CANCEL_POS 50
|
||||||
#define Y_CANCEL_POS 190
|
#define Y_CANCEL_POS 190
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue