check the kinematics type for belt graph and move in the right direction

This commit is contained in:
Félix Boisselier
2024-05-06 14:42:52 +02:00
parent 78dcce412f
commit 20ff9814b3
2 changed files with 26 additions and 12 deletions

View File

@@ -13,12 +13,23 @@ gcode:
{% set keep_csv = params.KEEP_CSV|default(0)|int %}
{% set kinematics = printer.configfile.settings.printer.kinematics %}
RESPOND MSG="{kinematics} kinematics detected"
{% if kinematics != "corexy" %}
RESPOND MSG="Note that this test is not useful for this kinematics because the belt paths are not symmetrical!"
{% endif %}
TEST_RESONANCES AXIS=1,1 OUTPUT=raw_data NAME=b FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
TEST_RESONANCES AXIS=1,-1 OUTPUT=raw_data NAME=a FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
{% if kinematics == "corexy" %}
TEST_RESONANCES AXIS=1,1 OUTPUT=raw_data NAME=b FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
TEST_RESONANCES AXIS=1,-1 OUTPUT=raw_data NAME=a FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
{% else %}
TEST_RESONANCES AXIS=1,0 OUTPUT=raw_data NAME=x FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
TEST_RESONANCES AXIS=0,1 OUTPUT=raw_data NAME=y FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
M400
{% endif %}
RESPOND MSG="Belts comparative frequency profile generation..."
RESPOND MSG="This may take some time (3-5min)"