forked from K-Tett/Klipper-FastSQV
-
Notifications
You must be signed in to change notification settings - Fork 4
/
fast_infill.cfg
64 lines (54 loc) · 2.97 KB
/
fast_infill.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[gcode_macro _USE_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.solid_infill_sqv | default(printer.configfile.settings.printer.square_corner_velocity, true) %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_TOP_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.top_solid_infill_sqv | default(printer.configfile.settings.printer.square_corner_velocity, true) %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INTERNAL_PERIMETER_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.internal_perimeter_sqv | default(printer.configfile.settings.printer.square_corner_velocity, true) %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INTERNAL_BRIDGE_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.internal_bridge_sqv | default(printer.configfile.settings.printer.square_corner_velocity, true) %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set sqv = svv.infill_sqv | default(printer.configfile.settings.printer.square_corner_velocity, true) %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro _USE_NORMAL_SQV]
gcode:
{% set sqv = printer.configfile.settings.printer.square_corner_velocity %}
SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ sqv }
[gcode_macro SET_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=infill_sqv VALUE={val}
[gcode_macro SET_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.solid_infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=solid_infill_sqv VALUE={val}
[gcode_macro SET_TOP_SOLID_INFILL_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.top_solid_infill_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=top_solid_infill_sqv VALUE={val}
[gcode_macro SET_INTERNAL_PERIMETER_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.internal_perimeter_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=internal_perimeter_sqv VALUE={val}
[gcode_macro SET_INTERNAL_BRIDGE_SQV]
gcode:
{% set svv = printer.save_variables.variables %}
{% set val = params.SQV|default(svv.internal_bridge_sqv|default(printer.configfile.settings.printer.square_corner_velocity, true), true) | int %}
SAVE_VARIABLE VARIABLE=internal_bridge_sqv VALUE={val}