Merge pull request #4336 from thinkyhead/rc_bltouch_sensor
BLTouch probe sensor
This commit is contained in:
		| @@ -368,6 +368,21 @@ | ||||
|     #define Z_HOME_POS (Z_HOME_DIR < 0 ? Z_MIN_POS : Z_MAX_POS) | ||||
|   #endif //!MANUAL_HOME_POSITIONS | ||||
|  | ||||
|   /** | ||||
|    * The BLTouch Probe emulates a servo probe | ||||
|    */ | ||||
|   #if ENABLED(BLTOUCH) | ||||
|     #undef Z_ENDSTOP_SERVO_NR | ||||
|     #undef Z_SERVO_ANGLES | ||||
|     #define Z_ENDSTOP_SERVO_NR 0 | ||||
|     #define Z_SERVO_ANGLES {10,90} // For BLTouch 10=deploy, 90=retract | ||||
|     #undef DEACTIVATE_SERVOS_AFTER_MOVE | ||||
|     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) | ||||
|       #undef Z_MIN_ENDSTOP_INVERTING | ||||
|       #define Z_MIN_ENDSTOP_INVERTING false | ||||
|     #endif | ||||
|   #endif | ||||
|  | ||||
|   /** | ||||
|    * Auto Bed Leveling and Z Probe Repeatability Test | ||||
|    */ | ||||
|   | ||||
| @@ -465,6 +465,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -465,6 +465,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -447,6 +447,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -445,6 +445,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -457,6 +457,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -459,6 +459,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| #define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -482,6 +482,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -442,6 +442,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -442,6 +442,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -465,6 +465,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -462,6 +462,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -473,6 +473,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -486,6 +486,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -457,6 +457,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -465,6 +465,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -507,6 +507,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -507,6 +507,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -507,6 +507,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -496,6 +496,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -505,6 +505,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| #define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -468,6 +468,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -455,6 +455,9 @@ | ||||
| // its trigger-point if hardware endstops are active. | ||||
| //#define FIX_MOUNTED_PROBE | ||||
|  | ||||
| // The BLTouch probe emulates a servo probe. | ||||
| //#define BLTOUCH | ||||
|  | ||||
| // Z Servo Probe, such as an endstop switch on a rotating arm. | ||||
| //#define Z_ENDSTOP_SERVO_NR 0 | ||||
| //#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles | ||||
|   | ||||
| @@ -359,11 +359,11 @@ void Stepper::isr() { | ||||
|   if (current_block) { | ||||
|  | ||||
|     // Update endstops state, if enabled | ||||
|     #if HAS_BED_PROBE | ||||
|       if (endstops.enabled || endstops.z_probe_enabled) endstops.update(); | ||||
|     #else | ||||
|       if (endstops.enabled) endstops.update(); | ||||
|     #endif | ||||
|     if (endstops.enabled | ||||
|       #if HAS_BED_PROBE | ||||
|         || endstops.z_probe_enabled | ||||
|       #endif | ||||
|     ) endstops.update(); | ||||
|  | ||||
|     // Take multiple steps per interrupt (For high speed moves) | ||||
|     for (int8_t i = 0; i < step_loops; i++) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user