Frix-x / klippain

Generic Klipper configuration for 3D printers
GNU General Public License v3.0
849 stars 221 forks source link

Input Shaper workflow for seperate Axes #197

Closed thomasfjen closed 11 months ago

thomasfjen commented 1 year ago

Hey would it be possbile to have the workflow seperated for the different axes of bed slingers? I am using a Voron Switchwire conversion and i am only using one ADXL which i place at the toolhead and bed separately.

Would be nice if the process / macro of belt tension and input shaping could be started for only one axis.

Frix-x commented 1 year ago

Hello, yes this is perfectly doable. I'll see if I can work on something after the V4 is released in the following days :)

Fragmon commented 1 year ago

you can add my edit:

[gcode_macro AXES_SHAPER_CALIBRATION]
description: Run standard input shaper test for all axes
gcode:
{% set verbose = params.VERBOSE|default(true) %}
{% set axes = params.AXES|default("x,y,xy")|string|lower %}
{% set max_x = printer.toolhead.axis_maximum.x|float %}
{% set max_y = printer.toolhead.axis_maximum.y|float %}

{% if axes=="xy" %}
    TEST_RESONANCES AXIS=X
    M400
    TEST_RESONANCES AXIS=Y
    M400   
    {% if verbose %}
    RESPOND MSG="Graphs generation... Please wait a minute or two and look in the configured folder."
    {% endif %}
    RUN_SHELL_COMMAND CMD=plot_graph PARAMS=SHAPER  

{% elif axes=="y" %}
    TEST_RESONANCES AXIS=Y
    M400     
    {% if verbose %}
    RESPOND MSG="Graphs generation... Please wait a minute or two and look in the configured folder."
    {% endif %}
    RUN_SHELL_COMMAND CMD=plot_graph PARAMS=SHAPER

{% elif axes=="x" %}
    TEST_RESONANCES AXIS=X
    M400     
    {% if verbose %}
    RESPOND MSG="Graphs generation... Please wait a minute or two and look in the configured folder."
    {% endif %}
    RUN_SHELL_COMMAND CMD=plot_graph PARAMS=SHAPER

{% else %}
    {action_respond_info("Please choose the axis: x, y or xy")}
{% endif %}
Frix-x commented 11 months ago

This is now done alongside the new input shaper workflow and scripts that will be available in the following days (next Klippain release) :)

thomasfjen commented 11 months ago

This is great! Thank you very much!