소스 검색

G26: Allow to set retraction for UBL mesh test (#16511)

Tanguy Pruvot 4 년 전
부모
커밋
54aff83179
No account linked to committer's email address
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    0
      Marlin/Configuration.h
  2. 5
    2
      Marlin/src/gcode/bedlevel/G26.cpp

+ 1
- 0
Marlin/Configuration.h 파일 보기

@@ -1234,6 +1234,7 @@
1234 1234
     #define MESH_TEST_HOTEND_TEMP  205    // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
1235 1235
     #define MESH_TEST_BED_TEMP      60    // (°C) Default bed temperature for the G26 Mesh Validation Tool.
1236 1236
     #define G26_XY_FEEDRATE         20    // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.
1237
+    #define G26_RETRACT_MULTIPLIER   1.0  // G26 Q (retraction) used by default between mesh test elements.
1237 1238
   #endif
1238 1239
 
1239 1240
 #endif

+ 5
- 2
Marlin/src/gcode/bedlevel/G26.cpp 파일 보기

@@ -43,13 +43,16 @@
43 43
 #include "../../lcd/ultralcd.h"
44 44
 
45 45
 #define EXTRUSION_MULTIPLIER 1.0
46
-#define RETRACTION_MULTIPLIER 1.0
47 46
 #define PRIME_LENGTH 10.0
48 47
 #define OOZE_AMOUNT 0.3
49 48
 
50 49
 #define INTERSECTION_CIRCLE_RADIUS 5
51 50
 #define CROSSHAIRS_SIZE 3
52 51
 
52
+#ifndef G26_RETRACT_MULTIPLIER
53
+  #define G26_RETRACT_MULTIPLIER 1.0 // x 1mm
54
+#endif
55
+
53 56
 #ifndef G26_XY_FEEDRATE
54 57
   #define G26_XY_FEEDRATE (PLANNER_XY_FEEDRATE() / 3.0)
55 58
 #endif
@@ -509,7 +512,7 @@ void GcodeSuite::G26() {
509 512
   if (parser.seenval('T')) tool_change(parser.value_int());
510 513
 
511 514
   g26_extrusion_multiplier    = EXTRUSION_MULTIPLIER;
512
-  g26_retraction_multiplier   = RETRACTION_MULTIPLIER;
515
+  g26_retraction_multiplier   = G26_RETRACT_MULTIPLIER;
513 516
   g26_layer_height            = MESH_TEST_LAYER_HEIGHT;
514 517
   g26_prime_length            = PRIME_LENGTH;
515 518
   g26_bed_temp                = MESH_TEST_BED_TEMP;

Loading…
취소
저장