Undubble MSG_MIN &MSG MAX
This commit is contained in:
parent
0e074d4050
commit
3024f6c706
@ -169,8 +169,8 @@
|
|||||||
#define MSG_PID_TIMEOUT MSG_PID_AUTOTUNE_FAILED " timeout"
|
#define MSG_PID_TIMEOUT MSG_PID_AUTOTUNE_FAILED " timeout"
|
||||||
#define MSG_BIAS " bias: "
|
#define MSG_BIAS " bias: "
|
||||||
#define MSG_D " d: "
|
#define MSG_D " d: "
|
||||||
#define MSG_MIN " min: "
|
#define MSG_T_MIN " min: "
|
||||||
#define MSG_MAX " max: "
|
#define MSG_T_MAX " max: "
|
||||||
#define MSG_KU " Ku: "
|
#define MSG_KU " Ku: "
|
||||||
#define MSG_TU " Tu: "
|
#define MSG_TU " Tu: "
|
||||||
#define MSG_CLASSIC_PID " Classic PID "
|
#define MSG_CLASSIC_PID " Classic PID "
|
||||||
|
@ -296,8 +296,8 @@ void PID_autotune(float temp, int extruder, int ncycles)
|
|||||||
|
|
||||||
SERIAL_PROTOCOLPGM(MSG_BIAS); SERIAL_PROTOCOL(bias);
|
SERIAL_PROTOCOLPGM(MSG_BIAS); SERIAL_PROTOCOL(bias);
|
||||||
SERIAL_PROTOCOLPGM(MSG_D); SERIAL_PROTOCOL(d);
|
SERIAL_PROTOCOLPGM(MSG_D); SERIAL_PROTOCOL(d);
|
||||||
SERIAL_PROTOCOLPGM(MSG_MIN); SERIAL_PROTOCOL(min);
|
SERIAL_PROTOCOLPGM(MSG_T_MIN); SERIAL_PROTOCOL(min);
|
||||||
SERIAL_PROTOCOLPGM(MSG_MAX); SERIAL_PROTOCOLLN(max);
|
SERIAL_PROTOCOLPGM(MSG_T_MAX); SERIAL_PROTOCOLLN(max);
|
||||||
if (cycles > 2) {
|
if (cycles > 2) {
|
||||||
Ku = (4.0 * d) / (3.14159265 * (max - min) / 2.0);
|
Ku = (4.0 * d) / (3.14159265 * (max - min) / 2.0);
|
||||||
Tu = ((float)(t_low + t_high) / 1000.0);
|
Tu = ((float)(t_low + t_high) / 1000.0);
|
||||||
|
Loading…
Reference in New Issue
Block a user