Skip to content

Commit

Permalink
Prime line params (#237)
Browse files Browse the repository at this point in the history
Prime line parameters for position and direction added
  • Loading branch information
Surion79 authored Jun 17, 2023
1 parent b2d57a2 commit cf101ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macros/helpers/prime_line.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ gcode:

{% set line_height = 0.6 %}

# some more Macro parameters after retrieving defaults
{% set prime_line_x = params.START_X|default(prime_line_x)|float %}
{% set prime_line_y = params.START_Y|default(prime_line_y)|float %}
{% set prime_line_direction = params.LINE_DIRECTION|default(printer["gcode_macro _USER_VARIABLES"].prime_line_direction)|string|upper %}

# We first compute the width of the prime line
{% set purge_volume = prime_line_purge_distance * 3.14159 * (filament_diameter / 2)**2 %}
{% set line_width = purge_volume / (line_height * prime_line_length) %}
Expand Down

0 comments on commit cf101ca

Please sign in to comment.