Skip to content

Commit

Permalink
fixed typo in axis selection for EXCITATE_AXIS_AT_FREQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Félix Boisselier committed Nov 27, 2023
1 parent 5d54db0 commit 8e304a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions K-ShakeTune/IS_shaper_calibrate.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8e304a7

Please sign in to comment.