소스 검색

Revert some changes to UBL

Scott Lahteine 8 년 전
부모
커밋
b47fd31c37
4개의 변경된 파일19개의 추가작업 그리고 14개의 파일을 삭제
  1. 13
    10
      Marlin/G26_Mesh_Validation_Tool.cpp
  2. 2
    0
      Marlin/SanityCheck.h
  3. 3
    3
      Marlin/UBL_G29.cpp
  4. 1
    1
      Marlin/example_configurations/TinyBoy2/Configuration.h

+ 13
- 10
Marlin/G26_Mesh_Validation_Tool.cpp 파일 보기

36
   #include "UBL.h"
36
   #include "UBL.h"
37
   #include "ultralcd.h"
37
   #include "ultralcd.h"
38
 
38
 
39
-  #define EXTRUSION_MULTIPLIER 1.0    // This is too much clutter for the main Configuration.h file  But
40
-  #define RETRACTION_MULTIPLIER 1.0   // some user have expressed an interest in being able to customize
41
-  #define NOZZLE 0.3                  // these numbers for their printer so they don't need to type all
42
-  #define FILAMENT 1.75               // the options every time they do a Mesh Validation Print.
39
+  #define EXTRUSION_MULTIPLIER 1.0
40
+  #define RETRACTION_MULTIPLIER 1.0
41
+  #define NOZZLE 0.3
42
+  #define FILAMENT 1.75
43
   #define LAYER_HEIGHT 0.2
43
   #define LAYER_HEIGHT 0.2
44
-  #define PRIME_LENGTH 10.0           // So, we put these number in an easy to find and change place.
44
+  #define PRIME_LENGTH 10.0
45
   #define BED_TEMP 60.0
45
   #define BED_TEMP 60.0
46
   #define HOTEND_TEMP 205.0
46
   #define HOTEND_TEMP 205.0
47
   #define OOZE_AMOUNT 0.3
47
   #define OOZE_AMOUNT 0.3
48
 
48
 
49
   #define SIZE_OF_INTERSECTION_CIRCLES 5
49
   #define SIZE_OF_INTERSECTION_CIRCLES 5
50
-  #define SIZE_OF_CROSSHAIRS 3 // crosshairs inside the circle.  This number should be
51
-                               // less than SIZE_OR_INTERSECTION_CIRCLES
50
+  #define SIZE_OF_CROSSHAIRS 3
51
+
52
+  #if SIZE_OF_CROSSHAIRS >= SIZE_OF_INTERSECTION_CIRCLES
53
+    #error "SIZE_OF_CROSSHAIRS must be less than SIZE_OF_INTERSECTION_CIRCLES."
54
+  #endif
52
 
55
 
