PFW-1504 too much?

I'm not happy with the current solution, I think we can improve it
by using the fact that this is a triangle wave. Need to think about it.
This commit is contained in:
Guðni Már Gilbert 2023-03-11 16:22:53 +00:00 committed by DRracer
parent 73c76579af
commit 9145c8f59f
1 changed files with 19 additions and 0 deletions

View File

@ -249,6 +249,25 @@ bool MMU2::VerifyFilamentEnteredPTFE() {
TryLoadUnloadProgressbarInit();
/* The position is basically a triangle wave
// current position is not zero, so it is an offset
// y(x)
// ▲
// │
// │ ^◄────────── delta_mm - current_position
// / \
// / \
// / \
// machine / \
// position (mm) / \
// / \
// / \
// │/ \◄───────current_position
// └───────────────────► x
// 0 19
// pixel #
*/
MoveE(delta_mm, MMU2_VERIFY_LOAD_TO_NOZZLE_FEED_RATE);
MoveE(-delta_mm, MMU2_VERIFY_LOAD_TO_NOZZLE_FEED_RATE);