|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
|
|