-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
LCD Bed Tramming Probe Loop Fix #26962
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,13 +36,6 @@ | |
#include "../../feature/bedlevel/bedlevel.h" | ||
#endif | ||
|
||
#ifndef BED_TRAMMING_Z_HOP | ||
#define BED_TRAMMING_Z_HOP 4.0 | ||
#endif | ||
#ifndef BED_TRAMMING_HEIGHT | ||
#define BED_TRAMMING_HEIGHT 0.0 | ||
#endif | ||
|
||
#if ALL(HAS_STOWABLE_PROBE, BED_TRAMMING_USE_PROBE) && DISABLED(BLTOUCH) | ||
#define NEEDS_PROBE_DEPLOY 1 | ||
#endif | ||
|
@@ -151,7 +144,7 @@ static void _lcd_goto_next_corner() { | |
} | ||
} | ||
|
||
float z = BED_TRAMMING_Z_HOP; | ||
float z = current_position.z + (BED_TRAMMING_Z_HOP); | ||
#if ALL(BED_TRAMMING_USE_PROBE, BLTOUCH) | ||
z += bltouch.z_extra_clearance(); | ||
#endif | ||
|
@@ -235,7 +228,7 @@ static void _lcd_goto_next_corner() { | |
} | ||
|
||
bool _lcd_bed_tramming_probe(const bool verify=false) { | ||
if (verify) line_to_z(BED_TRAMMING_Z_HOP); // do clearance if needed | ||
if (verify) line_to_z(current_position.z + (BED_TRAMMING_Z_HOP)); // do clearance if needed | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Code like this will need to be tested since it may now need special handling for the first point. We don't want to just raise over the current height before we've moved down to the bed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upon initial review this change seems to be safe and won't adversely affect behavior. |
||
TERN_(BLTOUCH, if (!bltouch.high_speed_mode) bltouch.deploy()); // Deploy in LOW SPEED MODE on every probe action | ||
do_blocking_move_to_z(last_z - BED_TRAMMING_PROBE_TOLERANCE, MMM_TO_MMS(Z_PROBE_FEEDRATE_SLOW)); // Move down to lower tolerance | ||
if (TEST(endstops.trigger_state(), Z_MIN_PROBE)) { // check if probe triggered | ||
|
@@ -253,7 +246,7 @@ static void _lcd_goto_next_corner() { | |
|
||
// Raise the probe after the last point to give clearance for stow | ||
if (TERN0(NEEDS_PROBE_DEPLOY, good_points == nr_edge_points - 1)) | ||
line_to_z(BED_TRAMMING_Z_HOP); | ||
do_z_clearance(BED_TRAMMING_Z_HOP); | ||
|
||
return true; // probe triggered | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: These manual move methods are not ideal for this usage since they move only one axis at a time. The move to and from the center point ends up taking two moves instead of one.
ExtUI
should be extended with a method to move XY together (or this code should just use themotion.*
functions directly).