-
-
Notifications
You must be signed in to change notification settings - Fork 19.5k
UBL cleanup, optimization #6152
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
UBL cleanup, optimization #6152
Conversation
e029bf0
to
9090eac
Compare
9090eac
to
52232f3
Compare
One incremental clean up we might want to consider adding to this.... I wonder if we should delete all the #if ENABLED(ULTRA_LCD) code in UBL. The original thinking was that UBL would quickly be made to not need an LCD Panel. But that coding practice was not followed consistently and probably should just be removed until we are ready to do it for real. And in fact... If we were going to have conditional code, we don't want it conditional on ULTRA_LCD any way. It should be changed to be sensitive to any LCD Panel display. Your thoughts??? |
52232f3
to
08fefa6
Compare
It's true that any code relating to button-clicks should be conditional on If UBL is completely dependent on having an LCD, and that's not going to change, then it makes sense to just leave out these checks. If the long-term plan is to make UBL work without needing an LCD then I suggest integrating it into the existing monolithic ABL version of We can do that gradually and develop a more generalized class for bed leveling that defines all the standard hooks. The |
08fefa6
to
d98f902
Compare
OK... I'll start by reviewing the existing code, both UBL and the various places where 'wait_for_user' is queried. |
For interfacing with the LCD, check out the |
Will do... That was on my list for tomorrow morning.... |
For the preferred method going forward, see the code in In short, any bed leveling implementation will need to:
Note in the |
d98f902
to
10b8f34
Compare
So... Tomorrow when I start looking at this... And M600... I should probably do a 'Sync' so I have all of these changes in my local copy, right? |
edd0464
to
2e2d038
Compare
5eb5ad3
to
6594e8e
Compare
These changes are not in Before I merge this, you should test the code from the branch https://github.com/thinkyhead/Marlin/tree/rc_cleanup_6150_etc and make sure I haven't broken anything by mistake. Git tip o' the day…To make a copy of this branch in your fork, ready to edit:
(
…and to delete the branch, both local and in your upstream ('origin')…
To see all your branches, including remotes, with details, you can use:
|
b6a5542
to
d487baf
Compare
Yes please. I have small project that brings all the u8g2 supported screens to Marlin for those who just want an information screen and have no need for a menu system and have no encoder wheel in the first place. Which might just be me... |
826cfbc
to
1b75312
Compare
An extension to ABL is in the works also. If someone does happen to have an LCD (and no probe), then the "Level Bed" menu item can still be enabled with |
What commands do I type into Git-Shell to get rid of beckdac/Marlin but not hurt the real repository up on GitHub? There does not seem to be any way to remove it from GitHub-Desktop. I've saved your Tip's of the Day to a Word file so I will have easy access to them in the future. I'll see if I can get your branch onto my local machine and bring it up with UBL enabled. |
I pulled down a .ZIP file... I dropped my Configuration.h and Configuration_adv.h files in place. Everything compiled and flashed without trauma. UBL appears to be alive and well. I can do an automatic probe with G29 P1. I can edit mesh points with G29 P4. And the G26 Mesh Validation Pattern prints. All of those previously mentioned functions can be aborted with a 'Press and Hold'. The only thing I noticed that is messed up is this: You lost the \n on both of the header lines. After the (9,9) there should be a new line. And after the (202,179) there should be a new line. It is possible we should have an extra space in that 12 space function to get the columns to line up better. If you can get the new lines back in there... It may be time to merge this Pull Request before it gets any bigger. >>> G29 M
SENDING:G29 M
ubl_eeprom_start=544
Bed Topography Report:
(0,9) (9,9)(1,1) (202,179) 0.420 0.440 0.390 0.285 0.300 0.005 -0.005 -0.095 -0.290 -0.400
0.350 0.165 0.290 0.240 0.135 0.025 0.020 -0.140 -0.305 -0.410
0.165 0.080 0.125 0.175 0.045 0.070 -0.025 -0.085 -0.255 -0.310
0.080 0.095 0.190 0.135 0.090 0.390 0.010 -0.050 -0.175 -0.220
0.065 -0.095 0.015 [ 0.000] 0.015 0.010 0.025 -0.070 -0.080 -0.180
-0.140 -0.130 -0.115 -0.125 -0.080 -0.025 -0.020 -0.050 -0.055 -0.140
-0.430 -0.395 -0.160 -0.155 -0.025 -0.105 -0.125 -0.050 -0.105 -0.055
-0.695 -0.420 -0.355 -0.170 -0.235 -0.190 -0.165 -0.135 -0.125 -0.095
-0.860 -0.740 -0.605 -0.395 -0.320 -0.260 -0.225 -0.160 -0.105 -0.085
-0.935 -0.905 -0.710 -0.615 -0.400 -0.350 -0.310 -0.155 -0.050 -0.165
(1,1) (202,1)
(0,0) (9,0) I've started a print just to make sure it still prints!!! :) |
|
1b75312
to
1ad077d
Compare
1ad077d
to
9217e4b
Compare
The columns with the numbers in them are 10 characters long, so I've changed the function to print 10 spaces. |
Followup to #6150, aec85ad, 9a1949a, 9d3ac66, 171904b, d8724bb
Concise diff