Selaa lähdekoodia

Fix the delta homing issue (#12974)

Nathan 6 vuotta sitten
vanhempi
commit
df1043516e
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9
    1
      Marlin/src/module/delta.cpp

+ 9
- 1
Marlin/src/module/delta.cpp Näytä tiedosto

37
 #include "../lcd/ultralcd.h"
37
 #include "../lcd/ultralcd.h"
38
 #include "../Marlin.h"
38
 #include "../Marlin.h"
39
 
39
 
40
+#if HAS_BED_PROBE
41
+  #include "probe.h"
42
+#endif
43
+
40
 #if ENABLED(SENSORLESS_HOMING)
44
 #if ENABLED(SENSORLESS_HOMING)
41
   #include "../feature/tmc_util.h"
45
   #include "../feature/tmc_util.h"
42
   #include "stepper_indirection.h"
46
   #include "stepper_indirection.h"
229
   #endif
233
   #endif
230
 
234
 
231
   // Move all carriages together linearly until an endstop is hit.
235
   // Move all carriages together linearly until an endstop is hit.
232
-  destination[Z_AXIS] = (delta_height + 10);
236
+  destination[Z_AXIS] = (delta_height
237
+    #if HAS_BED_PROBE
238
+      - zprobe_zoffset
239
+    #endif
240
+    + 10);
233
   buffer_line_to_destination(homing_feedrate(X_AXIS));
241
   buffer_line_to_destination(homing_feedrate(X_AXIS));
234
   planner.synchronize();
242
   planner.synchronize();
235
 
243
 

Loading…
Peruuta
Tallenna