Sfoglia il codice sorgente

G26: Add 0.5mm Z-bump between circles to minimize pattern scraping

Brian 8 anni fa
parent
commit
9c5957fc77
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8
    2
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 8
- 2
Marlin/G26_Mesh_Validation_Tool.cpp Vedi File

605
       return print_line_from_here_to_there(ex, ey, ez, sx, sy, sz);
605
       return print_line_from_here_to_there(ex, ey, ez, sx, sy, sz);
606
     }
606
     }
607
 
607
 
608
-    // Decide whether to retract.
608
+    // Decide whether to retract & bump
609
 
609
 
610
     if (dist_start > 2.0) {
610
     if (dist_start > 2.0) {
611
       retract_filament(destination);
611
       retract_filament(destination);
612
       //if (ubl.g26_debug_flag) SERIAL_ECHOLNPGM("  filament retracted.");
612
       //if (ubl.g26_debug_flag) SERIAL_ECHOLNPGM("  filament retracted.");
613
+
614
+      //if (ubl.g26_debug_flag) SERIAL_ECHOLNPGM("  Z bumping by 0.500 to minimize scraping.");
615
+      //todo:  parameterize the bump height with a define
616
+      move_to(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS]+0.500, 0.0);  // Z bump to minimize scraping
617
+      move_to(sx, sy, sz+0.500, 0.0); // Get to the starting point with no extrusion while bumped
613
     }
618
     }
614
-    move_to(sx, sy, sz, 0.0); // Get to the starting point with no extrusion
619
+
620
+    move_to(sx, sy, sz, 0.0); // Get to the starting point with no extrusion / un-Z bump
615
 
621
 
616
     const float e_pos_delta = line_length * g26_e_axis_feedrate * extrusion_multiplier;
622
     const float e_pos_delta = line_length * g26_e_axis_feedrate * extrusion_multiplier;
617
 
623
 

Loading…
Annulla
Salva