소스 검색

Merge pull request #7519 from thinkyhead/bf1_cleanups_aug_16

Add "Level Corners" menu item
Scott Lahteine 7 년 전
부모
커밋
b3f59ec945
41개의 변경된 파일132개의 추가작업 그리고 22개의 파일을 삭제
  1. 7
    0
      Marlin/Conditionals_post.h
  2. 1
    0
      Marlin/Configuration.h
  3. 11
    11
      Marlin/Marlin_main.cpp
  4. 1
    0
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration.h
  5. 1
    0
      Marlin/example_configurations/AliExpress/CL-260/Configuration.h
  6. 1
    0
      Marlin/example_configurations/Anet/A6/Configuration.h
  7. 1
    0
      Marlin/example_configurations/Anet/A8/Configuration.h
  8. 1
    0
      Marlin/example_configurations/BQ/Hephestos/Configuration.h
  9. 1
    0
      Marlin/example_configurations/BQ/Hephestos_2/Configuration.h
  10. 1
    0
      Marlin/example_configurations/BQ/WITBOX/Configuration.h
  11. 1
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  12. 1
    0
      Marlin/example_configurations/Creality/CR-10/Configuration.h
  13. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  14. 1
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  15. 1
    0
      Marlin/example_configurations/Folger Tech/i3-2020/Configuration.h
  16. 1
    0
      Marlin/example_configurations/Geeetech/GT2560/Configuration.h
  17. 1
    0
      Marlin/example_configurations/Geeetech/I3_Pro_X-GT2560/Configuration.h
  18. 1
    0
      Marlin/example_configurations/Infitary/i3-M508/Configuration.h
  19. 1
    0
      Marlin/example_configurations/Malyan/M150/Configuration.h
  20. 1
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  21. 1
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  22. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  23. 1
    0
      Marlin/example_configurations/TinyBoy2/Configuration.h
  24. 1
    0
      Marlin/example_configurations/Velleman/K8200/Configuration.h
  25. 1
    0
      Marlin/example_configurations/Velleman/K8400/Configuration.h
  26. 1
    0
      Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h
  27. 1
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  28. 1
    0
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  29. 1
    0
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  30. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  31. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  32. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  33. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  34. 1
    0
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h
  35. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  36. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  37. 1
    0
      Marlin/example_configurations/wt150/Configuration.h
  38. 1
    1
      Marlin/language_el.h
  39. 7
    1
      Marlin/language_en.h
  40. 1
    1
      Marlin/language_nl.h
  41. 70
    8
      Marlin/ultralcd.cpp

+ 7
- 0
Marlin/Conditionals_post.h 파일 보기

@@ -90,6 +90,13 @@
90 90
   #define IS_CARTESIAN !IS_KINEMATIC
91 91
 
92 92
   /**
93
+   * No adjustable bed on non-cartesians
94
+   */
95
+  #if IS_KINEMATIC
96
+    #undef LEVEL_BED_CORNERS
97
+  #endif
98
+
99
+  /**
93 100
    * SCARA cannot use SLOWDOWN and requires QUICKHOME
94 101
    */
95 102
   #if IS_SCARA

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

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

+ 11
- 11
Marlin/Marlin_main.cpp 파일 보기

