|
@ -33,20 +33,6 @@ |
|
|
|
|
|
|
|
|
#include "Marlin.h" |
|
|
#include "Marlin.h" |
|
|
|
|
|
|
|
|
#if HAS_ABL |
|
|
|
|
|
#include "vector_3.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_LINEAR) |
|
|
|
|
|
#include "qr_solve.h" |
|
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING) |
|
|
|
|
|
#include "mesh_bed_leveling.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BEZIER_CURVE_SUPPORT) |
|
|
|
|
|
#include "planner_bezier.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#include "ultralcd.h" |
|
|
#include "ultralcd.h" |
|
|
#include "planner.h" |
|
|
#include "planner.h" |
|
|
#include "stepper.h" |
|
|
#include "stepper.h" |
|
@ -61,6 +47,23 @@ |
|
|
#include "duration_t.h" |
|
|
#include "duration_t.h" |
|
|
#include "types.h" |
|
|
#include "types.h" |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_ABL |
|
|
|
|
|
#include "vector_3.h" |
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_LINEAR) |
|
|
|
|
|
#include "qr_solve.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING) |
|
|
|
|
|
#include "mesh_bed_leveling.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(BEZIER_CURVE_SUPPORT) |
|
|
|
|
|
#include "planner_bezier.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if HAS_BUZZER && DISABLED(LCD_USE_I2C_BUZZER) |
|
|
|
|
|
#include "buzzer.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(USE_WATCHDOG) |
|
|
#if ENABLED(USE_WATCHDOG) |
|
|
#include "watchdog.h" |
|
|
#include "watchdog.h" |
|
|
#endif |
|
|
#endif |
|
@ -457,6 +460,7 @@ static uint8_t target_extruder; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
|
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
|
|
|
|
#if ENABLED(DELTA) |
|
|
#define ADJUST_DELTA(V) \ |
|
|
#define ADJUST_DELTA(V) \ |
|
|
if (planner.abl_enabled) { \ |
|
|
if (planner.abl_enabled) { \ |
|
|
const float zadj = bilinear_z_offset(V); \ |
|
|
const float zadj = bilinear_z_offset(V); \ |
|
@ -464,6 +468,9 @@ static uint8_t target_extruder; |
|
|
delta[B_AXIS] += zadj; \ |
|
|
delta[B_AXIS] += zadj; \ |
|
|
delta[C_AXIS] += zadj; \ |
|
|
delta[C_AXIS] += zadj; \ |
|
|
} |
|
|
} |
|
|
|
|
|
#else |
|
|
|
|
|
#define ADJUST_DELTA(V) if (planner.abl_enabled) { delta[Z_AXIS] += bilinear_z_offset(V); } |
|
|
|
|
|
#endif |
|
|
#elif IS_KINEMATIC |
|
|
#elif IS_KINEMATIC |
|
|
#define ADJUST_DELTA(V) NOOP |
|
|
#define ADJUST_DELTA(V) NOOP |
|
|
#endif |
|
|
#endif |
|
@ -2218,8 +2225,8 @@ static void clean_up_after_endstop_or_probe_move() { |
|
|
#elif HAS_ABL |
|
|
#elif HAS_ABL |
|
|
|
|
|
|
|
|
if (enable != planner.abl_enabled) { |
|
|
if (enable != planner.abl_enabled) { |
|
|
planner.abl_enabled = !planner.abl_enabled; |
|
|
planner.abl_enabled = enable; |
|
|
if (!planner.abl_enabled) |
|
|
if (!enable) |
|
|
set_current_from_steppers_for_axis( |
|
|
set_current_from_steppers_for_axis( |
|
|
#if ABL_PLANAR |
|
|
#if ABL_PLANAR |
|
|
ALL_AXES |
|
|
ALL_AXES |
|
@ -4560,7 +4567,9 @@ inline void gcode_M31() { |
|
|
SERIAL_ECHO_START; |
|
|
SERIAL_ECHO_START; |
|
|
SERIAL_ECHOLNPAIR("Print time: ", buffer); |
|
|
SERIAL_ECHOLNPAIR("Print time: ", buffer); |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTOTEMP) |
|
|
thermalManager.autotempShutdown(); |
|
|
thermalManager.autotempShutdown(); |
|
|
|
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
#if ENABLED(SDSUPPORT) |
|
@ -8814,9 +8823,7 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) { |
|
|
// For non-interpolated delta calculate every segment
|
|
|
// For non-interpolated delta calculate every segment
|
|
|
for (uint16_t s = segments + 1; --s;) { |
|
|
for (uint16_t s = segments + 1; --s;) { |
|
|
DELTA_NEXT(segment_distance[i]); |
|
|
DELTA_NEXT(segment_distance[i]); |
|
|
DELTA_IK(); |
|
|
planner.buffer_line_kinematic(DELTA_VAR, _feedrate_mm_s, active_extruder); |
|
|
ADJUST_DELTA(DELTA_VAR); |
|
|
|
|
|
planner.buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], DELTA_VAR[E_AXIS], _feedrate_mm_s, active_extruder); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|