-
Notifications
You must be signed in to change notification settings - Fork 0
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 LCD Matrix Plotting #4
Comments
I take that back.... I still need to scale up the 3x3 grid. |
Ok... Scaling issues.. Still trying to get this right.
|
I don't see the problem yet... |
Okay, I've somewhat made progress, but still not ready. 3x3 maps just fine.... maybe I need the box to be the same size as the 15x15 that also maps just fine. But, anything else between those are all jacked up. |
Okay, @Roxy-3D, I created a new branch to get it updated with the latest This is also the latest I have that works with 3x3 and 15x15 and removed most of the BS math that was only getting confusing and not helping much. I've updated the posts above with current link and snipplet. |
I'll load it up as soon as I can.... |
I think I found that I need to scale another number.
I will try in the morning with:
|
It seems like I'm at a stand still.... I need the Configuration.h files that cause the UBL Z lift problem and they are not posted yet. So... If you can have the 'current code' in your branch, I'll start debugging it tomorrow. Most likely, it will be easier to just do a re-write. But I'll start with what you have. |
I'm not pushing you... I'm just keeping you up to date. It is up to date as of this morning. |
I have some serial outputs happening to see what each variable is at any given point. |
OK! Great! If I don't have the needed Configuration.h files to duplicate the problem... I'll start trying to get the Postage Stamp map to work for all mesh dimensions in the morning.... |
x_pixel and y_pixel are the only ones that go out of range now. |
I'm starting to dip my toes into the water. Probably _lcd_ubl_plot_draw(x_plot, y_plot); should be in ultralcd.cpp instead of in a .h file. If you keep working on that function.... In a day or two, I'll have a different implementation of it. And you can take what ever ideas you like and incorporate them into your code. UPDATE: Oh! I think I see why you did that. That is the graphical version of the function. But the thing is, it is enough C++ code, it probably still belongs in ultralcd.cpp with conditional compilation flags around it. YET ANOTHER UPDATE: I've got some problems trying to do things with Map Type 3. I have trouble even selecting it because my encoder wheel multiplier is too large. So, I have to back up and re-tune some of my settings. If you are open to suggestions.... You can work to get the title for each map type to display as the user rotates the dial. Maybe 'Map Type' should be a whole menu page with line items and when you pick one, it does it???
And if you are willing to work together on this... I'll just focus on the 'Output to LCD Grid' version. The way you have 'Output to LCD Grid' setup looks nice. It would seem it isn't just a map option. It probably belongs in the map category also, but it would seem it should be a line item right under Activate and Deactivate. And maybe with a title 'Edit Mesh'. And in fact, you have it setup so when a click happens, the mesh point gets edited. So, if you have other things you don't mind working on... Let me see if I can get the display to work right for all screen dimensions and maybe you can just paste the code in??? |
Yeah.... I couldn't get the u8g.fuctions to work in ultralcd.cpp. After drowning in this for the last month or so, I was going to try and move it into ultralcd.cpp after getting it working. |
I have found that the scaling is not working because it's not linear. So, I'm trying to get everything to work individually and then incorporate a |
The K.I.S.S. method is what I reminding myself. lol |
I didn't see these comments until after I edited my post up above. |
I didn't post them until after your edit. lol |
So far, I have gotten 3x3 - 11x11 to work, the numbers are all over the place to make it work. Now, I can see why the maps were giving me such a fit. |
OK! I'm not sure how fast I'll make progress. Even with no interruptions (like more important things coming up) this is tricky code (as you know)!!!! But, it should be a fun piece of code to write! Who knows... I might be able to get it working for all mesh sizes within 3 or 4 days.... |
I have some "dirty" code that works for most of it now. And I want to clean it up by implementing the multimap function:
Unless you have a better way to handle data that looks more like an X,Y scatter chart. lol |
It would seem the simplest way would be to just enque a command for the .CSV and Topography Map to host. That would be just a "G29 T0" or a "G29 T1". I think the problem with the current LCD Map and that code up above is I think differently than that. So I'll have to work through both and see what I can do with it. |
My code enques G29 T3 for the lcd map. I have: |
G29 T2:
|
I'm not sure how to convert it to a short and descriptive name. But it produces the gcode so that you can later print it and get it re-absorbed into the printer. Pretty much, it is an 'off printer backup of your mesh' |
OOOOhhhh. |
I'll change the name to "Mesh Backup Output". |
OR "Mesh G-coded Output" |
Even "Off Printer Backup" would be good. And when people look at it and see the M421 commands... They will understand what is happening. |
K...done. |
Do you have time for one more quick edit? Verifying... |
K. done.. gotta go. |
See you! If it still fails... I'll fork Marlin and merge our stuff so I can fight Travis. |
Ok.. and you also still a collaborator staus, so you could fix the current PR. |
Just fix the branch we've been working in. |
The problem with doing that is I can't do a Pull Request. I can update your branch. But I can't make the changes go to MarlinFirmware/Marlin. So I did it the hard way. I forked Marlin... And I used ExamDiff Pro to map all of the changes in your branch over to the new fork. Then I fixed the Travis error. And it went the first time!!! It is 'Squashed and Merged' ! Now... As soon as I get in the mood... I'll start the 20x4 LCD Work. |
Well, the PR is there. |
Oh... Really? If I update your branch, the PR you made will automatically update? If so... That would have been much easier. I'm not very good at Git things. |
Yes, exactly. |
That's all I've been doing on these changes after the PR was made. |
I just realized something... We lost all the commit history by doing what I did. If that matters to you, it is easy for me to revert that merge and you just copy the couple of fixes I did to your branch and we do the same thing with your branch. |
Well, I had swash my branch, so the commit history is gone. Would you like me c |
Some people want their name in the commit history. That was my concern. But I can make it up to you. First.... if you make a branch for the 20x4 LCD work... It will be your branch that gets merged. (and you know I just give code away... I don't care about that stuff.) I'll send you my updates so you can commit them to the branch. And we can put your name in comments on all the UBL LCD stuff in the branch. Your contributions won't be forgotten. |
Actually... Because MarlinFirmware/Marlin had a pull request from your branch.... Your branch still exists. I can re-open the pull request... Revert my commit... And you fix the one little thing I did to make Travis happy... And I think there is a chance everything is fixed.... |
I know what you did... it's what I was going to do. |
I didn't have time. I saw that it failed after I got to work. |
Yes. That is the only reason I did what I did. I wanted things merged just in case the code base got frozen for the reorganization work. I KNOW you could have fixed it and probably faster than it took me to do it. |
You can leave it... you re-wrote the main code to it anyway. It was a big deal. You can take the credit. :) |
It also was your idea for the "postage stamp" also. |
OK... Seriously.... I like working with you... When I couldn't get the text to display... I cut and pasted your stuff into the tail end of what I did and magically everything was 'right'. |
Just leave it and maby work on the 20x4...and maybe a smoother exit routine? |
I really don't mind, Roxy... you were a HUGE help. |
Let's just move forward with it. |
OK... Good Night! (at least for me... You are stuck working....) |
I was going to try anf get the u8g stuff back into the dogm file. |
Yes.. g'night. |
What u8g stuff needs to be in the dogm.h file? I don't understand? Do you mean those #defines for screen positions? |
Well, normally all u8g library calls are in the |
I don't believe the #define's matter, due to them being global. Moving #define's would just be for organization, correct? |
@Roxy-3D, this is the 'new and improved' version... ready for improvement.
https://github.com/Tannoo/Marlin/tree/UBL_Mesh_Plotting
The text was updated successfully, but these errors were encountered: