Jason Smith
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
4 deletions
-
Marlin/src/feature/bedlevel/ubl/ubl.h
-
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
-
Marlin/src/inc/Conditionals_post.h
|
@ -62,7 +62,7 @@ class unified_bed_leveling { |
|
|
#if IS_NEWPANEL |
|
|
#if IS_NEWPANEL |
|
|
static void move_z_with_encoder(const float &multiplier); |
|
|
static void move_z_with_encoder(const float &multiplier); |
|
|
static float measure_point_with_encoder(); |
|
|
static float measure_point_with_encoder(); |
|
|
static float measure_business_card_thickness(float in_height); |
|
|
static float measure_business_card_thickness(); |
|
|
static void manually_probe_remaining_mesh(const xy_pos_t&, const float&, const float&, const bool) _O0; |
|
|
static void manually_probe_remaining_mesh(const xy_pos_t&, const float&, const float&, const bool) _O0; |
|
|
static void fine_tune_mesh(const xy_pos_t &pos, const bool do_ubl_mesh_map) _O0; |
|
|
static void fine_tune_mesh(const xy_pos_t &pos, const bool do_ubl_mesh_map) _O0; |
|
|
#endif |
|
|
#endif |
|
|
|
@ -484,7 +484,7 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (parser.seen('B')) { |
|
|
if (parser.seen('B')) { |
|
|
g29_card_thickness = parser.has_value() ? parser.value_float() : measure_business_card_thickness(float(Z_CLEARANCE_BETWEEN_PROBES)); |
|
|
g29_card_thickness = parser.has_value() ? parser.value_float() : measure_business_card_thickness(); |
|
|
if (ABS(g29_card_thickness) > 1.5f) { |
|
|
if (ABS(g29_card_thickness) > 1.5f) { |
|
|
SERIAL_ECHOLNPGM("?Error in Business Card measurement."); |
|
|
SERIAL_ECHOLNPGM("?Error in Business Card measurement."); |
|
|
return; |
|
|
return; |
|
@ -837,11 +837,11 @@ |
|
|
|
|
|
|
|
|
static void echo_and_take_a_measurement() { SERIAL_ECHOLNPGM(" and take a measurement."); } |
|
|
static void echo_and_take_a_measurement() { SERIAL_ECHOLNPGM(" and take a measurement."); } |
|
|
|
|
|
|
|
|
float unified_bed_leveling::measure_business_card_thickness(float in_height) { |
|
|
float unified_bed_leveling::measure_business_card_thickness() { |
|
|
ui.capture(); |
|
|
ui.capture(); |
|
|
save_ubl_active_state_and_disable(); // Disable bed level correction for probing
|
|
|
save_ubl_active_state_and_disable(); // Disable bed level correction for probing
|
|
|
|
|
|
|
|
|
do_blocking_move_to(0.5f * (MESH_MAX_X - (MESH_MIN_X)), 0.5f * (MESH_MAX_Y - (MESH_MIN_Y)), in_height); |
|
|
do_blocking_move_to(0.5f * (MESH_MAX_X - (MESH_MIN_X)), 0.5f * (MESH_MAX_Y - (MESH_MIN_Y)), MANUAL_PROBE_START_Z); |
|
|
//, _MIN(planner.settings.max_feedrate_mm_s[X_AXIS], planner.settings.max_feedrate_mm_s[Y_AXIS]) * 0.5f);
|
|
|
//, _MIN(planner.settings.max_feedrate_mm_s[X_AXIS], planner.settings.max_feedrate_mm_s[Y_AXIS]) * 0.5f);
|
|
|
planner.synchronize(); |
|
|
planner.synchronize(); |
|
|
|
|
|
|
|
|
|
@ -2603,6 +2603,10 @@ |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if !defined(MANUAL_PROBE_START_Z) && defined(Z_CLEARANCE_BETWEEN_PROBES) |
|
|
|
|
|
#define MANUAL_PROBE_START_Z Z_CLEARANCE_BETWEEN_PROBES |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#ifndef __SAM3X8E__ //todo: hal: broken hal encapsulation
|
|
|
#ifndef __SAM3X8E__ //todo: hal: broken hal encapsulation
|
|
|
#undef UI_VOLTAGE_LEVEL |
|
|
#undef UI_VOLTAGE_LEVEL |
|
|
#undef RADDS_DISPLAY |
|
|
#undef RADDS_DISPLAY |
|
|