Browse Source

🎨 screws_tilt_adjust_pos => tramming_points

Scott Lahteine 2 years ago
parent
commit
90cd1ca68d

+ 3
- 3
Marlin/src/feature/tramming.h View File

@@ -28,12 +28,12 @@
28 28
   #error "TRAMMING_SCREW_THREAD must be equal to 30, 31, 40, 41, 50, or 51."
29 29
 #endif
30 30
 
31
-constexpr xy_pos_t screws_tilt_adjust_pos[] = TRAMMING_POINT_XY;
31
+constexpr xy_pos_t tramming_points[] = TRAMMING_POINT_XY;
32 32
 
33
-#define G35_PROBE_COUNT COUNT(screws_tilt_adjust_pos)
33
+#define G35_PROBE_COUNT COUNT(tramming_points)
34 34
 static_assert(WITHIN(G35_PROBE_COUNT, 3, 6), "TRAMMING_POINT_XY requires between 3 and 6 XY positions.");
35 35
 
36
-#define VALIDATE_TRAMMING_POINT(N) static_assert(N >= G35_PROBE_COUNT || Probe::build_time::can_reach(screws_tilt_adjust_pos[N]), \
36
+#define VALIDATE_TRAMMING_POINT(N) static_assert(N >= G35_PROBE_COUNT || Probe::build_time::can_reach(tramming_points[N]), \
37 37
   "TRAMMING_POINT_XY point " STRINGIFY(N) " is not reachable with the default NOZZLE_TO_PROBE offset and PROBING_MARGIN.")
38 38
 VALIDATE_TRAMMING_POINT(0); VALIDATE_TRAMMING_POINT(1); VALIDATE_TRAMMING_POINT(2); VALIDATE_TRAMMING_POINT(3); VALIDATE_TRAMMING_POINT(4); VALIDATE_TRAMMING_POINT(5);
39 39
 

+ 3
- 3
Marlin/src/gcode/bedlevel/G35.cpp View File

@@ -103,13 +103,13 @@ void GcodeSuite::G35() {
103 103
     // Users of G35 might have a badly misaligned bed, so raise Z by the
104 104
     // length of the deployed pin (BLTOUCH stroke < 7mm)
105 105
     do_blocking_move_to_z(SUM_TERN(BLTOUCH_HS_MODE, Z_CLEARANCE_BETWEEN_PROBES, 7));
106
-    const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[i], PROBE_PT_RAISE, 0, true);
106
+    const float z_probed_height = probe.probe_at_point(tramming_points[i], PROBE_PT_RAISE, 0, true);
107 107
 
108 108
     if (isnan(z_probed_height)) {
109 109
       SERIAL_ECHOPAIR("G35 failed at point ", i + 1, " (");
110 110
       SERIAL_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
111 111
       SERIAL_CHAR(')');
112
-      SERIAL_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y);
112
+      SERIAL_ECHOLNPAIR_P(SP_X_STR, tramming_points[i].x, SP_Y_STR, tramming_points[i].y);
113 113
       err_break = true;
114 114
       break;
115 115
     }
@@ -118,7 +118,7 @@ void GcodeSuite::G35() {
118 118
       DEBUG_ECHOPAIR("Probing point ", i + 1, " (");
119 119
       DEBUG_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
120 120
       DEBUG_CHAR(')');
121
-      DEBUG_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y, SP_Z_STR, z_probed_height);
121
+      DEBUG_ECHOLNPAIR_P(SP_X_STR, tramming_points[i].x, SP_Y_STR, tramming_points[i].y, SP_Z_STR, z_probed_height);
122 122
     }
123 123
 
124 124
     z_measured[i] = z_probed_height;

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

@@ -49,7 +49,7 @@ static uint8_t tram_index = 0;
49 49
 static bool probe_single_point() {
50 50
   do_blocking_move_to_z(TERN(BLTOUCH, Z_CLEARANCE_DEPLOY_PROBE, Z_CLEARANCE_BETWEEN_PROBES));
51 51
   // Stow after each point with BLTouch "HIGH SPEED" mode for push-pin safety
52
-  const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[tram_index], TERN(BLTOUCH_HS_MODE, PROBE_PT_STOW, PROBE_PT_RAISE), 0, true);
52
+  const float z_probed_height = probe.probe_at_point(tramming_points[tram_index], TERN(BLTOUCH_HS_MODE, PROBE_PT_STOW, PROBE_PT_RAISE), 0, true);
53 53
   DEBUG_ECHOLNPAIR("probe_single_point: ", z_probed_height, "mm");
54 54
   z_measured[tram_index] = z_probed_height;
55 55
   move_to_tramming_wait_pos();

Loading…
Cancel
Save