MAX_OVERSHOOT_PID_AUTOTUNE in all variants

This commit is contained in:
3d-gussner 2025-01-08 07:08:53 +01:00
parent 3f3372ed51
commit 5e7e48a1ba
9 changed files with 8 additions and 3 deletions

View File

@ -387,9 +387,6 @@ void __attribute__((noinline)) PID_autotune(float temp, int extruder, int ncycle
}
}
}
#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;

View File

@ -189,6 +189,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23

View File

@ -189,6 +189,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23

View File

@ -189,6 +189,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23

View File

@ -189,6 +189,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23

View File

@ -325,6 +325,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for E3D REVO
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 25.00
#define DEFAULT_Ki 4.8
#define DEFAULT_Kd 32.6

View File

@ -325,6 +325,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23

View File

@ -325,6 +325,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for E3D REVO
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 25.00
#define DEFAULT_Ki 4.8
#define DEFAULT_Kd 32.6

View File

@ -325,6 +325,7 @@
#define DEFAULT_Kd 73.76
#else //NOT E3D_PT100_EXTRUDER_WITH_AMP || E3D_PT100_EXTRUDER_NO_AMP
// Define PID constants for extruder
#define MAX_OVERSHOOT_PID_AUTOTUNE 20
#define DEFAULT_Kp 16.13
#define DEFAULT_Ki 1.1625
#define DEFAULT_Kd 56.23