Procházet zdrojové kódy

Use the probe travel height for pre-probe move

Instead of using the home_bump for Z to move close to the bed before doing a slow probe, use the probe travel height.
Scott Lahteine před 8 roky
rodič
revize
0729a8f08d
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5
    4
      Marlin/Marlin_main.cpp

+ 5
- 4
Marlin/Marlin_main.cpp Zobrazit soubor

@@ -2171,10 +2171,11 @@ static void clean_up_after_endstop_or_probe_move() {
2171 2171
 
2172 2172
     #else
2173 2173
 
2174
-      // move fast, close to the bed
2175
-      float z = LOGICAL_Z_POSITION(home_bump_mm(Z_AXIS));
2176
-      if (zprobe_zoffset < 0) z -= zprobe_zoffset;
2177
-      do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2174
+      // If the nozzle is above the travel height then
2175
+      // move down quickly before doing the slow probe
2176
+      float z = LOGICAL_Z_POSITION(Z_PROBE_TRAVEL_HEIGHT);
2177
+      if (z < current_position[Z_AXIS])
2178
+        do_blocking_move_to_z(z, MMM_TO_MMS(Z_PROBE_SPEED_FAST));
2178 2179
 
2179 2180
     #endif
2180 2181
 

Loading…
Zrušit
Uložit