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

Mesh Editor + improvements + bugfix (replace PR #1154) #1188

Merged
merged 17 commits into from
Oct 28, 2020

Conversation

digant73
Copy link
Contributor

@digant73 digant73 commented Oct 19, 2020

NEW FEATURES:

  1. MBL
  2. UBL
  3. ABL Bilinear

BUG FIXES:

IMPROVEMENTS:

  • Added new API ProbeHeightControl for Z height fine tuning. The API is used by all the menus providing Z height tuning (e.g. in Probe Offset, MBL, Mesh Editor...)
  • memory cleanup and various optimization (e.g. in Babystep, ProbeOffset, ABL, PID...)

PR STATE:

  • FINAL: Ready to be merged with BTT main branch

IMG_20201024_165600
IMG_20201024_170514

@digant73 digant73 changed the title Mesh Editor + improvements + bugfix Mesh Editor + improvements + bugfix (replace PR #1154) Oct 19, 2020
@ETE-Design
Copy link

Just tryed to use your PR... But TFT Freeze at "Updating Configuration" Total keywords found: 107... The bar run as it should and then it stops...

@digant73
Copy link
Contributor Author

digant73 commented Oct 21, 2020

Hello digant73.

Could you please close #777 with your PR, thank you.

#777 is reported now as an implemented feature

@traffic-light
Copy link
Contributor

traffic-light commented Oct 22, 2020

Hello digant73.
Could you please close #777 with your PR, thank you.

#777 is reported now as an implemented feature

You need to add close, closes, closed, fix, fixes, fixed, resolve, resolves or resolved in front of the issue to automatically close the issue.

Example: resolves #777

I also got the problem that updating halts after the last keyword... Like @ETE-Design mentioned

@digant73
Copy link
Contributor Author

digant73 commented Oct 22, 2020

@traffic-light ok, done. They are now reported with prefix "resolves"
For the freeze during the configuration update I already asked to the author of flashStore.c to confirm we can set PARA_SIZE to 768 in flashStore.h. The freeze is due to a buffer overflow in flashStore.c caused by the addition of new paramters in config.ini. See the thread in #1167

@DominikKnapo
Copy link

Hi @digant73, I have compiled your version of code for my Ender 3 Pro running merlin 2, skr mini e3 v2, TFT35 E3.
As I was having issues with Manual Mesh Bed Leveling on the master brench and wanted to try the editor :-).
I did not have mash yet stored in EEPROM as per the mentioned issue. So I have stared the leveling.

Unfortunetly I was not able on any point go below 0.00. Once I have set all points to 0.00, I wa able to edit it in your new editor.

I tried restarting few times but with no luck.

Can you please take a look? Thank You. Maybe it's just me :-).

Nice work on the editor tho!

DK

@digant73
Copy link
Contributor Author

Hi @digant73, I have compiled your version of code for my Ender 3 Pro running merlin 2, skr mini e3 v2, TFT35 E3.
As I was having issues with Manual Mesh Bed Leveling on the master brench and wanted to try the editor :-).
I did not have mash yet stored in EEPROM as per the mentioned issue. So I have stared the leveling.

Unfortunetly I was not able on any point go below 0.00. Once I have set all points to 0.00, I wa able to edit it in your new editor.

I tried restarting few times but with no luck.

Can you please take a look? Thank You. Maybe it's just me :-).

Nice work on the editor tho!

DK

when you start MBL you should see a notification about software endstops disabled. Did you see that notification? It seems to me that your Marlin FW doesn't allow to disable software endstops, so you cannot set negative Z values

@DominikKnapo
Copy link

Hi @digant73, I have compiled your version of code for my Ender 3 Pro running merlin 2, skr mini e3 v2, TFT35 E3.
As I was having issues with Manual Mesh Bed Leveling on the master brench and wanted to try the editor :-).
I did not have mash yet stored in EEPROM as per the mentioned issue. So I have stared the leveling.
Unfortunetly I was not able on any point go below 0.00. Once I have set all points to 0.00, I wa able to edit it in your new editor.
I tried restarting few times but with no luck.
Can you please take a look? Thank You. Maybe it's just me :-).
Nice work on the editor tho!
DK

when you start MBL you should see a notification about software endstops disabled. Did you see that notification? It seems to me that your Marlin FW doesn't allow to disable software endstops, so you cannot set negative Z values

Thank you for your reply.

I do not see the notification, but I'm able to use commands M211 S0/S1, which if I'm not mistaken should disable/enable the software endstops, I can confirm that I was able to switch them ON/OFF.

Is there maybe something I'm missing?

DK

@digant73
Copy link
Contributor Author

@DominikKnapo No, it's correct. With Z offset menu are you able to move the nozzle to negative values? The same API is used by Z offset and MBL. However I will check it this night

@DominikKnapo
Copy link

DominikKnapo commented Oct 23, 2020

@DominikKnapo No, it's correct. With Z offset menu are you able to move the nozzle to negative values? The same API is used by Z offset and MBL. However I will check it this night

The Z offset menu is not working for me properly, wrong command M851, but I guess that's a different issue. When I get into the menu I can see the notification about disabling software endstops.

I have also tried manually disabling the software endstops and running manual mesh bed leveling, this was working for me.

Best regards,

DK

@digant73
Copy link
Contributor Author

digant73 commented Oct 23, 2020

@DominikKnapo No, it's correct. With Z offset menu are you able to move the nozzle to negative values? The same API is used by Z offset and MBL. However I will check it this night

