fixed typo in axis selection for EXCITATE_AXIS_AT_FREQ
This commit is contained in:
@@ -94,19 +94,19 @@ gcode:
|
|||||||
[gcode_macro EXCITATE_AXIS_AT_FREQ]
|
[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
|
description: Maintain a specified input shaper excitation frequency for a period of time to diagnose and locate a source of vibration
|
||||||
gcode:
|
gcode:
|
||||||
{% set FREQUENCY = params.FREQUENCY|default(25)|int %}
|
{% set frequency = params.FREQUENCY|default(25)|int %}
|
||||||
{% set TIME = params.TIME|default(10)|int %}
|
{% set time = params.TIME|default(10)|int %}
|
||||||
{% set AXIS = params.AXIS|default("x")|string|lower %}
|
{% 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!") }
|
{ action_raise_error("AXIS selection invalid. Should be either x, y, a or b!") }
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if axis == "a" %}
|
{% if axis == "a" %}
|
||||||
{% set AXIS = "1,-1" %}
|
{% set axis = "1,-1" %}
|
||||||
{% elif axis == "b" %}
|
{% elif axis == "b" %}
|
||||||
{% set AXIS = "1,1" %}
|
{% set axis = "1,1" %}
|
||||||
{% endif %}
|
{% 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
|
M400
|
||||||
|
|||||||
Reference in New Issue
Block a user