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

CURA-6410 buggy fan speed interpolation #2111

Merged
merged 8 commits into from
Jul 5, 2024

Conversation

wawanbreton
Copy link
Contributor

@wawanbreton wawanbreton commented Jul 2, 2024

The checking for the fan miminum layer time was based on the wrong variable.
I also reworked the fan speed command to better handle interpolated values.

CURA-6410

Fixes Ultimaker/Cura#5409

Previously we were basing the writing or non-writing of the fan speed
command based on the raw value comparison. This could result in some
commands not being written if the new value was too much similar to the
previous one. Now we check the actual output value and base the writing
on this.

CURA-6410
Copy link
Member

@rburema rburema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got 2 remarks. -- Most importantly, ideally, I'd really like the string-manipulation to be gone, but currently, I don't even understand how that would work correctly and keep the right numbers 😅

The (other) remark about DRY is just a preference and I can live with it if not easy to fix.

Lastly, I do think the 1st commit cleans things up considerably though -- I can at least understand what's going on now there 😄

src/gcodeExport.cpp Outdated Show resolved Hide resolved
src/gcodeExport.cpp Outdated Show resolved Hide resolved
rburema and others added 3 commits July 4, 2024 17:31
Some printers use 0.00-1.00 others use 0.0-256.0 as scale for their fans. This was (nearly) duplicated earlier in the PR.

done as part of CURA-6410
@HellAholic HellAholic merged commit ac9584b into main Jul 5, 2024
@HellAholic HellAholic deleted the CURA-6410_buggy_fan_speed_interpolation branch July 5, 2024 07:19
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.

Buggy fan speed interpolation
3 participants