Add M851 X Y probe offsets (#15202)
This commit is contained in:
committed by
Scott Lahteine
parent
ebc9a8a0b0
commit
df1e51258a
@ -198,7 +198,7 @@
|
||||
#define MSG_Z3_MAX "z3_max"
|
||||
#define MSG_Z_PROBE "z_probe"
|
||||
#define MSG_FILAMENT_RUNOUT_SENSOR "filament"
|
||||
#define MSG_PROBE_Z_OFFSET "Probe Z Offset"
|
||||
#define MSG_PROBE_OFFSET "Probe Offset"
|
||||
#define MSG_SKEW_MIN "min_skew_factor: "
|
||||
#define MSG_SKEW_MAX "max_skew_factor: "
|
||||
#define MSG_ERR_MATERIAL_INDEX "M145 S<index> out of range (0-1)"
|
||||
|
@ -79,40 +79,36 @@ void safe_delay(millis_t ms) {
|
||||
);
|
||||
|
||||
#if HAS_BED_PROBE
|
||||
SERIAL_ECHOPAIR(
|
||||
"Probe Offset X:" STRINGIFY(X_PROBE_OFFSET_FROM_EXTRUDER)
|
||||
" Y:" STRINGIFY(Y_PROBE_OFFSET_FROM_EXTRUDER)
|
||||
" Z:", zprobe_zoffset
|
||||
);
|
||||
if ((X_PROBE_OFFSET_FROM_EXTRUDER) > 0)
|
||||
SERIAL_ECHOPAIR("Probe Offset X:", zprobe_offset[X_AXIS], " Y:", zprobe_offset[Y_AXIS], " Z:", zprobe_offset[Z_AXIS]);
|
||||
if (zprobe_offset[X_AXIS] > 0)
|
||||
SERIAL_ECHOPGM(" (Right");
|
||||
else if ((X_PROBE_OFFSET_FROM_EXTRUDER) < 0)
|
||||
else if (zprobe_offset[X_AXIS] < 0)
|
||||
SERIAL_ECHOPGM(" (Left");
|
||||
else if ((Y_PROBE_OFFSET_FROM_EXTRUDER) != 0)
|
||||
else if (zprobe_offset[Y_AXIS] != 0)
|
||||
SERIAL_ECHOPGM(" (Middle");
|
||||
else
|
||||
SERIAL_ECHOPGM(" (Aligned With");
|
||||
|
||||
if ((Y_PROBE_OFFSET_FROM_EXTRUDER) > 0) {
|
||||
if (zprobe_offset[Y_AXIS] > 0) {
|
||||
#if IS_SCARA
|
||||
SERIAL_ECHOPGM("-Distal");
|
||||
#else
|
||||
SERIAL_ECHOPGM("-Back");
|
||||
#endif
|
||||
}
|
||||
else if ((Y_PROBE_OFFSET_FROM_EXTRUDER) < 0) {
|
||||
else if (zprobe_offset[Y_AXIS] < 0) {
|
||||
#if IS_SCARA
|
||||
SERIAL_ECHOPGM("-Proximal");
|
||||
#else
|
||||
SERIAL_ECHOPGM("-Front");
|
||||
#endif
|
||||
}
|
||||
else if ((X_PROBE_OFFSET_FROM_EXTRUDER) != 0)
|
||||
else if (zprobe_offset[X_AXIS] != 0)
|
||||
SERIAL_ECHOPGM("-Center");
|
||||
|
||||
if (zprobe_zoffset < 0)
|
||||
if (zprobe_offset[Z_AXIS] < 0)
|
||||
SERIAL_ECHOPGM(" & Below");
|
||||
else if (zprobe_zoffset > 0)
|
||||
else if (zprobe_offset[Z_AXIS] > 0)
|
||||
SERIAL_ECHOPGM(" & Above");
|
||||
else
|
||||
SERIAL_ECHOPGM(" & Same Z as");
|
||||
|
Reference in New Issue
Block a user