Browse Source

Merge pull request #6676 from bgort/g26zhop

G26: Add 0.5mm Z-bump between circles to minimize pattern scraping
bgort 8 years ago
parent
commit
b3407a371b
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 8
- 2
Marlin/G26_Mesh_Validation_Tool.cpp View File

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

Loading…
Cancel
Save