Assisted Tramming improvements (#20298)
This commit is contained in:
@ -365,8 +365,6 @@ void menu_motion() {
|
||||
//
|
||||
#if ENABLED(ASSISTED_TRAMMING_WIZARD)
|
||||
SUBMENU(MSG_TRAMMING_WIZARD, goto_tramming_wizard);
|
||||
#elif ENABLED(ASSISTED_TRAMMING_MENU_ITEM)
|
||||
GCODES_ITEM(MSG_ASSISTED_TRAMMING, PSTR("G35"));
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -42,24 +42,18 @@
|
||||
float z_measured[G35_PROBE_COUNT] = { 0 };
|
||||
static uint8_t tram_index = 0;
|
||||
|
||||
bool probe_single_point() {
|
||||
static bool probe_single_point() {
|
||||
do_blocking_move_to_z(TERN(BLTOUCH, Z_CLEARANCE_DEPLOY_PROBE, Z_CLEARANCE_BETWEEN_PROBES));
|
||||
// Stow after each point with BLTouch "HIGH SPEED" mode for push-pin safety
|
||||
const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[tram_index], TERN(BLTOUCH_HS_MODE, PROBE_PT_STOW, PROBE_PT_RAISE), 0, true);
|
||||
DEBUG_ECHOLNPAIR("probe_single_point: ", z_probed_height, "mm");
|
||||
z_measured[tram_index] = z_probed_height;
|
||||
|
||||
#ifdef ASSISTED_TRAMMING_WAIT_POSITION
|
||||
// Move XY to safe position
|
||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Moving away");
|
||||
const xyz_pos_t wait_pos = ASSISTED_TRAMMING_WAIT_POSITION;
|
||||
do_blocking_move_to(wait_pos, XY_PROBE_FEEDRATE_MM_S);
|
||||
#endif
|
||||
move_to_tramming_wait_pos();
|
||||
|
||||
return !isnan(z_probed_height);
|
||||
}
|
||||
|
||||
void _menu_single_probe(const uint8_t point) {
|
||||
static void _menu_single_probe(const uint8_t point) {
|
||||
tram_index = point;
|
||||
DEBUG_ECHOLNPAIR("Screen: single probe screen Arg:", point);
|
||||
START_MENU();
|
||||
@ -70,7 +64,7 @@ void _menu_single_probe(const uint8_t point) {
|
||||
END_MENU();
|
||||
}
|
||||
|
||||
void tramming_wizard_menu() {
|
||||
static void tramming_wizard_menu() {
|
||||
DEBUG_ECHOLNPAIR("Screen: tramming_wizard_menu");
|
||||
START_MENU();
|
||||
STATIC_ITEM(MSG_SELECT_ORIGIN);
|
||||
@ -91,7 +85,6 @@ void goto_tramming_wizard() {
|
||||
DEBUG_ECHOLNPAIR("Screen: goto_tramming_wizard", 1);
|
||||
tram_index = 0;
|
||||
ui.defer_status_screen();
|
||||
//probe_single_point(); // Probe first point to get differences
|
||||
|
||||
// Inject G28, wait for homing to complete,
|
||||
set_all_unhomed();
|
||||
|
Reference in New Issue
Block a user