Tweak PID autotune

- Add beep on autotune completion
- Raise cycle count on hotend PID tune via TFT from 6 to 15
This commit is contained in:
David Ramiro 2019-03-31 18:36:25 +02:00
parent b8d783b146
commit 1bd23dfbd8
No known key found for this signature in database
GPG Key ID: 5B042737EBEEB736
3 changed files with 5 additions and 2 deletions

View File

@ -358,7 +358,7 @@ void AnycubicTFTClass::HandleSpecialMenu()
SpecialMenu=true;
} else if (strcmp(SelectedDirectory, "<auto tune hotend pid>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotend PID");
enqueue_and_echo_commands_P(PSTR("M106 S204\nM303 E0 S210 C6 U1"));
enqueue_and_echo_commands_P(PSTR("M106 S204\nM303 E0 S210 C15 U1"));
} else if (strcmp(SelectedDirectory, "<auto tune hotbed pid>")==0) {
SERIAL_PROTOCOLLNPGM("Special Menu: Auto Tune Hotbed Pid");
enqueue_and_echo_commands_P(PSTR("M303 E-1 S60 C6 U1"));

View File

@ -41,7 +41,7 @@
* Defines the version of the Marlin-AI3M build. Not to be confused with
* Marlin's own build number, e.g. 1.1.9.
*/
#define CUSTOM_BUILD_VERSION "v1.4.5"
#define CUSTOM_BUILD_VERSION "v1.4.6"
/**
* Verbose version identifier which should contain a reference to the location

View File

@ -33,6 +33,7 @@
#include "printcounter.h"
#include "delay.h"
#include "endstops.h"
#include "buzzer.h"
#if ENABLED(HEATER_0_USES_MAX6675)
#include "MarlinSPI.h"
@ -456,6 +457,8 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS];
}
if (cycles > ncycles) {
buzzer.tone(105, 1108);
buzzer.tone(210, 1661);
SERIAL_PROTOCOLLNPGM(MSG_PID_AUTOTUNE_FINISHED);
#if HAS_PID_FOR_BOTH