Adding probe points for the M48 command

This commit is contained in:
Brian Kahl 2021-09-09 11:41:34 -05:00
parent f2803468c7
commit 9c3d5779be

View File

@ -72,6 +72,19 @@ void GcodeSuite::M48() {
const ProbePtRaise raise_after = parser.boolval('E') ? PROBE_PT_STOW : PROBE_PT_RAISE;
#if ANY(Sidekick_289, Sidekick_747)
#define PROBE_OFFSET_XY_POS { X_CENTER, Y_CENTER }
#elif ENABLED(MiniV2)
#define PROBE_OFFSET_XY_POS { -4, -4 }
#elif ENABLED(TAZ6)
#define PROBE_OFFSET_XY_POS { -8, -8 }
#elif ENABLED(Workhorse)
#define PROBE_OFFSET_XY_POS { -10, -10 }
#endif
constexpr xy_pos_t probe_point = PROBE_OFFSET_XY_POS;
do_blocking_move_to_xy(probe_point);
// Test at the current position by default, overridden by X and Y
const xy_pos_t test_position = {
parser.linearval('X', current_position.x + probe.offset_xy.x), // If no X use the probe's current X position