|
@@ -49,7 +49,6 @@
|
49
|
49
|
extern bool code_value_bool();
|
50
|
50
|
extern bool code_has_value();
|
51
|
51
|
extern float probe_pt(float x, float y, bool, int);
|
52
|
|
- extern float zprobe_zoffset;
|
53
|
52
|
extern bool set_probe_deployed(bool);
|
54
|
53
|
#define DEPLOY_PROBE() set_probe_deployed(true)
|
55
|
54
|
#define STOW_PROBE() set_probe_deployed(false)
|
|
@@ -516,9 +515,9 @@
|
516
|
515
|
}
|
517
|
516
|
|
518
|
517
|
if (code_seen('T')) {
|
519
|
|
- float z1 = probe_pt(ubl_3_point_1_X, ubl_3_point_1_Y, false /*Stow Flag*/, g29_verbose_level) + zprobe_zoffset,
|
520
|
|
- z2 = probe_pt(ubl_3_point_2_X, ubl_3_point_2_Y, false /*Stow Flag*/, g29_verbose_level) + zprobe_zoffset,
|
521
|
|
- z3 = probe_pt(ubl_3_point_3_X, ubl_3_point_3_Y, true /*Stow Flag*/, g29_verbose_level) + zprobe_zoffset;
|
|
518
|
+ float z1 = probe_pt(ubl_3_point_1_X, ubl_3_point_1_Y, false /*Stow Flag*/, g29_verbose_level),
|
|
519
|
+ z2 = probe_pt(ubl_3_point_2_X, ubl_3_point_2_Y, false /*Stow Flag*/, g29_verbose_level),
|
|
520
|
+ z3 = probe_pt(ubl_3_point_3_X, ubl_3_point_3_Y, true /*Stow Flag*/, g29_verbose_level);
|
522
|
521
|
|
523
|
522
|
// We need to adjust z1, z2, z3 by the Mesh Height at these points. Just because they are non-zero doesn't mean
|
524
|
523
|
// the Mesh is tilted! (We need to compensate each probe point by what the Mesh says that location's height is)
|
|
@@ -761,7 +760,7 @@
|
761
|
760
|
goto LEAVE;
|
762
|
761
|
}
|
763
|
762
|
const float measured_z = probe_pt(LOGICAL_X_POSITION(rawx), LOGICAL_Y_POSITION(rawy), stow_probe, g29_verbose_level);
|
764
|
|
- ubl.z_values[location.x_index][location.y_index] = measured_z + zprobe_zoffset;
|
|
763
|
+ ubl.z_values[location.x_index][location.y_index] = measured_z;
|
765
|
764
|
}
|
766
|
765
|
|
767
|
766
|
if (do_ubl_mesh_map) ubl.display_map(map_type);
|