Browse Source

Revert recent probe changes

- Revert "Fix FIX_MOUNTED_PROBE compile error (#14393)"
- Revert "Fix G28 with non-BLTouch probes (#14381)"
- Revert "Fix BLTOUCH deploy/stow in HS mode (#14352)"
- Revert "Apply needed BLTouch patch (#14233)"

Co-Authored-By: AnHardt <github@kitelab.de>
Scott Lahteine 5 years ago
parent
commit
2580104c8b
2 changed files with 18 additions and 12 deletions
  1. 8
    6
      Marlin/src/gcode/calibrate/G28.cpp
  2. 10
    6
      Marlin/src/module/probe.cpp

+ 8
- 6
Marlin/src/gcode/calibrate/G28.cpp View File

39
   #include "../../feature/tmc_util.h"
39
   #include "../../feature/tmc_util.h"
40
 #endif
40
 #endif
41
 
41
 
42
-#if HAS_BED_PROBE
42
+#if HOMING_Z_WITH_PROBE || ENABLED(BLTOUCH)
43
   #include "../../module/probe.h"
43
   #include "../../module/probe.h"
44
-  #define STOW_PROBE_BEFORE_HOMING NONE(Z_PROBE_ALLEN_KEY, Z_PROBE_SLED)
44
+#endif
45
+
46
+#if ENABLED(BLTOUCH)
47
+  #include "../../feature/bltouch.h"
45
 #endif
48
 #endif
46
 
49
 
47
 #include "../../lcd/ultralcd.h"
50
 #include "../../lcd/ultralcd.h"
255
 
258
 
256
     set_destination_from_current();
259
     set_destination_from_current();
257
 
260
 
258
-    #if STOW_PROBE_BEFORE_HOMING
259
-      STOW_PROBE();
260
-    #endif
261
-
262
     #if Z_HOME_DIR > 0  // If homing away from BED do Z first
261
     #if Z_HOME_DIR > 0  // If homing away from BED do Z first
263
 
262
 
264
       if (doZ) homeaxis(Z_AXIS);
263
       if (doZ) homeaxis(Z_AXIS);
338
     // Home Z last if homing towards the bed
337
     // Home Z last if homing towards the bed
339
     #if Z_HOME_DIR < 0
338
     #if Z_HOME_DIR < 0
340
       if (doZ) {
339
       if (doZ) {
340
+        #if ENABLED(BLTOUCH)
341
+          bltouch.init();
342
+        #endif
341
         #if ENABLED(Z_SAFE_HOMING)
343
         #if ENABLED(Z_SAFE_HOMING)
342
           home_z_safely();
344
           home_z_safely();
343
         #else
345
         #else

+ 10
- 6
Marlin/src/module/probe.cpp View File

376
 
376
 
377
     dock_sled(!deploy);
377
     dock_sled(!deploy);
378
 
378
 
379
-  #elif ENABLED(BLTOUCH)
380
-
381
-    deploy ? bltouch.deploy() : bltouch.stow();
382
-
383
   #elif HAS_Z_SERVO_PROBE
379
   #elif HAS_Z_SERVO_PROBE
384
 
380
 
385
-    MOVE_SERVO(Z_PROBE_SERVO_NR, servo_angles[Z_PROBE_SERVO_NR][deploy ? 0 : 1]);
381
+    #if DISABLED(BLTOUCH)
382
+      MOVE_SERVO(Z_PROBE_SERVO_NR, servo_angles[Z_PROBE_SERVO_NR][deploy ? 0 : 1]);
383
+    #elif ENABLED(BLTOUCH_HS_MODE)
384
+      // In HIGH SPEED MODE, use the normal retractable probe logic in this code
385
+      // i.e. no intermediate STOWs and DEPLOYs in between individual probe actions
386
+      if (deploy) bltouch.deploy(); else bltouch.stow();
387
+    #endif
386
 
388
 
387
   #elif EITHER(TOUCH_MI_PROBE, Z_PROBE_ALLEN_KEY)
389
   #elif EITHER(TOUCH_MI_PROBE, Z_PROBE_ALLEN_KEY)
388
 
390
 
445
               oldYpos = current_position[Y_AXIS];
447
               oldYpos = current_position[Y_AXIS];
446
 
448
 
447
   #if ENABLED(PROBE_TRIGGERED_WHEN_STOWED_TEST)
449
   #if ENABLED(PROBE_TRIGGERED_WHEN_STOWED_TEST)
448
-
449
     #if USES_Z_MIN_PROBE_ENDSTOP
450
     #if USES_Z_MIN_PROBE_ENDSTOP
450
       #define PROBE_STOWED() (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING)
451
       #define PROBE_STOWED() (READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING)
451
     #else
452
     #else
452
       #define PROBE_STOWED() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING)
453
       #define PROBE_STOWED() (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING)
453
     #endif
454
     #endif
455
+  #endif
456
+
457
+  #ifdef PROBE_STOWED
454
 
458
 
455
     // Only deploy/stow if needed
459
     // Only deploy/stow if needed
456
     if (PROBE_STOWED() == deploy) {
460
     if (PROBE_STOWED() == deploy) {

Loading…
Cancel
Save