Browse Source

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

paclema 10 years ago
parent
commit
581685a231
3 changed files with 5 additions and 2 deletions
  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 View File

209
 #define MSG_OK_B                            "ok B:"
209
 #define MSG_OK_B                            "ok B:"
210
 #define MSG_OK_T                            "ok T:"
210
 #define MSG_OK_T                            "ok T:"
211
 #define MSG_AT                              " @:"
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
 #define MSG_PID_DEBUG                       " PID_DEBUG "
213
 #define MSG_PID_DEBUG                       " PID_DEBUG "
214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
215
 #define MSG_PID_DEBUG_OUTPUT                " Output "
215
 #define MSG_PID_DEBUG_OUTPUT                " Output "

+ 1
- 1
Marlin/language.h View File

209
 #define MSG_OK_B                            "ok B:"
209
 #define MSG_OK_B                            "ok B:"
210
 #define MSG_OK_T                            "ok T:"
210
 #define MSG_OK_T                            "ok T:"
211
 #define MSG_AT                              " @:"
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
 #define MSG_PID_DEBUG                       " PID_DEBUG "
213
 #define MSG_PID_DEBUG                       " PID_DEBUG "
214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
214
 #define MSG_PID_DEBUG_INPUT                 ": Input "
215
 #define MSG_PID_DEBUG_OUTPUT                " Output "
215
 #define MSG_PID_DEBUG_OUTPUT                " Output "

+ 3
- 0
Marlin/temperature.cpp View File

341
     }
341
     }
342
     if (cycles > ncycles) {
342
     if (cycles > ncycles) {
343
       SERIAL_PROTOCOLLNPGM(MSG_PID_AUTOTUNE_FINISHED);
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
       return;
347
       return;
345
     }
348
     }
346
     lcd_update();
349
     lcd_update();

Loading…
Cancel
Save