* There are 2 different ways to specify probing locations *
* There are 2 different ways to specify probing locations *
...
@@ -293,9 +326,9 @@
...
@@ -293,9 +326,9 @@
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_2_Y 15
#define ABL_PROBE_PT_3_X 170
#define ABL_PROBE_PT_3_X 180
#define ABL_PROBE_PT_3_Y 20
#define ABL_PROBE_PT_3_Y 15
// no AUTO_BED_LEVELING_GRID
// no AUTO_BED_LEVELING_GRID
// Offsets to the probe relative to the extruder tip (Hotend - Probe)
// Offsets to the probe relative to the extruder tip (Hotend - Probe)
...
@@ -314,9 +347,6 @@
...
@@ -314,9 +347,6 @@
#define Y_PROBE_OFFSET_FROM_EXTRUDER 0 // Y offset: -front [of the nozzle] +behind
#define Y_PROBE_OFFSET_FROM_EXTRUDER 0 // Y offset: -front [of the nozzle] +behind
#define Z_PROBE_OFFSET_FROM_EXTRUDER -1 // Z offset: -below [of the nozzle] (always negative!)
#define Z_PROBE_OFFSET_FROM_EXTRUDER -1 // Z offset: -below [of the nozzle] (always negative!)
#define Z_RAISE_BEFORE_HOMING 10 // (in mm) Raise Z before homing (G28) for Probe Clearance.
// Be sure you have this distance over your Z_MAX_POS in case
#define Z_RAISE_BEFORE_PROBING 10 //How much the extruder will be raised before travelling to the first probing point.
#define Z_RAISE_BEFORE_PROBING 10 //How much the extruder will be raised before travelling to the first probing point.
#define Z_RAISE_BETWEEN_PROBINGS 5 //How much the extruder will be raised when travelling from between next probing points
#define Z_RAISE_BETWEEN_PROBINGS 5 //How much the extruder will be raised when travelling from between next probing points
#define Z_RAISE_AFTER_PROBING 5 //How much the extruder will be raised after the last probing point.
#define Z_RAISE_AFTER_PROBING 5 //How much the extruder will be raised after the last probing point.
...
@@ -325,7 +355,7 @@
...
@@ -325,7 +355,7 @@
// Useful to retract a deployable Z probe.
// Useful to retract a deployable Z probe.
//#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
//#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
//#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pick up the sled. 0 should be fine but you can push it further if you'd like.
#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pick up the sled. 0 should be fine but you can push it further if you'd like.
volatilecharendstop_hit_bits;// use X_MIN, Y_MIN, Z_MIN and Z_PROBE as BIT value
staticboolenabled,enabled_globally;
staticvolatilecharendstop_hit_bits;// use X_MIN, Y_MIN, Z_MIN and Z_PROBE as BIT value
#if ENABLED(Z_DUAL_ENDSTOPS)
#if ENABLED(Z_DUAL_ENDSTOPS)
uint16_tcurrent_endstop_bits=0,
staticuint16_t
old_endstop_bits=0;
#else
#else
bytecurrent_endstop_bits=0,
staticbyte
old_endstop_bits=0;
#endif
#endif
current_endstop_bits,old_endstop_bits;
boolenabled=true;
boolenabled_globally=
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
false
#else
true
#endif
;
Endstops();
Endstops();
...
@@ -63,40 +53,40 @@ class Endstops {
...
@@ -63,40 +53,40 @@ class Endstops {
/**
/**
* Update the endstops bits from the pins
* Update the endstops bits from the pins
*/
*/
voidupdate();
staticvoidupdate();
/**
/**
* Print an error message reporting the position when the endstops were last hit.
* Print an error message reporting the position when the endstops were last hit.
*/
*/
voidreport_state();// call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered
staticvoidreport_state();// call from somewhere to create an serial error message with the locations the endstops where hit, in case they were triggered