@@ -2786,7 +2786,7 @@ static void clean_up_after_endstop_or_probe_move() {
2786 2786
     int bilinear_grid_spacing_virt[2] = { 0 };
2787 2787
     float bilinear_grid_factor_virt[2] = { 0 };
2788 2788
 
2789
-    static void bed_level_virt_print() {
2789
+    static void print_bilinear_leveling_grid_virt() {
2790 2790
       SERIAL_ECHOLNPGM("Subdivided with CATMULL ROM Leveling Grid:");
2791 2791
       print_2d_array(ABL_GRID_POINTS_VIRT_X, ABL_GRID_POINTS_VIRT_Y, 5,
2792 2792
         [](const uint8_t ix, const uint8_t iy) { return z_values_virt[ix][iy]; }
@@ -5042,7 +5042,7 @@ void home_all_axes() { gcode_G28(true); }
5042 5042
         refresh_bed_level();
5043 5043
 
5044 5044
         #if ENABLED(ABL_BILINEAR_SUBDIVISION)
5045
-          bed_level_virt_print();
5045
+          print_bilinear_leveling_grid_virt();
5046 5046
         #endif
5047 5047
 
5048 5048
       #elif ENABLED(AUTO_BED_LEVELING_LINEAR)
@@ -9314,18 +9314,18 @@ void quickstop_stepper() {
9314 9314
     if (parser.seen('V')) {
9315 9315
       #if ABL_PLANAR
9316 9316
         planner.bed_level_matrix.debug(PSTR("Bed Level Correction Matrix:"));
9317
-      #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
9317
+      #else
9318 9318
         if (leveling_is_valid()) {
9319
-          print_bilinear_leveling_grid();
9320
-          #if ENABLED(ABL_BILINEAR_SUBDIVISION)
9321
-            bed_level_virt_print();
9319
+          #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
9320
+            print_bilinear_leveling_grid();
9321
+            #if ENABLED(ABL_BILINEAR_SUBDIVISION)
9322
+              print_bilinear_leveling_grid_virt();
9323
+            #endif
9324
+          #elif ENABLED(MESH_BED_LEVELING)
9325
+            SERIAL_ECHOLNPGM("Mesh Bed Level data:");
9326
+            mbl_mesh_report();
9322 9327
           #endif
9323 9328
         }
9324
-      #elif ENABLED(MESH_BED_LEVELING)
9325
-        if (leveling_is_valid()) {
9326
-          SERIAL_ECHOLNPGM("Mesh Bed Level data:");
9327
-          mbl_mesh_report();
9328
-        }
9329 9329
       #endif
9330 9330
     }
9331 9331
 

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

@@ -960,6 +960,7 @@
960 960
 #if ENABLED(LCD_BED_LEVELING)
961 961
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
962 962
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
963
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
963 964
 #endif
964 965
 
965 966
 /**

+ 1
- 0
Marlin/example_configurations/AliExpress/CL-260/Configuration.h 파일 보기

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

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

@@ -1083,6 +1083,7 @@
1083 1083
 #if ENABLED(LCD_BED_LEVELING)
1084 1084
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1085 1085
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1086
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1086 1087
 #endif
1087 1088
 
1088 1089
 /**

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

@@ -946,6 +946,7 @@
946 946
 #if ENABLED(LCD_BED_LEVELING)
947 947
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
948 948
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
949
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
949 950
 #endif
950 951
 
951 952
 /**

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

@@ -931,6 +931,7 @@
931 931
 #if ENABLED(LCD_BED_LEVELING)
932 932
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
933 933
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
934
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
934 935
 #endif
935 936
 
936 937
 /**

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

@@ -941,6 +941,7 @@
941 941
 #if ENABLED(LCD_BED_LEVELING)
942 942
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
943 943
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
944
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
944 945
 #endif
945 946
 
946 947
 /**

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

@@ -931,6 +931,7 @@
931 931
 #if ENABLED(LCD_BED_LEVELING)
932 932
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
933 933
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
934
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
934 935
 #endif
935 936
 
936 937
 /**

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

@@ -939,6 +939,7 @@
939 939
 #if ENABLED(LCD_BED_LEVELING)
940 940
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
941 941
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
942
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
942 943
 #endif
943 944
 
944 945
 /**

+ 1
- 0
Marlin/example_configurations/Creality/CR-10/Configuration.h 파일 보기

@@ -950,6 +950,7 @@
950 950
 #if ENABLED(LCD_BED_LEVELING)
951 951
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
952 952
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
953
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
953 954
 #endif
954 955
 
955 956
 /**

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

@@ -922,6 +922,7 @@
922 922
 #if ENABLED(LCD_BED_LEVELING)
923 923
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
924 924
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
925
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
925 926
 #endif
926 927
 
927 928
 /**

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

@@ -922,6 +922,7 @@
922 922
 #if ENABLED(LCD_BED_LEVELING)
923 923
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
924 924
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
925
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
925 926
 #endif
926 927
 
927 928
 /**

+ 1
- 0
Marlin/example_configurations/Folger Tech/i3-2020/Configuration.h 파일 보기

@@ -945,6 +945,7 @@
945 945
 #if ENABLED(LCD_BED_LEVELING)
946 946
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
947 947
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
948
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
948 949
 #endif
949 950
 
950 951
 /**

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

@@ -955,6 +955,7 @@
955 955
 #if ENABLED(LCD_BED_LEVELING)
956 956
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
957 957
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
958
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
958 959
 #endif
959 960
 
960 961
 /**

+ 1
- 0
Marlin/example_configurations/Geeetech/I3_Pro_X-GT2560/Configuration.h 파일 보기

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

+ 1
- 0
Marlin/example_configurations/Infitary/i3-M508/Configuration.h 파일 보기

@@ -944,6 +944,7 @@
944 944
 #if ENABLED(LCD_BED_LEVELING)
945 945
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
946 946
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
947
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
947 948
 #endif
948 949
 
949 950
 /**

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

@@ -968,6 +968,7 @@
968 968
 #if ENABLED(LCD_BED_LEVELING)
969 969
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
970 970
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
971
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
971 972
 #endif
972 973
 
973 974
 /**

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

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

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

@@ -938,6 +938,7 @@
938 938
 #if ENABLED(LCD_BED_LEVELING)
939 939
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
940 940
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
941
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
941 942
 #endif
942 943
 
943 944
 /**

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

@@ -952,6 +952,7 @@
952 952
 #if ENABLED(LCD_BED_LEVELING)
953 953
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
954 954
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
955
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
955 956
 #endif
956 957
 
957 958
 /**

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

@@ -996,6 +996,7 @@
996 996
 #if ENABLED(LCD_BED_LEVELING)
997 997
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
998 998
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
999
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
999 1000
 #endif
1000 1001
 
1001 1002
 /**

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

@@ -969,6 +969,7 @@
969 969
 #if ENABLED(LCD_BED_LEVELING)
970 970
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
971 971
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
972
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
972 973
 #endif
973 974
 
974 975
 /**

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

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

+ 1
- 0
Marlin/example_configurations/Velleman/K8400/Dual-head/Configuration.h 파일 보기

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

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

@@ -940,6 +940,7 @@
940 940
 #if ENABLED(LCD_BED_LEVELING)
941 941
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
942 942
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
943
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
943 944
 #endif
944 945
 
945 946
 /**

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h 파일 보기

@@ -1068,6 +1068,7 @@
1068 1068
 #if ENABLED(LCD_BED_LEVELING)
1069 1069
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1070 1070
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1071
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1071 1072
 #endif
1072 1073
 
1073 1074
 /**

+ 1
- 0
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h 파일 보기

@@ -1062,6 +1062,7 @@
1062 1062
 #if ENABLED(LCD_BED_LEVELING)
1063 1063
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1064 1064
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1065
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1065 1066
 #endif
1066 1067
 
1067 1068
 /**

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

@@ -1057,6 +1057,7 @@
1057 1057
 #if ENABLED(LCD_BED_LEVELING)
1058 1058
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1059 1059
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1060
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1060 1061
 #endif
1061 1062
 
1062 1063
 /**

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

@@ -1060,6 +1060,7 @@
1060 1060
 #if ENABLED(LCD_BED_LEVELING)
1061 1061
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1062 1062
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1063
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1063 1064
 #endif
1064 1065
 
1065 1066
 /**

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

@@ -1060,6 +1060,7 @@
1060 1060
 #if ENABLED(LCD_BED_LEVELING)
1061 1061
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1062 1062
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1063
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1063 1064
 #endif
1064 1065
 
1065 1066
 /**

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

@@ -1069,6 +1069,7 @@
1069 1069
 #if ENABLED(LCD_BED_LEVELING)
1070 1070
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
1071 1071
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
1072
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
1072 1073
 #endif
1073 1074
 
1074 1075
 /**

+ 1
- 0
Marlin/example_configurations/gCreate/gMax1.5+/Configuration.h 파일 보기

@@ -954,6 +954,7 @@
954 954
 #if ENABLED(LCD_BED_LEVELING)
955 955
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
956 956
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
957
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
957 958
 #endif
958 959
 
959 960
 /**

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

@@ -943,6 +943,7 @@
943 943
 #if ENABLED(LCD_BED_LEVELING)
944 944
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
945 945
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
946
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
946 947
 #endif
947 948
 
948 949
 /**

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

@@ -935,6 +935,7 @@
935 935
 #if ENABLED(LCD_BED_LEVELING)
936 936
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
937 937
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
938
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
938 939
 #endif
939 940
 
940 941
 /**

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

@@ -945,6 +945,7 @@
945 945
 #if ENABLED(LCD_BED_LEVELING)
946 946
   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
947 947
   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
948
+  #define LEVEL_BED_CORNERS   // Add an option to move between corners
948 949
 #endif
949 950
 
950 951
 /**

+ 1
- 1
Marlin/language_el.h 파일 보기

@@ -199,7 +199,7 @@
199 199
 #endif
200 200
 #define MSG_INFO_MIN_TEMP                   _UxGT("Min Temp")
201 201
 #define MSG_INFO_MAX_TEMP                   _UxGT("Max Temp")
202
-#define MSG_INFO_PSU                        _UxGT("Power Supply")
202
+#define MSG_INFO_PSU                        _UxGT("PSU")
203 203
 
204 204
 #define MSG_FILAMENT_CHANGE_HEADER          _UxGT("CHANGE FILAMENT")
205 205
 #define MSG_FILAMENT_CHANGE_OPTION_EXTRUDE  _UxGT("Extrude more")

+ 7
- 1
Marlin/language_en.h 파일 보기

@@ -156,6 +156,12 @@
156 156
 #ifndef MSG_LEVEL_BED
157 157
   #define MSG_LEVEL_BED                       _UxGT("Level bed")
158 158
 #endif
159
+#ifndef MSG_LEVEL_CORNERS
160
+  #define MSG_LEVEL_CORNERS                   _UxGT("Level corners")
161
+#endif
162
+#ifndef MSG_NEXT_CORNER
163
+  #define MSG_NEXT_CORNER                     _UxGT("Next corner")
164
+#endif
159 165
 #ifndef MSG_EDITING_STOPPED
160 166
   #define MSG_EDITING_STOPPED                 _UxGT("Mesh Editing Stopped")
161 167
 #endif
@@ -829,7 +835,7 @@
829 835
   #define MSG_INFO_MAX_TEMP                   _UxGT("Max Temp")
830 836
 #endif
831 837
 #ifndef MSG_INFO_PSU
832
-  #define MSG_INFO_PSU                        _UxGT("Power Supply")
838
+  #define MSG_INFO_PSU                        _UxGT("PSU")
833 839
 #endif
834 840
 #ifndef MSG_DRIVE_STRENGTH
835 841
   #define MSG_DRIVE_STRENGTH                  _UxGT("Drive Strength")

+ 1
- 1
Marlin/language_nl.h 파일 보기

@@ -220,7 +220,7 @@
220 220
 
221 221
 #define MSG_INFO_MIN_TEMP                   _UxGT("Min Temp")
222 222
 #define MSG_INFO_MAX_TEMP                   _UxGT("Max Temp")
223
-#define MSG_INFO_PSU                        _UxGT("Power Supply")  //accepted English term in Dutch
223
+#define MSG_INFO_PSU                        _UxGT("PSU")  //accepted English term in Dutch
224 224
 
225 225
 #define MSG_DRIVE_STRENGTH                  _UxGT("Motorstroom")
226 226
 #define MSG_DAC_PERCENT                     _UxGT("Driver %")  //accepted English term in Dutch

+ 70
- 8
Marlin/ultralcd.cpp 파일 보기

@@ -546,6 +546,11 @@ uint16_t max_display_update_time = 0;
546 546
       lcd_return_to_status();
547 547
   }
548 548
 
549
+  void lcd_goto_previous_menu_no_defer() {
550
+    defer_return_to_status = false;
551
+    lcd_goto_previous_menu();
552
+  }
553
+
549 554
 #endif // ULTIPANEL
550 555
 
551 556
 /**
@@ -971,7 +976,7 @@ void kill_screen(const char* lcd_msg) {
971 976
   #if ENABLED(BABYSTEPPING)
972 977
 
973 978
     void _lcd_babystep(const AxisEnum axis, const char* msg) {
974
-      if (lcd_clicked) { defer_return_to_status = false; return lcd_goto_previous_menu(); }
979
+      if (lcd_clicked) { return lcd_goto_previous_menu_no_defer(); }
975 980
       ENCODER_DIRECTION_NORMAL();
976 981
       if (encoderPosition) {
977 982
         const int16_t babystep_increment = (int32_t)encoderPosition * (BABYSTEP_MULTIPLICATOR);
@@ -994,7 +999,7 @@ void kill_screen(const char* lcd_msg) {
994 999
     #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
995 1000
 
996 1001
       void lcd_babystep_zoffset() {
997
-        if (lcd_clicked) { defer_return_to_status = false; return lcd_goto_previous_menu(); }
1002
+        if (lcd_clicked) { return lcd_goto_previous_menu_no_defer(); }
998 1003
         defer_return_to_status = true;
999 1004
         ENCODER_DIRECTION_NORMAL();
1000 1005
         if (encoderPosition) {
@@ -1545,7 +1550,52 @@ void kill_screen(const char* lcd_msg) {
1545 1550
     static void lcd_refresh_zprobe_zoffset() { refresh_zprobe_zoffset(); }
1546 1551
   #endif
1547 1552
 
1548
-#if ENABLED(LCD_BED_LEVELING)
1553
+
1554
+  #if ENABLED(LEVEL_BED_CORNERS)
1555
+
1556
+    /**
1557
+     * Level corners, starting in the front-left corner.
1558
+     */
1559
+    static int8_t bed_corner;
1560
+    void _lcd_goto_next_corner() {
1561
+      line_to_z(LOGICAL_Z_POSITION(4.0));
1562
+      switch (bed_corner) {
1563
+        case 0:
1564
+          current_position[X_AXIS] = X_MIN_BED + 10;
1565
+          current_position[Y_AXIS] = Y_MIN_BED + 10;
1566
+          break;
1567
+        case 1:
1568
+          current_position[X_AXIS] = X_MAX_BED - 10;
1569
+          break;
1570
+        case 2:
1571
+          current_position[Y_AXIS] = Y_MAX_BED - 10;
1572
+          break;
1573
+        case 3:
1574
+          current_position[X_AXIS] = X_MIN_BED + 10;
1575
+          break;
1576
+      }
1577
+      planner.buffer_line_kinematic(current_position, MMM_TO_MMS(manual_feedrate_mm_m[X_AXIS]), active_extruder);
1578
+      line_to_z(LOGICAL_Z_POSITION(0.0));
1579
+      if (++bed_corner > 3) bed_corner = 0;
1580
+    }
1581
+
1582
+    void _lcd_corner_submenu() {
1583
+      START_MENU();
1584
+      MENU_ITEM(function, MSG_NEXT_CORNER, _lcd_goto_next_corner);
1585
+      MENU_ITEM(function, MSG_BACK, lcd_goto_previous_menu_no_defer);
1586
+      END_MENU();
1587
+    }
1588
+
1589
+    void _lcd_level_bed_corners() {
1590
+      defer_return_to_status = true;
1591
+      lcd_goto_screen(_lcd_corner_submenu);
1592
+      bed_corner = 0;
1593
+      _lcd_goto_next_corner();
1594
+    }
1595
+
1596
+  #endif // LEVEL_BED_CORNERS
1597
+
1598
+  #if ENABLED(LCD_BED_LEVELING)
1549 1599
 
1550 1600
     /**
1551 1601
      *
@@ -1788,10 +1838,11 @@ void kill_screen(const char* lcd_msg) {
1788 1838
      * << Prepare
1789 1839
      *    Auto Home           (if homing needed)
1790 1840
      *    Leveling On/Off     (if data exists, and homed)
1791
-     *    Level Bed
1792 1841
      *    Fade Height: ---    (Req: ENABLE_LEVELING_FADE_HEIGHT)
1793 1842
      *    Mesh Z Offset: ---  (Req: MESH_BED_LEVELING)
1794 1843
      *    Z Probe Offset: --- (Req: HAS_BED_PROBE, Opt: BABYSTEP_ZPROBE_OFFSET)
1844
+     *    Level Bed >
1845
+     *    Level Corners >     (if homed)
1795 1846
      *    Load Settings       (Req: EEPROM_SETTINGS)
1796 1847
      *    Save Settings       (Req: EEPROM_SETTINGS)
1797 1848
      */
@@ -1826,6 +1877,12 @@ void kill_screen(const char* lcd_msg) {
1826 1877
 
1827 1878
       MENU_ITEM(submenu, MSG_LEVEL_BED, _lcd_level_bed_continue);
1828 1879
 
1880
+      #if ENABLED(LEVEL_BED_CORNERS)
1881
+        // Move to the next corner for leveling
1882
+        if (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
1883
+          MENU_ITEM(function, MSG_LEVEL_CORNERS, _lcd_level_bed_corners);
1884
+      #endif
1885
+
1829 1886
       #if ENABLED(EEPROM_SETTINGS)
1830 1887
         MENU_ITEM(function, MSG_LOAD_EEPROM, lcd_load_settings);
1831 1888
         MENU_ITEM(function, MSG_STORE_EEPROM, lcd_store_settings);
@@ -2404,8 +2461,14 @@ void kill_screen(const char* lcd_msg) {
2404 2461
         if (!g29_in_progress)
2405 2462
       #endif
2406 2463
       MENU_ITEM(submenu, MSG_BED_LEVELING, lcd_bed_leveling);
2407
-    #elif PLANNER_LEVELING
2408
-      MENU_ITEM(gcode, MSG_BED_LEVELING, PSTR("G28\nG29"));
2464
+    #else
2465
+      #if PLANNER_LEVELING
2466
+        MENU_ITEM(gcode, MSG_BED_LEVELING, PSTR("G28\nG29"));
2467
+      #endif
2468
+      #if ENABLED(LEVEL_BED_CORNERS)
2469
+        if (axis_homed[X_AXIS] && axis_homed[Y_AXIS] && axis_homed[Z_AXIS])
2470
+          MENU_ITEM(function, MSG_LEVEL_CORNERS, _lcd_level_bed_corners);
2471
+      #endif
2409 2472
     #endif
2410 2473
 
2411 2474
     #if HAS_M206_COMMAND
@@ -2538,8 +2601,7 @@ void kill_screen(const char* lcd_msg) {
2538 2601
       wait_for_user = true;
2539 2602
       while (wait_for_user) idle();
2540 2603
       KEEPALIVE_STATE(IN_HANDLER);
2541
-      defer_return_to_status = false;
2542
-      lcd_goto_previous_menu();
2604
+      lcd_goto_previous_menu_no_defer();
2543 2605
       return current_position[Z_AXIS];
2544 2606
     }
2545 2607
 

Loading…
취소
저장