浏览代码

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

Brian 8 年前
父节点
当前提交
9c5957fc77
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8
    2
      Marlin/G26_Mesh_Validation_Tool.cpp

+ 8
- 2
Marlin/G26_Mesh_Validation_Tool.cpp 查看文件

@@ -605,13 +605,19 @@
605 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 610
     if (dist_start > 2.0) {
611 611
       retract_filament(destination);
612 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 622
     const float e_pos_delta = line_length * g26_e_axis_feedrate * extrusion_multiplier;
617 623
 

正在加载...
取消
保存