Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preheat: improve target temperature threshold #4033

Merged
merged 3 commits into from
Mar 3, 2023

Conversation

gudnimg
Copy link
Collaborator

@gudnimg gudnimg commented Feb 19, 2023

Use 5°C threshold to be consistent with other parts of the firmware.

Relying on 95% of the target temperature creates
a dependency on the temperature. I don't see any other part of the firmware do this except the Preheat menu.

Material Set Target Current Threshold Proposed Threshold
PLA 215°C 204.25 °C 210°C
PETG 230°C 218.5 °C 225°C
ABS 255°C 242.25 °C 250°C
ASA 260°C 247 °C 255°C
PC 275°C 261.25 °C 270°C

My proposal is we instead use a constant
TEMP_HYSTERESIS = 5, which is consistent with
M109, and behavior when restoring print from RAM
and some of the MMU code (like unload function)

Change in memory:
Flash: -14 bytes
SRAM: 0 bytes

@gudnimg gudnimg requested a review from DRracer February 19, 2023 12:44
@gudnimg
Copy link
Collaborator Author

gudnimg commented Feb 19, 2023

Reason for me wanting this change is related to #4032, there is few second delay before the Full Screen message is rendered because the Preheat menu doesn't wait for the hotend to reach as high a temperature closer to the target.

Use 5°C threshold to be consistant with other parts
of the firmware.

Relying on 95% of the target temperature creates
a dependency on the temperature:

PLA: Target = 215°C, threshold = 10.75°C
PETG: Target = 230°C, threshold = 11.5°C
ABS: Target = 255°C, threshold  = 12.75°C
ASA: Target =260°C, threshold = 13.0°C
PC: Target = 275°C, threshold  = 13.75°C

My proposal is we instead use a constant
TEMP_HYSTERESIS = 5, which is consistent with
M109, and behavior when restoring print from RAM
and some of the MMU code (like unload function)

Change in memory:
Flash: +2 bytes
SRAM: 0 bytes
Let's drop the float comparison since it not needed

Change in memory:
Flash : -16 bytes
SRAM: 0 bytes
* M600 used 1°C threshold, which may increase the waiting time a bit
* Wizard used 3°C

Sync both to use TEMP_HYSTERESIS for consistancy

No change in memory footprint
@3d-gussner 3d-gussner added this to the FW 3.13.0-RC2 milestone Feb 24, 2023
@3d-gussner 3d-gussner merged commit 474d489 into prusa3d:MK3 Mar 3, 2023
@gudnimg gudnimg deleted the improve-preheat-target branch March 3, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants