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

Respect MANUAL_PROBE_START_Z in UBL #20160

Merged

Conversation

sjasonsmith
Copy link
Contributor

Description

PROBE_MANUALLY and UBL have a complex relationship. Enabling UBL implicitly disables PROBE_MANUALLY, because UBL has its own manual probing mechanism.

Unfortunately this also causes the MANUAL_PROBE_START_Z to be ignored, since it wasn't originally added to UBL.

This change modified UBL to use MANUAL_PROBE_START_Z, and falls back to Z_CLEARANCE_BETWEEN_PROBES if it is available.

Benefits

Allows users to reduce the amount of time they spend spinning their encoder wheels!

Configurations

The following configs are for use in the simulator. Real configs are available from the referenced issue.
Marlin.zip

Related Issues

#19795 - UBL with PROBE_MANUALLY doesn't lower to MANUAL_PROBE_START_Z and stays at Z_CLEARANCE_BETWEEN_PROBES

@sjasonsmith
Copy link
Contributor Author

@Roxy-3D, do have any reason to NOT want UBL to respect MANUAL_PROBE_START_Z if present?

@sjasonsmith sjasonsmith added the S: Don't Merge Work in progress or under discussion. label Nov 18, 2020
@sjasonsmith
Copy link
Contributor Author

I want to avoid merging this until I examing how it is related to #19804. It seems closely related to this, and maybe some additional adjustments are needed.

@thinkyhead thinkyhead merged commit 39305aa into MarlinFirmware:bugfix-2.0.x Nov 18, 2020
@sjasonsmith sjasonsmith removed the S: Don't Merge Work in progress or under discussion. label Nov 19, 2020
FhlostonParadise pushed a commit to FhlostonParadise/Marlin that referenced this pull request Nov 21, 2020
@sjasonsmith sjasonsmith deleted the PR/Bug19795_UBL_Manual branch November 23, 2020 09:24
Kannix2005 pushed a commit to Kannix2005/Marlin-1 that referenced this pull request Dec 7, 2020
vgadreau pushed a commit to vgadreau/Marlin that referenced this pull request Dec 9, 2020
tharts pushed a commit to tharts/Marlin that referenced this pull request Jan 6, 2021
dpreed pushed a commit to dpreed/Marlin_2.0.x that referenced this pull request Feb 5, 2021
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
chrisjenda pushed a commit to chrisjenda/Marlin that referenced this pull request Apr 8, 2021
chrisjenda pushed a commit to chrisjenda/Marlin that referenced this pull request Apr 11, 2021
@pinchies
Copy link
Contributor

pinchies commented Apr 13, 2021

Ironic that this fix for UBL, saving people their encoder wheels, for people using MBL it actually caused people to have to spin their encoder wheels more at every point! #facepalm #21239

@thinkyhead
Copy link
Member

Is it this which is having the unwanted effect?

#if !defined(MANUAL_PROBE_START_Z) && defined(Z_CLEARANCE_BETWEEN_PROBES)
   #define MANUAL_PROBE_START_Z Z_CLEARANCE_BETWEEN_PROBES
 #endif

And so, is it only problematic when MANUAL_PROBE_START_Z is not defined? The idea was to provide some kind of value based on the config that would be known to be safe. Maybe there is a smaller value supplied in the config which would make a better default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] UBL with PROBE_MANUALLY doesn't lower to MANUAL_PROBE_START_Z and stays at Z_CLEARANCE_BETWEEN_PROBES
3 participants