Skip to content

Commit

Permalink
Compatibility between Printing Feature and Fast Infill
Browse files Browse the repository at this point in the history
  • Loading branch information
OXERY committed Nov 26, 2021
1 parent c21b63d commit 4bf5455
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@ gcode:
## acceleration percentage
{% set acc = 100 %}

## square corner velocity percentage
{% set scv = 100 %}

{% if t == "start" or t == "end" %}
{% set acc = 100 %}
{% elif t == "externalperimeter" %}
{% set acc = 50 %}
{% elif t == "internalinfill" %}
{% set scv = 200 %}
{% elif t == "topsolidinfill" %}
{% set acc = 50 %}
{% elif t == "skirt" %}
Expand All @@ -37,7 +32,7 @@ gcode:
{% set acc = 25 %}
{% endif %}

SET_VELOCITY_LIMIT ACCEL={(printer.configfile.settings.printer.max_accel/100)*acc|int} ACCEL_TO_DECEL={((printer.configfile.settings.printer.max_accel/100)*acc)/2|int} SQUARE_CORNER_VELOCITY={(printer.configfile.settings.printer.square_corner_velocity/100)*scv|int}
SET_VELOCITY_LIMIT ACCEL={(printer.configfile.settings.printer.max_accel/100)*acc|int} ACCEL_TO_DECEL={((printer.configfile.settings.printer.max_accel/100)*acc)/2|int}
{% endif %}

[gcode_macro PRINTING_FEATURE_ON]
Expand Down

0 comments on commit 4bf5455

Please sign in to comment.