|
@ -1388,9 +1388,7 @@ void Planner::check_axes_activity() { |
|
|
// Update Fan speeds
|
|
|
// Update Fan speeds
|
|
|
// Only if synchronous M106/M107 is disabled
|
|
|
// Only if synchronous M106/M107 is disabled
|
|
|
//
|
|
|
//
|
|
|
#if HAS_TAIL_FAN_SPEED |
|
|
TERN_(HAS_TAIL_FAN_SPEED, sync_fan_speeds(tail_fan_speed)); |
|
|
sync_fan_speeds(tail_fan_speed); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
TERN_(AUTOTEMP, autotemp_task()); |
|
|
TERN_(AUTOTEMP, autotemp_task()); |
|
|
|
|
|
|
|
@ -1585,11 +1583,7 @@ void Planner::check_axes_activity() { |
|
|
|
|
|
|
|
|
raw.z += ( |
|
|
raw.z += ( |
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
mbl.get_z(raw |
|
|
mbl.get_z(raw OPTARG(ENABLE_LEVELING_FADE_HEIGHT, fade_scaling_factor)) |
|
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) |
|
|
|
|
|
, fade_scaling_factor |
|
|
|
|
|
#endif |
|
|
|
|
|
) |
|
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
fade_scaling_factor ? fade_scaling_factor * ubl.get_z_correction(raw) : 0.0 |
|
|
fade_scaling_factor ? fade_scaling_factor * ubl.get_z_correction(raw) : 0.0 |
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
@ -1622,11 +1616,7 @@ void Planner::check_axes_activity() { |
|
|
|
|
|
|
|
|
raw.z -= ( |
|
|
raw.z -= ( |
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
mbl.get_z(raw |
|
|
mbl.get_z(raw OPTARG(ENABLE_LEVELING_FADE_HEIGHT, fade_scaling_factor)) |
|
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) |
|
|
|
|
|
, fade_scaling_factor |
|
|
|
|
|
#endif |
|
|
|
|
|
) |
|
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
fade_scaling_factor ? fade_scaling_factor * ubl.get_z_correction(raw) : 0.0 |
|
|
fade_scaling_factor ? fade_scaling_factor * ubl.get_z_correction(raw) : 0.0 |
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
@ -1811,12 +1801,8 @@ bool Planner::_buffer_steps(const xyze_long_t &target |
|
|
|
|
|
|
|
|
// Fill the block with the specified movement
|
|
|
// Fill the block with the specified movement
|
|
|
if (!_populate_block(block, false, target |
|
|
if (!_populate_block(block, false, target |
|
|
#if HAS_POSITION_FLOAT |
|
|
OPTARG(HAS_POSITION_FLOAT, target_float) |
|
|
, target_float |
|
|
OPTARG(HAS_DIST_MM_ARG, cart_dist_mm) |
|
|
#endif |
|
|
|
|
|
#if HAS_DIST_MM_ARG |
|
|
|
|
|
, cart_dist_mm |
|
|
|
|
|
#endif |
|
|
|
|
|
, fr_mm_s, extruder, millimeters |
|
|
, fr_mm_s, extruder, millimeters |
|
|
)) { |
|
|
)) { |
|
|
// Movement was not queued, probably because it was too short.
|
|
|
// Movement was not queued, probably because it was too short.
|
|
@ -1975,9 +1961,7 @@ bool Planner::_populate_block(block_t * const block, bool split_move, |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_EXTRUDERS |
|
|
TERN_(HAS_EXTRUDERS, if (de < 0) SBI(dm, E_AXIS)); |
|
|
if (de < 0) SBI(dm, E_AXIS); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_EXTRUDERS |
|
|
#if HAS_EXTRUDERS |
|
|
const float esteps_float = de * e_factor[extruder]; |
|
|
const float esteps_float = de * e_factor[extruder]; |
|
@ -2075,9 +2059,7 @@ bool Planner::_populate_block(block_t * const block, bool split_move, |
|
|
); |
|
|
); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_EXTRUDERS |
|
|
TERN_(HAS_EXTRUDERS, steps_dist_mm.e = esteps_float * steps_to_mm[E_AXIS_N(extruder)]); |
|
|
steps_dist_mm.e = esteps_float * steps_to_mm[E_AXIS_N(extruder)]; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
TERN_(LCD_SHOW_E_TOTAL, e_move_accumulator += steps_dist_mm.e); |
|
|
TERN_(LCD_SHOW_E_TOTAL, e_move_accumulator += steps_dist_mm.e); |
|
|
|
|
|
|
|
@ -2162,9 +2144,7 @@ bool Planner::_populate_block(block_t * const block, bool split_move, |
|
|
block->e_to_p_pressure = baricuda_e_to_p_pressure; |
|
|
block->e_to_p_pressure = baricuda_e_to_p_pressure; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_MULTI_EXTRUDER |
|
|
TERN_(HAS_MULTI_EXTRUDER, block->extruder = extruder); |
|
|
block->extruder = extruder; |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_POWER_CONTROL) |
|
|
#if ENABLED(AUTO_POWER_CONTROL) |
|
|
if (LINEAR_AXIS_GANG( |
|
|
if (LINEAR_AXIS_GANG( |
|
@ -2986,12 +2966,8 @@ bool Planner::buffer_segment(const abce_pos_t &abce |
|
|
|
|
|
|
|
|
// Queue the movement. Return 'false' if the move was not queued.
|
|
|
// Queue the movement. Return 'false' if the move was not queued.
|
|
|
if (!_buffer_steps(target |
|
|
if (!_buffer_steps(target |
|
|
#if HAS_POSITION_FLOAT |
|
|
OPTARG(HAS_POSITION_FLOAT, target_float) |
|
|
, target_float |
|
|
OPTARG(HAS_DIST_MM_ARG, cart_dist_mm) |
|
|
#endif |
|
|
|
|
|
#if HAS_DIST_MM_ARG |
|
|
|
|
|
, cart_dist_mm |
|
|
|
|
|
#endif |
|
|
|
|
|
, fr_mm_s, extruder, millimeters) |
|
|
, fr_mm_s, extruder, millimeters) |
|
|
) return false; |
|
|
) return false; |
|
|
|
|
|
|
|
|