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

Increase Z-Offset Resolution in the Level Screen to 0.01 #15

Closed
ritchiedc opened this issue Oct 11, 2020 · 1 comment
Closed

Increase Z-Offset Resolution in the Level Screen to 0.01 #15

ritchiedc opened this issue Oct 11, 2020 · 1 comment

Comments

@ritchiedc
Copy link

ritchiedc commented Oct 11, 2020

Description

Finer control over the Z-Offset is needed. Increasing the resolution from 0.05 to 0.01 would be helpful. I noticed that this has already been done in the screen firmware for the Print->Tuning screen.

Steps to Reproduce

Additional Information

File touch_lcd.cpp needs to be changed in 6 places between lines 978 and 995, reducing 0.05 to 0.01. See attached file
touch_lcd.zip

Edit: There is a problem with float precision and a single press up or down does not always result in a displayed 0.01mm difference. This can be compensated for by:

probe.offset.z = roundf(probe.offset.z*100.0 + 1.0)/100.0; // increment

and

probe.offset.z = roundf(probe.offset.z*100.0 - 1.0)/100.0; // decrement

@ritchiedc ritchiedc changed the title Reduce Z-Offset Resolution in the Level Screen to 0.01 Increase Z-Offset Resolution in the Level Screen to 0.01 Oct 11, 2020
@formless63
Copy link

Nice - this would definitely be an improvement.

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

No branches or pull requests

2 participants