53
   /**
56
   /**
54
-   *   Roxy's G26 Mesh Validation Tool
57
+   *   G26 Mesh Validation Tool
55
    *
58
    *
56
-   *   G26 Is a Mesh Validation Tool intended to provide support for the Marlin Unified Bed Leveling System.
59
+   *   G26 is a Mesh Validation Tool intended to provide support for the Marlin Unified Bed Leveling System.
57
    *   In order to fully utilize and benefit from the Marlin Unified Bed Leveling System an accurate Mesh must
60
    *   In order to fully utilize and benefit from the Marlin Unified Bed Leveling System an accurate Mesh must
58
    *   be defined.  G29 is designed to allow the user to quickly validate the correctness of her Mesh.  It will
61
    *   be defined.  G29 is designed to allow the user to quickly validate the correctness of her Mesh.  It will
59
    *   first heat the bed and nozzle. It will then print lines and circles along the Mesh Cell boundaries and
62
    *   first heat the bed and nozzle. It will then print lines and circles along the Mesh Cell boundaries and
118
   //#if ENABLED(ULTRA_LCD)
121
   //#if ENABLED(ULTRA_LCD)
119
     extern char lcd_status_message[];
122
     extern char lcd_status_message[];
120
   //#endif
123
   //#endif
121
-  extern float destination[];
124
+  extern float destination[XYZE];
122
   extern void set_destination_to_current();
125
   extern void set_destination_to_current();
123
   extern void set_current_to_destination();
126
   extern void set_current_to_destination();
124
   extern float code_value_float();
127
   extern float code_value_float();

+ 2
- 0
Marlin/SanityCheck.h 파일 보기

150
   #error "ABL_GRID_POINTS is now ABL_GRID_MAX_POINTS_X and ABL_GRID_MAX_POINTS_Y. Please update your configuration."
150
   #error "ABL_GRID_POINTS is now ABL_GRID_MAX_POINTS_X and ABL_GRID_MAX_POINTS_Y. Please update your configuration."
151
 #elif defined(ABL_GRID_POINTS_X) || defined(ABL_GRID_POINTS_Y)
151
 #elif defined(ABL_GRID_POINTS_X) || defined(ABL_GRID_POINTS_Y)
152
   #error "ABL_GRID_POINTS_[XY] is now ABL_GRID_MAX_POINTS_[XY]. Please update your configuration."
152
   #error "ABL_GRID_POINTS_[XY] is now ABL_GRID_MAX_POINTS_[XY]. Please update your configuration."
153
+#elif defined(UBL_MESH_EDIT_ENABLED)
154
+  #error "UBL_MESH_EDIT_ENABLED is now UBL_G26_MESH_EDITING. Please update your configuration."
153
 #elif defined(BEEPER)
155
 #elif defined(BEEPER)
154
   #error "BEEPER is now BEEPER_PIN. Please update your pins definitions."
156
   #error "BEEPER is now BEEPER_PIN. Please update your pins definitions."
155
 #elif defined(SDCARDDETECT)
157
 #elif defined(SDCARDDETECT)

+ 3
- 3
Marlin/UBL_G29.cpp 파일 보기

22
 
22
 
23
 #include "MarlinConfig.h"
23
 #include "MarlinConfig.h"
24
 
24
 
25
-#if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(UBL_G26_MESH_EDITING)
25
+#if ENABLED(AUTO_BED_LEVELING_UBL)
26
   //#include "vector_3.h"
26
   //#include "vector_3.h"
27
   //#include "qr_solve.h"
27
   //#include "qr_solve.h"
28
 
28
 
1048
 
1048
 
1049
     /*
1049
     /*
1050
     if (code_seen('M')) {     // Check if a map type was specified
1050
     if (code_seen('M')) {     // Check if a map type was specified
1051
-      map_type = code_has_value() ? code_value_int() : 0; 
1051
+      map_type = code_has_value() ? code_value_int() : 0;
1052
       if (!WITHIN(map_type, 0, 1)) {
1052
       if (!WITHIN(map_type, 0, 1)) {
1053
         SERIAL_PROTOCOLLNPGM("Invalid map type.\n");
1053
         SERIAL_PROTOCOLLNPGM("Invalid map type.\n");
1054
         return UBL_ERR;
1054
         return UBL_ERR;
1371
       do_blocking_move_to_xy(LOGICAL_X_POSITION(rawx), LOGICAL_Y_POSITION(rawy));
1371
       do_blocking_move_to_xy(LOGICAL_X_POSITION(rawx), LOGICAL_Y_POSITION(rawy));
1372
 
1372
 
1373
       float new_z = ubl.z_values[location.x_index][location.y_index];
1373
       float new_z = ubl.z_values[location.x_index][location.y_index];
1374
-      
1374
+
1375
       round_off = (int32_t)(new_z * 1000.0);    // we chop off the last digits just to be clean. We are rounding to the
1375
       round_off = (int32_t)(new_z * 1000.0);    // we chop off the last digits just to be clean. We are rounding to the
1376
       new_z = float(round_off) / 1000.0;
1376
       new_z = float(round_off) / 1000.0;
1377
 
1377
 

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

918
   #define UBL_PROBE_PT_2_Y 20
918
   #define UBL_PROBE_PT_2_Y 20
919
   #define UBL_PROBE_PT_3_X 180
919
   #define UBL_PROBE_PT_3_X 180
920
   #define UBL_PROBE_PT_3_Y 20
920
   #define UBL_PROBE_PT_3_Y 20
921
-  #define UBL_MESH_EDIT_ENABLED     // Enable G26 mesh editing
921
+  #define UBL_G26_MESH_EDITING     // Enable G26 mesh editing
922
 
922
 
923
 #elif ENABLED(MESH_BED_LEVELING)
923
 #elif ENABLED(MESH_BED_LEVELING)
924
 
924
 

Loading…
취소
저장