Adding probe points for the M48 command
This commit is contained in:
parent
f2803468c7
commit
9c3d5779be
@ -72,6 +72,19 @@ void GcodeSuite::M48() {
|
|||||||
|
|
||||||
const ProbePtRaise raise_after = parser.boolval('E') ? PROBE_PT_STOW : PROBE_PT_RAISE;
|
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
|
// Test at the current position by default, overridden by X and Y
|
||||||
const xy_pos_t test_position = {
|
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
|
parser.linearval('X', current_position.x + probe.offset_xy.x), // If no X use the probe's current X position
|
||||||
|
Loading…
Reference in New Issue
Block a user