From 9a52bb5d046351e2fef0fdf1bf45f8b2b4416555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sun, 26 Jun 2022 12:18:25 +0000 Subject: [PATCH] Add MMU2_UNLOAD_TO_FINDA_FEED_RATE --- Firmware/mmu2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Firmware/mmu2.cpp b/Firmware/mmu2.cpp index eb41fd607..8d023a810 100644 --- a/Firmware/mmu2.cpp +++ b/Firmware/mmu2.cpp @@ -36,6 +36,7 @@ static constexpr float MMU2_LOAD_TO_NOZZLE_LENGTH = 87.0F + 5.0F; static constexpr float MMU2_TOOL_CHANGE_LOAD_LENGTH = 30.0F; static constexpr float MMU2_LOAD_TO_NOZZLE_FEED_RATE = 20.0F; +static constexpr float MMU2_UNLOAD_TO_FINDA_FEED_RATE = 120.0F; static constexpr uint8_t MMU2_NO_TOOL = 99; static constexpr uint32_t MMU_BAUD = 115200; @@ -793,7 +794,8 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){ st_synchronize(); // Now do a fast unload in sync with the MMU current_position[E_AXIS] -= 427.0f - 42.85f - 20.0f; // Roughly same distance as MMU plans - plan_buffer_line_curposXYZE(120.0f); + plan_buffer_line_curposXYZE(MMU2_UNLOAD_TO_FINDA_FEED_RATE); + break; case ProgressCode::FeedingToBondtech: // prepare for the movement of the E-motor st_synchronize();