Merge pull request #4233 from 3d-gussner/MK3_max_overshoot_pid_autotune

Add max_overshoot_pi_autotune value
This commit is contained in:
3d-gussner 2023-06-16 15:18:52 +02:00 committed by GitHub
commit ded448dfd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -390,7 +390,10 @@ void __attribute__((noinline)) PID_autotune(float temp, int extruder, int ncycle
}
}
}
if(input > (temp + 20)) {
#ifndef MAX_OVERSHOOT_PID_AUTOTUNE
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#endif
if(input > (temp + MAX_OVERSHOOT_PID_AUTOTUNE)) {
SERIAL_PROTOCOLLNPGM("PID Autotune failed! Temperature too high");
pid_tuning_finished = true;
pid_cycle = 0;