Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Bart.
It's been a while since I've updated the firmware on my lovely midTbot.
I feel that the homing behavior of the current midTbot is a little different from what you intended, so I suggest some changes.
(1) Mpos of X seems to be shifted from its original value when homing.
It seems to be caused by a typo in midtbot.h.
It reads as if it was originally intended to PenUp after homing, but that doesn't seem to work in the current implementation.
(2) PenDown occurs when homing.
In the current implementation, the Z axis is homed first, so it is PenDown (Z is set to 0) first.Then, since it is PenDown, it will homing the Y and X axis while drawing with the pen.
So in the current implementation, I would suggest not homing the Z axis with $H.
If you must, you can handle it separately with $HZ.
The cause of the PenDown when homing was that the Z axis was not specified in DEFAULT_DIRECTION_INVERT_MASK.
Thank you for your consideration.