Browse Source

Tramming Wizard wait position (#20063)

Speaka 4 years ago
parent
commit
87ce545e15
No account linked to committer's email address
2 changed files with 9 additions and 0 deletions
  1. 1
    0
      Marlin/Configuration_adv.h
  2. 8
    0
      Marlin/src/lcd/menu/menu_tramming.cpp

+ 1
- 0
Marlin/Configuration_adv.h View File

811
 
811
 
812
   //#define ASSISTED_TRAMMING_MENU_ITEM // Add a menu item to run G35 Assisted Tramming (MarlinUI)
812
   //#define ASSISTED_TRAMMING_MENU_ITEM // Add a menu item to run G35 Assisted Tramming (MarlinUI)
813
   //#define ASSISTED_TRAMMING_WIZARD    // Make the menu item open a Tramming Wizard sub-menu
813
   //#define ASSISTED_TRAMMING_WIZARD    // Make the menu item open a Tramming Wizard sub-menu
814
+  //#define ASSISTED_TRAMMING_WAIT_POSITION { X_CENTER, Y_CENTER, 30 } // Move the nozzle out of the way for adjustment
814
 
815
 
815
   /**
816
   /**
816
    * Screw thread:
817
    * Screw thread:

+ 8
- 0
Marlin/src/lcd/menu/menu_tramming.cpp View File

50
   const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[tram_index], PROBE_PT_RAISE, 0, true);
50
   const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[tram_index], PROBE_PT_RAISE, 0, true);
51
   DEBUG_ECHOLNPAIR("probe_single_point: ", z_probed_height, "mm");
51
   DEBUG_ECHOLNPAIR("probe_single_point: ", z_probed_height, "mm");
52
   z_measured[tram_index] = z_probed_height;
52
   z_measured[tram_index] = z_probed_height;
53
+
54
+  #ifdef ASSISTED_TRAMMING_WAIT_POSITION
55
+    // Move XY to safe position
56
+    if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Moving away");
57
+    const xyz_pos_t wait_pos = ASSISTED_TRAMMING_WAIT_POSITION;
58
+    do_blocking_move_to(wait_pos, XY_PROBE_FEEDRATE_MM_S);
59
+  #endif
60
+
53
   return !isnan(z_probed_height);
61
   return !isnan(z_probed_height);
54
 }
62
 }
55
 
63
 

Loading…
Cancel
Save