Skip to content

Comments

[1.1.x] Fix G29 Z position after bilinear ABL with fade height#17174

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
interstellarmisfit:PR-bugfix-1.1.x-fadeheight
Mar 15, 2020
Merged

[1.1.x] Fix G29 Z position after bilinear ABL with fade height#17174
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-1.1.xfrom
interstellarmisfit:PR-bugfix-1.1.x-fadeheight

Conversation

@interstellarmisfit
Copy link
Contributor

Description

After doing a G29 bed leveling using bilinear ABL with fade height enabled and a non-zero value the current Z position is incorrect. This causes inconsistent bed leveling results.

The bilinear_z_offset is subtracted from the current Z position at the end of G29. It is expected that it will be added back in planner.apply_leveling. However the fade_scaling_factor is not taken into consideration for the subtraction in G29. If fade height is a non-zero value the resulting Z position will be incorrect.

This change takes the fade_scaling_factor into account when subtracting the bilinear offset in G29.

I have tested the change on my Ender 3 with a BLTouch under different scenarios and it fixes the issue.

Benefits

Fixes the incorrect Z position after bilinear ABL when using fade height.

Related Issues

Fixes bug as described in issue #17166.

interstellarmisfit and others added 2 commits March 15, 2020 13:59
Change to G29 code in marlin_main.cpp. Fixes issue where Z position is incorrect after bilinear ABL with fade height enabled. Tested on Ender 3 with BLTouch.
@thinkyhead thinkyhead merged this pull request into MarlinFirmware:bugfix-1.1.x Mar 15, 2020
@thinkyhead
Copy link
Member

Good catch, thanks!

@thinkyhead thinkyhead changed the title Fix G29 Z position after bilinear ABL with fade height [1.1.x] Fix G29 Z position after bilinear ABL with fade height Mar 15, 2020
@interstellarmisfit
Copy link
Contributor Author

Thanks! Glad I could help!

RepairSyl added a commit to RepairSyl/Marlin that referenced this pull request Mar 17, 2020
Fix Z position after ABL bilinear G29 with fade (MarlinFirmware#17174)
TiagoJustino added a commit to TiagoJustino/Marlin that referenced this pull request Apr 2, 2020
* MarlinFirmware/1.1.x: (133 commits)
  Fix Z position after ABL bilinear G29 with fade (MarlinFirmware#17174)
  Change DUMMY_PID_VALUE to NAN (MarlinFirmware#17079)
  Disable integration testing
  Enable DUAL_NOZZLE_DUPLICATION_MODE (MarlinFirmware#16436)
  [1.1.x] Polish language UTF8 (MarlinFirmware#16141)
  Links for the "New Issue" page
  Add Korean language (MarlinFirmware#15918)
  [1.1.x] MKS_GEN_L_V2 controller (MarlinFirmware#15805)
  Update bug_report.md
  [1.1.x] Fix autostart w/out SD_DETECT_PIN (MarlinFirmware#15667)
  [1.1.x] RAMPS + Viki1 LCD compatibility (MarlinFirmware#15736)
  [1.1.x] Fix compiler warning (MarlinFirmware#15642)
  [1.1.x] Fix for G2/G3 rounding error (MarlinFirmware#15546)
  Let MINIPANEL use SW SPI if needed (MarlinFirmware#15246)
  Fix BLTouch debugging (MarlinFirmware#15232)
  Fix Creality bed thermistor
  Fix PT-BR strings (MarlinFirmware#15023)
  Fix #else extra tokens (MarlinFirmware#15013)
  [1.1.x] Autobuild formatting (MarlinFirmware#14858)
  [1.1.x] BLTouch 3.0 - 3.1 (MarlinFirmware#14839)
  ...
maz3max pushed a commit to maz3max/Marlin that referenced this pull request Aug 24, 2021
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.

2 participants