MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.14k stars 19.2k forks source link

[BUG] Probe temperature compensation does not apply to Z Wizard, UBL, etc. #23047

Closed tombrazier closed 2 years ago

tombrazier commented 2 years ago

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

Probe temperature compensation has effect in exactly one place: in G29 for AUTO_BED_LEVELING_LINEAR and AUTO_BED_LEVELING_BILINEAR.

I propose to submit a PR moving the compensation code into probe.probe_at_point() with an option disable PTC in a few specific instances.

The following would benefit from this:

In other cases it wouldn't make any difference one way or the other:

In two cases, it might make sense for the user to specify whether to apply PTC:

Finally, G76 - PTC calibration needs to run without PTC being applied.

Bug Timeline

It has always been there.

Expected behavior

I expect UBL, for example, to apply PTC. And I expect the Z Probe Wizard to give me a correct value.

Actual behavior

They don't.

Steps to Reproduce

Enable PROBE_OFFSET_WIZARD. Enable and calibrate PTC. Use the Z Wizard at different temperatures: the result should be pretty much the same because of PTC but they aren't.

Version of Marlin Firmware

Latest bugfix branch

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

No response

Host Software

No response

Additional information & file uploads

configs.zip

tombrazier commented 2 years ago

So if G30 and M48 need an option to enable/disable PTC when probing, any suggestions for a parameter letter? P is already taken for M48. How about C which can take a 0 or 1 to disable or enable PTC respectively and defaults to 1?

tombrazier commented 2 years ago

Just in case anyone wonders, I have not forgotten this. I am just getting inconsistent results in testing which I think is related to my machine's hardware. Working on it slowly.

thisiskeithb commented 2 years ago

23764 has been merged.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.