|
@@ -1176,11 +1176,11 @@ static void lcd_control_temperature_menu() {
|
1176
|
1176
|
#endif
|
1177
|
1177
|
|
1178
|
1178
|
//
|
1179
|
|
- // PID-P, PID-I, PID-D, PID-C
|
1180
|
|
- // PID-P E1, PID-I E1, PID-D E1, PID-C E1
|
1181
|
|
- // PID-P E2, PID-I E2, PID-D E2, PID-C E2
|
1182
|
|
- // PID-P E3, PID-I E3, PID-D E3, PID-C E3
|
1183
|
|
- // PID-P E4, PID-I E4, PID-D E4, PID-C E4
|
|
1179
|
+ // PID-P, PID-I, PID-D, PID-C, PID Autotune
|
|
1180
|
+ // PID-P E1, PID-I E1, PID-D E1, PID-C E1, PID Autotune E1
|
|
1181
|
+ // PID-P E2, PID-I E2, PID-D E2, PID-C E2, PID Autotune E2
|
|
1182
|
+ // PID-P E3, PID-I E3, PID-D E3, PID-C E3, PID Autotune E3
|
|
1183
|
+ // PID-P E4, PID-I E4, PID-D E4, PID-C E4, PID Autotune E4
|
1184
|
1184
|
//
|
1185
|
1185
|
#if ENABLED(PIDTEMP)
|
1186
|
1186
|
|
|
@@ -1189,8 +1189,20 @@ static void lcd_control_temperature_menu() {
|
1189
|
1189
|
raw_Kd = unscalePID_d(PID_PARAM(Kd, eindex)); \
|
1190
|
1190
|
MENU_ITEM_EDIT(float52, MSG_PID_P ELABEL, &PID_PARAM(Kp, eindex), 1, 9990); \
|
1191
|
1191
|
MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_I ELABEL, &raw_Ki, 0.01, 9990, copy_and_scalePID_i_E ## eindex); \
|
1192
|
|
- MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D ELABEL, &raw_Kd, 1, 9990, copy_and_scalePID_d_E ## eindex)
|
1193
|
|
-
|
|
1192
|
+ MENU_ITEM_EDIT_CALLBACK(float52, MSG_PID_D ELABEL, &raw_Kd, 1, 9990, copy_and_scalePID_d_E ## eindex); \
|
|
1193
|
+ if (eindex == 0) { \
|
|
1194
|
+ MENU_ITEM(gcode, MSG_PID_AUTOTUNE ELABEL, PSTR("M303 U1")); \
|
|
1195
|
+ } \
|
|
1196
|
+ else if (eindex == 1) { \
|
|
1197
|
+ MENU_ITEM(gcode, MSG_PID_AUTOTUNE ELABEL, PSTR("M303 U1 E1")); \
|
|
1198
|
+ } \
|
|
1199
|
+ else if (eindex == 2) { \
|
|
1200
|
+ MENU_ITEM(gcode, MSG_PID_AUTOTUNE ELABEL, PSTR("M303 U1 E2")); \
|
|
1201
|
+ } \
|
|
1202
|
+ else { \
|
|
1203
|
+ MENU_ITEM(gcode, MSG_PID_AUTOTUNE ELABEL, PSTR("M303 U1 E3")); \
|
|
1204
|
+ }
|
|
1205
|
+
|
1194
|
1206
|
#if ENABLED(PID_ADD_EXTRUSION_RATE)
|
1195
|
1207
|
#define PID_MENU_ITEMS(ELABEL, eindex) \
|
1196
|
1208
|
_PID_MENU_ITEMS(ELABEL, eindex); \
|