splitted cfg files to allow a selection of only some of the macros
This commit is contained in:
47
K-ShakeTune/K-SH_axis.cfg
Normal file
47
K-ShakeTune/K-SH_axis.cfg
Normal file
@@ -0,0 +1,47 @@
|
||||
################################################
|
||||
###### STANDARD INPUT_SHAPER CALIBRATIONS ######
|
||||
################################################
|
||||
# Written by Frix_x#0161 #
|
||||
|
||||
[gcode_macro AXES_SHAPER_CALIBRATION]
|
||||
description: Perform standard axis input shaper tests on one or both XY axes to select the best input shaper filter
|
||||
gcode:
|
||||
{% set verbose = params.VERBOSE|default(true) %}
|
||||
{% set min_freq = params.FREQ_START|default(5)|float %}
|
||||
{% set max_freq = params.FREQ_END|default(133.3)|float %}
|
||||
{% set hz_per_sec = params.HZ_PER_SEC|default(1)|float %}
|
||||
{% set axis = params.AXIS|default("all")|string|lower %}
|
||||
|
||||
{% set X, Y = False, False %}
|
||||
|
||||
{% if axis == "all" %}
|
||||
{% set X, Y = True, True %}
|
||||
{% elif axis == "x" %}
|
||||
{% set X = True %}
|
||||
{% elif axis == "y" %}
|
||||
{% set Y = True %}
|
||||
{% else %}
|
||||
{ action_raise_error("AXIS selection invalid. Should be either all, x or y!") }
|
||||
{% endif %}
|
||||
|
||||
{% if X %}
|
||||
TEST_RESONANCES AXIS=X OUTPUT=raw_data NAME=x FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
|
||||
M400
|
||||
|
||||
{% if verbose %}
|
||||
RESPOND MSG="X axis frequency profile generation..."
|
||||
RESPOND MSG="This may take some time (1-3min)"
|
||||
{% endif %}
|
||||
RUN_SHELL_COMMAND CMD=shaketune PARAMS=SHAPER
|
||||
{% endif %}
|
||||
|
||||
{% if Y %}
|
||||
TEST_RESONANCES AXIS=Y OUTPUT=raw_data NAME=y FREQ_START={min_freq} FREQ_END={max_freq} HZ_PER_SEC={hz_per_sec}
|
||||
M400
|
||||
|
||||
{% if verbose %}
|
||||
RESPOND MSG="Y axis frequency profile generation..."
|
||||
RESPOND MSG="This may take some time (1-3min)"
|
||||
{% endif %}
|
||||
RUN_SHELL_COMMAND CMD=shaketune PARAMS=SHAPER
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user