The Z offset menu is not working for me properly, wrong command M851, but I guess that's a different issue. When I get into the menu I can see the notification about disabling software endstops.

I have also tried manually disabling the software endstops and running manual mesh bed leveling, this was working for me.

Best regards,

DK

ok, it seems your Marlin FW doesn't automatically disable software endstops when MBL process is started. I restored also for MBL the software endstops disabling. Now it should work also for your Marlin FW. Please, try with the new version and let me know it works properly.
Which version of Marlin FW are you using? At least until version 2.0.6.1 enstops were disabled automatically during MBL

@Guilouz
Copy link
Contributor

Guilouz commented Oct 23, 2020

Just try you PR, when we launch mesh edit, notification popup for software endstop is cutted vertically at the top of the screen.

And what do you think about that for the arrows ?

IMG_2125 - copie

@digant73
Copy link
Contributor Author

digant73 commented Oct 24, 2020

@Guilouz For the notification it's not a problem. I mean, there is an overlap (it's not a bug I can fix in my code) only when the custom mesh editor menu is displayed the first time. After that all the notifications are displayed correctly and then the mesh editor menu is redrawn correctly.
For the arrows, yes they are the solution I also preferred but I didn't found the code (in the pre defined codes) for the up and down arrows. Which values did you use, so I will apply those in the PR?

@Guilouz
Copy link
Contributor

Guilouz commented Oct 24, 2020

@Guilouz For the notification it's not a problem. I mean, there is an overlap (it's not a bug I can fix in my code) only when the custom mesh editor menu is displayed the first time. After that all the notifications are displayed correctly and then the mesh editor menu is redrawn correctly.
For the arrows, yes they are the solution I also preferred but I didn't found the code (in the pre defined codes) for the up and down arrows. Which values did you use, so I will apply those in the PR?

I use this :

const char *const meshKeyString[MESH_KEY_NUM] = {
"", // SAVE
"\u0894", // OK
"\u08A5", // RESET
"", // HOME
"", // EDIT
"˄", // UP
"˂", // PREV
"˃", // NEXT
"˅", // DOWN
};

@Mactastic1-5
Copy link

Does the microSD card work for you?

@digant73
Copy link
Contributor Author

@stellarspace yes it perfectly works. try to reformat the sd card

@DominikKnapo
Copy link

@DominikKnapo No, it's correct. With Z offset menu are you able to move the nozzle to negative values? The same API is used by Z offset and MBL. However I will check it this night

The Z offset menu is not working for me properly, wrong command M851, but I guess that's a different issue. When I get into the menu I can see the notification about disabling software endstops.
I have also tried manually disabling the software endstops and running manual mesh bed leveling, this was working for me.
Best regards,
DK

ok, it seems your Marlin FW doesn't automatically disable software endstops when MBL process is started. I restored also for MBL the software endstops disabling. Now it should work also for your Marlin FW. Please, try with the new version and let me know it works properly.
Which version of Marlin FW are you using? At least until version 2.0.6.1 enstops were disabled automatically during MBL

Hi, @digant73 sorry for late response.
I'm using latest marlin firmware. It now seems that it is working.
Thank you so much!

DK

@oldman4U
Copy link
Contributor

oldman4U commented Oct 27, 2020 via email

@digant73
Copy link
Contributor Author

@oldman4U I think that from Marlin 2.0.7.x they changed some specification for MBL. Software endstops must be now manually disabled before performing MBL process. Until 2.0.6.1 MBL didn't require to manually disable software endstops (and for me it had more sense). In Marlin 2.0.7.2 a lot of changes were made compared to 2.0.6.1

@oldman4U
Copy link
Contributor

oldman4U commented Oct 27, 2020 via email

@digant73
Copy link
Contributor Author

digant73 commented Oct 27, 2020

@oldman4U I would say it is not needed. I simply disable software endstops also for MBL (not only for Z probe and Mesh editor). With "manually disabled" I meant I provided the instruction to disable the software endstops, not that the user must be aware of that and must perform that by himself.
With that addition (always disable software endstops before MBL process), MBL is compliant to all Marlin versions. Already tested and working (as also reported by Dominik)

@oldman4U
Copy link
Contributor

Perfect!

Thank you

bigtreetech and others added 3 commits October 28, 2020 14:15
…EETECH-TouchScreenFirmware into bugfix-2020-10-19

# Conflicts:
#	Copy to SD Card root directory to update - Unified Menu Material theme/Language Packs/language_it.ini
#	Copy to SD Card root directory to update/Language Packs/language_it.ini
#	TFT/src/User/Language Packs/language_it.ini
@bigtreetech bigtreetech merged commit df413fc into bigtreetech:master Oct 28, 2020
Manu512 pushed a commit to Manu512/BIGTREETECH-TouchScreenFirmware that referenced this pull request Nov 3, 2020
…gtreetech#1188)

* minor fix for a bug causing a freeze during configuration update

* fixed bug on MBL menu for some Marlin FW not automatically disabling software endstops during MBL process

* updated UP, DOWN, LEFT and RIGHT symbols
@digant73 digant73 deleted the bugfix-2020-10-19 branch May 31, 2021 14:11
jeffeb3 pushed a commit to V1EngineeringInc/BIGTREETECH-TouchScreenFirmware that referenced this pull request Nov 10, 2021
…gtreetech#1188)

* minor fix for a bug causing a freeze during configuration update

* fixed bug on MBL menu for some Marlin FW not automatically disabling software endstops during MBL process

* updated UP, DOWN, LEFT and RIGHT symbols
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants