-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadxl_macros.cfg
More file actions
50 lines (40 loc) · 1.89 KB
/
Copy pathadxl_macros.cfg
File metadata and controls
50 lines (40 loc) · 1.89 KB
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
49
50
# From: https://www.reddit.com/r/klippers/comments/x8jnff/macro_for_automated_input_shaper_evaluation/
# HOME_IF_NEEDED MACRO from https://github.com/rootiest/zippy-klipper_config/blob/master/macros/LAZY_HOME.cfg
#########################################################################################################################
###inputshaper macros:
[gcode_macro ADXL_X]
description: test resonances in x direction / of the hotend
gcode:
M118 DO NOT TOUCH THE PRINTER UNTIL DONE!!!
CG28 #HOME_CHECK, or g28 if you dont have a macro to check if you orinter is homed
SHAPER_CALIBRATE AXIS=x
RUN_SHELL_COMMAND CMD=adxl_x
M118 Test done
SAVE_CONFIG
[gcode_macro ADXL_Y]
description: test resonances in y direction / of the heated bed
gcode:
M118 DO NOT TOUCH THE PRINTER UNTIL DONE!!!
CG28 # HOME_CHECK, or g28
SHAPER_CALIBRATE AXIS=y
RUN_SHELL_COMMAND CMD=adxl_y
M118 Test done
SAVE_CONFIG
#########################################################################################################################
###shell commands:
### create a file named: adxl_x.sh
#~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_x_*.csv -o ~/klipper_config/shaper_calibrate_x.png
### create a file named: adxl_y.sh
#~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_y_*.csv -o ~/klipper_config/shaper_calibrate_y.png
#########################################################################################################################
###shell commands to run in klipper:
[gcode_shell_command adxl_x]
command: sh /home/paul/printer_data/config/macro/shell_commands/adxl_x.sh
# edit: ´klipper_config/macro/shell_commands/´ to where your .sh file lays
timeout: 60.
verbose: True
[gcode_shell_command adxl_y]
command: sh /home/paul/printer_data/config/macro/shell_commands/adxl_y.sh
# edit: ´klipper_config/macro/shell_commands/´ to where your .sh file lays
timeout: 60.
verbose: True