소스 검색

UBL_DELTA => UBL_SEGMENTED

Scott Lahteine 6 년 전
부모
커밋
6e8da93c42
6개의 변경된 파일18개의 추가작업 그리고 18개의 파일을 삭제
  1. 9
    9
      Marlin/Conditionals_post.h
  2. 1
    1
      Marlin/G26_Mesh_Validation_Tool.cpp
  3. 4
    4
      Marlin/Marlin_main.cpp
  4. 1
    1
      Marlin/SanityCheck.h
  5. 1
    1
      Marlin/planner.cpp
  6. 2
    2
      Marlin/ubl_motion.cpp

+ 9
- 9
Marlin/Conditionals_post.h 파일 보기

@@ -933,15 +933,15 @@
933 933
   /**
934 934
    * Set granular options based on the specific type of leveling
935 935
    */
936
-  #define UBL_DELTA  (ENABLED(AUTO_BED_LEVELING_UBL) && (ENABLED(DELTA) || ENABLED(SEGMENT_LEVELED_MOVES)))
937
-  #define ABL_PLANAR (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_3POINT))
938
-  #define ABL_GRID   (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR))
939
-  #define OLDSCHOOL_ABL         (ABL_PLANAR || ABL_GRID)
940
-  #define HAS_ABL               (OLDSCHOOL_ABL || ENABLED(AUTO_BED_LEVELING_UBL))
941
-  #define HAS_LEVELING          (HAS_ABL || ENABLED(MESH_BED_LEVELING))
942
-  #define HAS_AUTOLEVEL         (HAS_ABL && DISABLED(PROBE_MANUALLY))
943
-  #define HAS_MESH              (ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(MESH_BED_LEVELING))
944
-  #define PLANNER_LEVELING      (OLDSCHOOL_ABL || ENABLED(MESH_BED_LEVELING) || UBL_DELTA || ENABLED(SKEW_CORRECTION))
936
+  #define UBL_SEGMENTED  (ENABLED(AUTO_BED_LEVELING_UBL) && (ENABLED(DELTA) || ENABLED(SEGMENT_LEVELED_MOVES)))
937
+  #define ABL_PLANAR     (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_3POINT))
938
+  #define ABL_GRID       (ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR))
939
+  #define OLDSCHOOL_ABL  (ABL_PLANAR || ABL_GRID)
940
+  #define HAS_ABL        (OLDSCHOOL_ABL || ENABLED(AUTO_BED_LEVELING_UBL))
941
+  #define HAS_LEVELING   (HAS_ABL || ENABLED(MESH_BED_LEVELING))
942
+  #define HAS_AUTOLEVEL  (HAS_ABL && DISABLED(PROBE_MANUALLY))
943
+  #define HAS_MESH       (ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(MESH_BED_LEVELING))
944
+  #define PLANNER_LEVELING      (OLDSCHOOL_ABL || ENABLED(MESH_BED_LEVELING) || UBL_SEGMENTED || ENABLED(SKEW_CORRECTION))
945 945
   #define HAS_PROBING_PROCEDURE (HAS_ABL || ENABLED(Z_MIN_PROBE_REPEATABILITY_TEST))
946 946
   #if HAS_PROBING_PROCEDURE
947 947
     #define PROBE_BED_WIDTH abs(RIGHT_PROBE_BED_POSITION - (LEFT_PROBE_BED_POSITION))

+ 1
- 1
Marlin/G26_Mesh_Validation_Tool.cpp 파일 보기

@@ -189,7 +189,7 @@
189 189
   void G26_line_to_destination(const float &feed_rate) {
190 190
     const float save_feedrate = feedrate_mm_s;
191 191
     feedrate_mm_s = feed_rate;      // use specified feed rate
192
-    prepare_move_to_destination();  // will ultimately call ubl.line_to_destination_cartesian or ubl.prepare_linear_move_to for UBL_DELTA
192
+    prepare_move_to_destination();  // will ultimately call ubl.line_to_destination_cartesian or ubl.prepare_linear_move_to for UBL_SEGMENTED
193 193
     feedrate_mm_s = save_feedrate;  // restore global feed rate
194 194
   }
