From 8e304a71cab6a8de3a389f9a9ccafc67b1d7fae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Mon, 27 Nov 2023 20:44:44 +0100 Subject: [PATCH] fixed typo in axis selection for EXCITATE_AXIS_AT_FREQ --- K-ShakeTune/IS_shaper_calibrate.cfg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/K-ShakeTune/IS_shaper_calibrate.cfg b/K-ShakeTune/IS_shaper_calibrate.cfg index d9db4e1..a5ee719 100644 --- a/K-ShakeTune/IS_shaper_calibrate.cfg +++ b/K-ShakeTune/IS_shaper_calibrate.cfg @@ -94,19 +94,19 @@ gcode: [gcode_macro EXCITATE_AXIS_AT_FREQ] description: Maintain a specified input shaper excitation frequency for a period of time to diagnose and locate a source of vibration gcode: - {% set FREQUENCY = params.FREQUENCY|default(25)|int %} - {% set TIME = params.TIME|default(10)|int %} - {% set AXIS = params.AXIS|default("x")|string|lower %} + {% set frequency = params.FREQUENCY|default(25)|int %} + {% set time = params.TIME|default(10)|int %} + {% set axis = params.AXIS|default("x")|string|lower %} - {% if AXIS not in ["x", "y", "a", "b"] %} + {% if axis not in ["x", "y", "a", "b"] %} { action_raise_error("AXIS selection invalid. Should be either x, y, a or b!") } {% endif %} {% if axis == "a" %} - {% set AXIS = "1,-1" %} + {% set axis = "1,-1" %} {% elif axis == "b" %} - {% set AXIS = "1,1" %} + {% set axis = "1,1" %} {% endif %} - TEST_RESONANCES OUTPUT=raw_data AXIS={AXIS} FREQ_START={FREQUENCY-1} FREQ_END={FREQUENCY+1} HZ_PER_SEC={1/(TIME/3)} + TEST_RESONANCES OUTPUT=raw_data AXIS={axis} FREQ_START={frequency-1} FREQ_END={frequency+1} HZ_PER_SEC={1/(time/3)} M400