|
|
@ -11235,32 +11235,36 @@ void set_current_from_steppers_for_axis(const AxisEnum axis) {
|
|
|
|
* Returns true if the caller didn't update current_position.
|
|
|
|
* Returns true if the caller didn't update current_position.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline bool prepare_move_to_destination_cartesian() {
|
|
|
|
inline bool prepare_move_to_destination_cartesian() {
|
|
|
|
// Do not use feedrate_percentage for E or Z only moves
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
|
|
|
if (current_position[X_AXIS] == destination[X_AXIS] && current_position[Y_AXIS] == destination[Y_AXIS]) {
|
|
|
|
const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
|
|
|
line_to_destination();
|
|
|
|
if (ubl.state.active) {
|
|
|
|
}
|
|
|
|
ubl_line_to_destination_cartesian(fr_scaled, active_extruder);
|
|
|
|
else {
|
|
|
|
return true;
|
|
|
|
#if ENABLED(MESH_BED_LEVELING)
|
|
|
|
}
|
|
|
|
if (mbl.active()) {
|
|
|
|
else
|
|
|
|
mesh_line_to_destination(MMS_SCALED(feedrate_mm_s));
|
|
|
|
line_to_destination(fr_scaled);
|
|
|
|
return true;
|
|
|
|
#else
|
|
|
|
}
|
|
|
|
// Do not use feedrate_percentage for E or Z only moves
|
|
|
|
else
|
|
|
|
if (current_position[X_AXIS] == destination[X_AXIS] && current_position[Y_AXIS] == destination[Y_AXIS])
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
|
|
|
line_to_destination();
|
|
|
|
if (ubl.state.active) {
|
|
|
|
else {
|
|
|
|
ubl_line_to_destination_cartesian(MMS_SCALED(feedrate_mm_s), active_extruder);
|
|
|
|
const float fr_scaled = MMS_SCALED(feedrate_mm_s);
|
|
|
|
return true;
|
|
|
|
#if ENABLED(MESH_BED_LEVELING)
|
|
|
|
}
|
|
|
|
if (mbl.active()) {
|
|
|
|
else
|
|
|
|
mesh_line_to_destination(fr_scaled);
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
|
|
return true;
|
|
|
|
if (planner.abl_enabled) {
|
|
|
|
}
|
|
|
|
bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s));
|
|
|
|
else
|
|
|
|
return true;
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
|
|
}
|
|
|
|
if (planner.abl_enabled) {
|
|
|
|
else
|
|
|
|
bilinear_line_to_destination(fr_scaled);
|
|
|
|
#endif
|
|
|
|
return true;
|
|
|
|
line_to_destination(MMS_SCALED(feedrate_mm_s));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
line_to_destination(fr_scaled);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|