195 195
 

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

@@ -1550,7 +1550,7 @@ inline void set_destination_from_current() { COPY(destination, current_position)
1550 1550
 
1551 1551
     refresh_cmd_timeout();
1552 1552
 
1553
-    #if UBL_DELTA
1553
+    #if UBL_SEGMENTED
1554 1554
       // ubl segmented line will do z-only moves in single segment
1555 1555
       ubl.prepare_segmented_line_to(destination, MMS_SCALED(fr_mm_s ? fr_mm_s : feedrate_mm_s));
1556 1556
     #else
@@ -12647,7 +12647,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
12647 12647
 #endif // AUTO_BED_LEVELING_BILINEAR
12648 12648
 #endif // IS_CARTESIAN
12649 12649
 
12650
-#if !UBL_DELTA
12650
+#if !UBL_SEGMENTED
12651 12651
 #if IS_KINEMATIC
12652 12652
 
12653 12653
   /**
@@ -12819,7 +12819,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
12819 12819
   }
12820 12820
 
12821 12821
 #endif // !IS_KINEMATIC
12822
-#endif // !UBL_DELTA
12822
+#endif // !UBL_SEGMENTED
12823 12823
 
12824 12824
 #if ENABLED(DUAL_X_CARRIAGE)
12825 12825
 
@@ -12937,7 +12937,7 @@ void prepare_move_to_destination() {
12937 12937
   #endif
12938 12938
 
12939 12939
   if (
12940
-    #if UBL_DELTA // Also works for CARTESIAN (smaller segments follow mesh more closely)
12940
+    #if UBL_SEGMENTED // Also works for CARTESIAN (smaller segments follow mesh more closely)
12941 12941
       ubl.prepare_segmented_line_to(destination, MMS_SCALED(feedrate_mm_s))
12942 12942
     #elif IS_KINEMATIC
12943 12943
       prepare_kinematic_move_to(destination)

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

@@ -590,7 +590,7 @@ static_assert(1 >= 0
590 590
     #error "Delta probably shouldn't use Z_MIN_PROBE_ENDSTOP. Comment out this line to continue."
591 591
   #elif DISABLED(USE_XMAX_PLUG) && DISABLED(USE_YMAX_PLUG) && DISABLED(USE_ZMAX_PLUG)
592 592
     #error "You probably want to use Max Endstops for DELTA!"
593
-  #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_DELTA
593
+  #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
594 594
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
595 595
   #elif ENABLED(DELTA_AUTO_CALIBRATION) && !(HAS_BED_PROBE || ENABLED(ULTIPANEL))
596 596
     #error "DELTA_AUTO_CALIBRATION requires either a probe or an LCD Controller."

+ 1
- 1
Marlin/planner.cpp 파일 보기

@@ -605,7 +605,7 @@ void Planner::calculate_volumetric_multipliers() {
605 605
       #endif
606 606
 
607 607
       rz += (
608
-        #if ENABLED(AUTO_BED_LEVELING_UBL) // UBL_DELTA
608
+        #if ENABLED(AUTO_BED_LEVELING_UBL)
609 609
           ubl.get_z_correction(rx, ry) * fade_scaling_factor
610 610
         #elif ENABLED(MESH_BED_LEVELING)
611 611
           mbl.get_z(rx, ry

+ 2
- 2
Marlin/ubl_motion.cpp 파일 보기

@@ -453,7 +453,7 @@
453 453
     set_current_from_destination();
454 454
   }
455 455
 
456
-  #if UBL_DELTA
456
+  #if UBL_SEGMENTED
457 457
 
458 458
     // macro to inline copy exactly 4 floats, don't rely on sizeof operator
459 459
     #define COPY_XYZE( target, source ) { \
@@ -670,6 +670,6 @@
670 670
       } // cell loop
671 671
     }
672 672
 
673
-  #endif // UBL_DELTA
673
+  #endif // UBL_SEGMENTED
674 674
 
675 675
 #endif // AUTO_BED_LEVELING_UBL

Loading…
취소
저장