Merge pull request #4336 from thinkyhead/rc_bltouch_sensor

BLTouch probe sensor
This commit is contained in:
Scott Lahteine 2016-07-17 14:06:32 -07:00 committed by GitHub
commit 81e01152bb
24 changed files with 86 additions and 5 deletions

View file

@ -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
*/

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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++) {