Adjusted print_end to fix speed calculation error.

This commit is contained in:
Bassam Husain
2023-03-26 14:35:04 -04:00
parent aff79ff8de
commit 4528151bc1

View File

@@ -80,7 +80,7 @@ gcode:
gcode: gcode:
{% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %} {% set PRE_PURGE_PRIME_LENGTH=printer["gcode_macro _globals"].pre_purge_prime_length|default(1.40)|float %}
ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1 ADJUST_FILAMENT_SENSOR_STATUS ENABLE=1
G0 Y0 X0 F4000 ; go to tongue of print bed G0 Y0 X0 F4000 ; go to tongue of print bed
G1 Z0.4 F500.0 ; move bed to nozzle G1 Z0.4 F500.0 ; move bed to nozzle
G92 E0.0 ; reset extruder G92 E0.0 ; reset extruder
@@ -135,8 +135,8 @@ gcode:
# Set safe speeds # Set safe speeds
{% set zVelocity = printer.configfile.settings.printer.max_z_velocity|default(15)|int %} {% set zVelocity = printer.configfile.settings.printer.max_z_velocity|default(15)|int %}
{% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %} {% set maxVelocity = printer.configfile.settings.printer.max_velocity|default(200)|int %}
{% set zVelocityAdjusted = (0.85 * zVelocity)|int %} {% set zVelocityAdjusted = (0.85 * zVelocity * 60)|int %}
{% set maxVelocityAdjusted = (0.85 * maxVelocity)|int %} {% set maxVelocityAdjusted = (0.85 * maxVelocity * 60)|int %}
# Get Boundaries # Get Boundaries
{% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %} {% set max_x = printer.configfile.config["stepper_x"]["position_max"]|float %}