mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-11 21:14:34 +00:00
🎨 Misc. 6-axis cleanup
This commit is contained in:
parent
0ef496df2b
commit
0281459093
@ -45,7 +45,7 @@
|
|||||||
*/
|
*/
|
||||||
#define __DECL_DATA_IF_INCLUDED(CLASS) struct CLASS ## Data CLASS ;
|
#define __DECL_DATA_IF_INCLUDED(CLASS) struct CLASS ## Data CLASS ;
|
||||||
#define _DECL_DATA_IF_INCLUDED(CLASS) __DECL_DATA_IF_INCLUDED(CLASS)
|
#define _DECL_DATA_IF_INCLUDED(CLASS) __DECL_DATA_IF_INCLUDED(CLASS)
|
||||||
#define DECL_DATA_IF_INCLUDED(HEADER) TERN(HEADER, _DECL_DATA_IF_INCLUDED(HEADER ## _CLASS), )
|
#define DECL_DATA_IF_INCLUDED(HEADER) TERN_(HEADER, _DECL_DATA_IF_INCLUDED(HEADER ## _CLASS))
|
||||||
|
|
||||||
union screen_data_t {
|
union screen_data_t {
|
||||||
DECL_DATA_IF_INCLUDED(FTDI_INTERFACE_SETTINGS_SCREEN)
|
DECL_DATA_IF_INCLUDED(FTDI_INTERFACE_SETTINGS_SCREEN)
|
||||||
|
@ -1052,6 +1052,13 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
|
|||||||
if (ok) {
|
if (ok) {
|
||||||
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
||||||
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
||||||
|
#if NONE(TOOLCHANGE_PARK_X_ONLY, TOOLCHANGE_PARK_Y_ONLY)
|
||||||
|
SECONDARY_AXIS_CODE(
|
||||||
|
current_position.i = toolchange_settings.change_point.i,
|
||||||
|
current_position.j = toolchange_settings.change_point.j,
|
||||||
|
current_position.k = toolchange_settings.change_point.k
|
||||||
|
);
|
||||||
|
#endif
|
||||||
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), active_extruder);
|
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), active_extruder);
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
}
|
}
|
||||||
@ -1227,6 +1234,13 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
|
|||||||
if (can_move_away && toolchange_settings.enable_park) {
|
if (can_move_away && toolchange_settings.enable_park) {
|
||||||
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
IF_DISABLED(TOOLCHANGE_PARK_Y_ONLY, current_position.x = toolchange_settings.change_point.x);
|
||||||
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
IF_DISABLED(TOOLCHANGE_PARK_X_ONLY, current_position.y = toolchange_settings.change_point.y);
|
||||||
|
#if NONE(TOOLCHANGE_PARK_X_ONLY, TOOLCHANGE_PARK_Y_ONLY)
|
||||||
|
SECONDARY_AXIS_CODE(
|
||||||
|
current_position.i = toolchange_settings.change_point.i,
|
||||||
|
current_position.j = toolchange_settings.change_point.j,
|
||||||
|
current_position.k = toolchange_settings.change_point.k
|
||||||
|
);
|
||||||
|
#endif
|
||||||
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), old_tool);
|
planner.buffer_line(current_position, MMM_TO_MMS(TOOLCHANGE_PARK_XY_FEEDRATE), old_tool);
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user