Sfoglia il codice sorgente

Added new PID autotune info, to make easy copy & paste results to marlin

paclema 10 anni fa
parent
commit
581685a231
3 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 1
    1
      Marlin/configurator/config/language.h
  2. 1
    1
      Marlin/language.h
  3. 3
    0
      Marlin/temperature.cpp

+ 1
- 1
Marlin/configurator/config/language.h Vedi File

@@ -209,7 +209,7 @@
209 209
 #define MSG_OK_B                            "ok B:"
210 210
 #define MSG_OK_T                            "ok T:"
211 211
 #define MSG_AT                              " @:"
212
-#define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from above into Configuration.h"
212
+#define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
213 213
 #define MSG_PID_DEBUG                       " PID_DEBUG "
214 214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
215 215
 #define MSG_PID_DEBUG_OUTPUT                " Output "

+ 1
- 1
Marlin/language.h Vedi File

@@ -209,7 +209,7 @@
209 209
 #define MSG_OK_B                            "ok B:"
210 210
 #define MSG_OK_T                            "ok T:"
211 211
 #define MSG_AT                              " @:"
212
-#define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from above into Configuration.h"
212
+#define MSG_PID_AUTOTUNE_FINISHED           MSG_PID_AUTOTUNE " finished! Put the last Kp, Ki and Kd constants from below into Configuration.h"
213 213
 #define MSG_PID_DEBUG                       " PID_DEBUG "
214 214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
215 215
 #define MSG_PID_DEBUG_OUTPUT                " Output "

+ 3
- 0
Marlin/temperature.cpp Vedi File

@@ -341,6 +341,9 @@ void PID_autotune(float temp, int extruder, int ncycles)
341 341
     }
342 342
     if (cycles > ncycles) {
343 343
       SERIAL_PROTOCOLLNPGM(MSG_PID_AUTOTUNE_FINISHED);
344
+      SERIAL_PROTOCOLPGM("#define  DEFAULT_Kp "); SERIAL_PROTOCOLLN(Kp);
345
+      SERIAL_PROTOCOLPGM("#define  DEFAULT_Ki "); SERIAL_PROTOCOLLN(Ki);
346
+      SERIAL_PROTOCOLPGM("#define  DEFAULT_Kd "); SERIAL_PROTOCOLLN(Kd);
344 347
       return;
345 348
     }
346 349
     lcd_update();

Loading…
Annulla
Salva