♻️ Common Bed Leveling object name, accessors (#24214)
This commit is contained in:
committed by
Scott Lahteine
parent
06c4a9acdb
commit
b72f9277e9
@ -417,7 +417,7 @@ void line_to_current_position(const_feedRate_t fr_mm_s/*=feedrate_mm_s*/) {
|
||||
|
||||
#if UBL_SEGMENTED
|
||||
// UBL segmented line will do Z-only moves in single segment
|
||||
ubl.line_to_destination_segmented(scaled_fr_mm_s);
|
||||
bedlevel.line_to_destination_segmented(scaled_fr_mm_s);
|
||||
#else
|
||||
if (current_position == destination) return;
|
||||
|
||||
@ -904,7 +904,7 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
|
||||
* small incremental moves for DELTA or SCARA.
|
||||
*
|
||||
* For Unified Bed Leveling (Delta or Segmented Cartesian)
|
||||
* the ubl.line_to_destination_segmented method replaces this.
|
||||
* the bedlevel.line_to_destination_segmented method replaces this.
|
||||
*
|
||||
* For Auto Bed Leveling (Bilinear) with SEGMENT_LEVELED_MOVES
|
||||
* this is replaced by segmented_line_to_destination below.
|
||||
@ -1060,7 +1060,7 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
|
||||
#if HAS_MESH
|
||||
if (planner.leveling_active && planner.leveling_active_at_z(destination.z)) {
|
||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||
ubl.line_to_destination_cartesian(scaled_fr_mm_s, active_extruder); // UBL's motion routine needs to know about
|
||||
bedlevel.line_to_destination_cartesian(scaled_fr_mm_s, active_extruder); // UBL's motion routine needs to know about
|
||||
return true; // all moves, including Z-only moves.
|
||||
#elif ENABLED(SEGMENT_LEVELED_MOVES)
|
||||
segmented_line_to_destination(scaled_fr_mm_s);
|
||||
@ -1072,9 +1072,9 @@ FORCE_INLINE void segment_idle(millis_t &next_idle_ms) {
|
||||
*/
|
||||
if (xy_pos_t(current_position) != xy_pos_t(destination)) {
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
mbl.line_to_destination(scaled_fr_mm_s);
|
||||
bedlevel.line_to_destination(scaled_fr_mm_s);
|
||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||
bbl.line_to_destination(scaled_fr_mm_s);
|
||||
bedlevel.line_to_destination(scaled_fr_mm_s);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
@ -1272,7 +1272,7 @@ void prepare_line_to_destination() {
|
||||
if (
|
||||
#if UBL_SEGMENTED
|
||||
#if IS_KINEMATIC // UBL using Kinematic / Cartesian cases as a workaround for now.
|
||||
ubl.line_to_destination_segmented(MMS_SCALED(feedrate_mm_s))
|
||||
bedlevel.line_to_destination_segmented(MMS_SCALED(feedrate_mm_s))
|
||||
#else
|
||||
line_to_destination_cartesian()
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user