You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up on the work here mainsail-crew/mainsail#1988 and more of a starting point for a discussion - not actually an issue!
I've now implemented that change on the latest release of Fluidd, and it works fine, but does cause a lot of "noise" on the command line which I find distracting!
I've quickly discussed this with @meteyou and we believe that we could create a special macro and release it as part of Mainsail and Fluidd configs to mitigate this!
The point here would be that the frontend will check if said macro exists, and if so, will call it and pass whatever parameters we need to do the same as shown on the screenshot above; if the macro is not find, then we fallback to the current commands shown.
I've quickly written an example of what I am proposing:
[gcode_macro LINEAR_MOVE]
gcode:
{% set x_move = "X" ~ params.X if params.X is defined
else "" %}
{% set y_move = "Y" ~ params.Y if params.Y is defined
else "" %}
{% set z_move = "Z" ~ params.Z if params.Z is defined
else "" %}
{% set e_move = "E" ~ params.E if params.E is defined
else "" %}
{% set rate = "F" ~ params.F if params.F is defined
else "" %}
{% set ABSOLUTE = params.ABSOLUTE | default(0) | int != 0 %}
SAVE_GCODE_STATE NAME=_ui_movement
G9{ 0 if ABSOLUTE else 1 }
M8{ 2 if ABSOLUTE else 3 }
G1 { x_move } { y_move } { z_move } { e_move } { rate }
RESTORE_GCODE_STATE NAME=_ui_movement
Frontend would then check for LINEAR_MOVE macro, and if it does exist, use it for toolhead movement or extrusion/retraction.
Some examples:
LINEAR_MOVE X=10 F=200
LINEAR_MOVE X=125 Y=125 F=200 ABSOLUTE=1
LINEAR_MOVE E=10 F=200
A saner alternative the above would be to have 2 separate macros, one for toolhead movement and another for extrusion/retraction, which might indeed make more sense in the grand scheme of things!
The text was updated successfully, but these errors were encountered:
This is a follow up on the work here mainsail-crew/mainsail#1988 and more of a starting point for a discussion - not actually an issue!
I've now implemented that change on the latest release of Fluidd, and it works fine, but does cause a lot of "noise" on the command line which I find distracting!
I've quickly discussed this with @meteyou and we believe that we could create a special macro and release it as part of Mainsail and Fluidd configs to mitigate this!
The point here would be that the frontend will check if said macro exists, and if so, will call it and pass whatever parameters we need to do the same as shown on the screenshot above; if the macro is not find, then we fallback to the current commands shown.
I've quickly written an example of what I am proposing:
Frontend would then check for
LINEAR_MOVE
macro, and if it does exist, use it for toolhead movement or extrusion/retraction.Some examples:
LINEAR_MOVE X=10 F=200
LINEAR_MOVE X=125 Y=125 F=200 ABSOLUTE=1
LINEAR_MOVE E=10 F=200
A saner alternative the above would be to have 2 separate macros, one for toolhead movement and another for extrusion/retraction, which might indeed make more sense in the grand scheme of things!
The text was updated successfully, but these errors were encountered: