-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell-macros.cfg
50 lines (44 loc) · 2.13 KB
/
shell-macros.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[gcode_shell_command generate_shaper_graph_x]
command: /home/pi/mainsail_config/scripts/generate_shaper_graph_x.sh
timeout: 60.
verbose: True
[gcode_shell_command generate_shaper_graph_y]
command: /home/pi/mainsail_config/scripts/generate_shaper_graph_y.sh
timeout: 60.
verbose: True
[gcode_shell_command generate_belt_tension_graph]
command: /home/pi/mainsail_config/scripts/generate_belt_tension_graph.sh
timeout: 90.
verbose: True
[gcode_macro GENERATE_SHAPER_GRAPHS]
description: Genarates input shaper resonances graphs for analysis. Uses the AXIS parameter for if you only want to do one axis at a time, (eg. GENERATE_SHAPER_GRAPHS AXIS=X)
gcode:
{% if params.AXIS is defined %}
{% if params.AXIS|lower == 'x' %}
MAYBE_HOME
TEST_RESONANCES AXIS=X
RUN_SHELL_COMMAND CMD=generate_shaper_graph_x
RESPOND MSG="Input shaper graph generated for the X axis. You'll find it in the input_shaper folder in the machine tab!"
{% elif params.AXIS|lower == 'y' %}
MAYBE_HOME
TEST_RESONANCES AXIS=Y
RUN_SHELL_COMMAND CMD=generate_shaper_graph_y
RESPOND MSG="Input shaper graph generated for the Y axis. You'll find it in the input_shaper folder in the machine tab!"
{% else %}
{action_raise_error("Unknown axis specified. Expected X or Y.")}
{% endif %}
{% else %}
MAYBE_HOME
TEST_RESONANCES AXIS=X
TEST_RESONANCES AXIS=Y
RUN_SHELL_COMMAND CMD=generate_shaper_graph_x
RUN_SHELL_COMMAND CMD=generate_shaper_graph_y
RESPOND MSG="Input shaper graphs generated for X and Y. You'll find them in the input_shaper folder in the machine tab!"
{% endif %}
[gcode_macro MEASURE_COREXY_BELT_TENSION]
description: Generates resonance graph used to ensure belts are equally tensioned.
gcode:
TEST_RESONANCES AXIS=1,1 OUTPUT=raw_data NAME=belt-tension-upper
TEST_RESONANCES AXIS=1,-1 OUTPUT=raw_data NAME=belt-tension-lower
RUN_SHELL_COMMAND CMD=generate_belt_tension_graph
RESPOND MSG="Belt tension graphs generated. You'll find them in the input_shaper folder in the machine tab!"