Guest User

Untitled

a guest
Sep 7th, 2022
4,043
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. #########################################################################################################################
  2. ###inputshaper macros:
  3.  
  4. [gcode_macro ADXL_X]
  5. description: test resonances in x direction / of the hotend
  6. gcode:
  7. M118 DO NOT TOUCH THE PRINTER UNTIL DONE!!!
  8. home_check #or g28 if you dont have a macro to check if you orinter is homed
  9. SHAPER_CALIBRATE AXIS=x
  10. RUN_SHELL_COMMAND CMD=adxl_x
  11. M118 Test done
  12. SAVE_CONFIG
  13.  
  14. [gcode_macro ADXL_Y]
  15. description: test resonances in y direction / of the heated bed
  16. gcode:
  17. M118 DO NOT TOUCH THE PRINTER UNTIL DONE!!!
  18. home_check #or g28
  19. SHAPER_CALIBRATE AXIS=y
  20. RUN_SHELL_COMMAND CMD=adxl_y
  21. M118 Test done
  22. SAVE_CONFIG
  23.  
  24. #########################################################################################################################
  25. ###shell commands:
  26.  
  27. ### create a file named: adxl_x.sh
  28. ~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_x_*.csv -o ~/klipper_config/shaper_calibrate_x.png
  29.  
  30. ### create a file named: adxl_y.sh
  31. ~/klipper/scripts/calibrate_shaper.py /tmp/calibration_data_y_*.csv -o ~/klipper_config/shaper_calibrate_y.png
  32.  
  33. #########################################################################################################################
  34. ###shell commands to run in klipper:
  35.  
  36. [gcode_shell_command adxl_x]
  37. command: sh /home/pi/klipper_config/macro/shell_commands/adxl_x.sh
  38. # edit: ´klipper_config/macro/shell_commands/´ to where your .sh file lays
  39.  
  40. timeout: 60.
  41. verbose: True
  42.  
  43. [gcode_shell_command adxl_y]
  44. command: sh /home/pi/klipper_config/macro/shell_commands/adxl_y.sh
  45. # edit: ´klipper_config/macro/shell_commands/´ to where your .sh file lays
  46. timeout: 60.
  47. verbose: True
  48.  
  49.  
  50.  
Advertisement
Add Comment
Please, Sign In to add comment