From 79a5fd53c62c9a7d9a5fe202323520ecaba6b3d1 Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Wed, 21 Oct 2020 09:22:13 +0200 Subject: [PATCH] Add buzzer sound when PID tuning is done. Set default Jerk to 8 instead of 10 to compensate higher acceleration values. --- Marlin/Configuration.h | 4 ++-- Marlin/src/lcd/anycubic_touchscreen.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 54a262f2..de88ce96 100755 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -1066,8 +1066,8 @@ #if ENABLED(CLASSIC_JERK) #if ANY(KNUTWURST_MEGA, KNUTWURST_MEGA_S, KNUTWURST_MEGA_P) - #define DEFAULT_XJERK 10.0 - #define DEFAULT_YJERK 10.0 + #define DEFAULT_XJERK 8.0 + #define DEFAULT_YJERK 8.0 #define DEFAULT_ZJERK 0.4 #endif diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index 2dc95246..8de5885d 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -454,17 +454,17 @@ void AnycubicTouchscreenClass::HandleSpecialMenu() || (strcasestr(currentTouchscreenSelection, SM_PID_HOTEND_S) != NULL)) { SERIAL_ECHOLNPGM("Special Menu: PID Tune Hotend"); - queue.inject_P(PSTR("G28\nG90\nG1 Z20\nG1 X110 Y110 F4000\nG1 Z5\nM106 S172\nG4 P500\nM303 E0 S215 C15 U1\nG4 P500\nM107\nG28\nG1 Z10\nM84\nM500")); + queue.inject_P(PSTR("G28\nG90\nG1 Z20\nG1 X110 Y110 F4000\nG1 Z5\nM106 S172\nG4 P500\nM303 E0 S215 C15 U1\nG4 P500\nM107\nG28\nG1 Z10\nM84\nM500\nM300 S440 P200\nM300 S660 P250\nM300 S880 P300")); buzzer.tone(200, 1108); buzzer.tone(200, 1661); buzzer.tone(200, 1108); - buzzer.tone(600, 1661); + buzzer.tone(600, 1661); } else if ((strcasestr(currentTouchscreenSelection, SM_PID_BED_L) != NULL) || (strcasestr(currentTouchscreenSelection, SM_PID_BED_S) != NULL)) { SERIAL_ECHOLNPGM("Special Menu: PID Tune Ultrabase"); - queue.inject_P(PSTR("M303 E-1 S60 C6 U1\nM500")); + queue.inject_P(PSTR("M303 E-1 S60 C6 U1\nM500\nM300 S440 P200\nM300 S660 P250\nM300 S880 P300")); buzzer.tone(200, 1108); buzzer.tone(200, 1661); buzzer.tone(200, 1108);