You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
@MoellerDi i got a question about the 3th point, my understanding of the code is that the probe offset is not used in this calculation. Am I correct? Shouldn't it be used in this calculation?
The reason will be displayed to describe this comment to others. Learn more.
@anlupat The probe offset is considered in min_x(), max_y() as well as min_y(), max_y(). See line 138-173 in probe.h
You will see PROBING_MARGIN and offset_xy is being used in that calculation. For more details on how the code is doing the calculation, please see my comment in the related issue (#17203 (comment))
The reason will be displayed to describe this comment to others. Learn more.
Thank you for clarifying. I assumed the thirth point should be the center of the bed, but I now understand itis the center of the probing area.
Mvg, Patrick
________________________________
From: MoellerDi <[email protected]>
Sent: Wednesday, June 24, 2020 9:05:03 PM
To: MarlinFirmware/Marlin <[email protected]>
Cc: anlupat <[email protected]>; Comment <[email protected]>
Subject: Re: [MarlinFirmware/Marlin] Fix 3-point middle point (#18383) (3bfbd47)
The probe offset is considered in min_x(), max_y() as well as min_y(), max_y(). See line 138-173 in probe.h
You will see PROBING_MARGIN and offset_xy is being used in that calculation. For more details on how the code is calculation, please see my comment in the related issue (#17203 (comment)<#17203 (comment)>)
static inline float min_x() {
return (
#if IS_KINEMATIC
(X_CENTER) - probe_radius()
#else
_MAX((X_MIN_BED) + (PROBING_MARGIN_LEFT), (X_MIN_POS) + offset_xy.x)
#endif
);
}
static inline float max_x() {
return (
#if IS_KINEMATIC
(X_CENTER) + probe_radius()
#else
_MIN((X_MAX_BED) - (PROBING_MARGIN_RIGHT), (X_MAX_POS) + offset_xy.x)
#endif
);
}
static inline float min_y() {
return (
#if IS_KINEMATIC
(Y_CENTER) - probe_radius()
#else
_MAX((Y_MIN_BED) + (PROBING_MARGIN_FRONT), (Y_MIN_POS) + offset_xy.y)
#endif
);
}
static inline float max_y() {
return (
#if IS_KINEMATIC
(Y_CENTER) + probe_radius()
#else
_MIN((Y_MAX_BED) - (PROBING_MARGIN_BACK), (Y_MAX_POS) + offset_xy.y)
#endif
);
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<3bfbd47#commitcomment-40145858>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI3CQOEIVHRHIWD7O7Y6CKDRYJE57ANCNFSM4OG74RDQ>.
3bfbd47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MoellerDi i got a question about the 3th point, my understanding of the code is that the probe offset is not used in this calculation. Am I correct? Shouldn't it be used in this calculation?
3bfbd47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anlupat The probe offset is considered in min_x(), max_y() as well as min_y(), max_y(). See line 138-173 in probe.h
You will see
PROBING_MARGIN
andoffset_xy
is being used in that calculation. For more details on how the code is doing the calculation, please see my comment in the related issue (#17203 (comment))3bfbd47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.