Browse Source

Enable PID debugging for heated bed

kieranc 10 years ago
parent
commit
0a19109476
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Marlin/temperature.cpp

+ 14
- 0
Marlin/temperature.cpp View File

@@ -647,6 +647,20 @@ void manage_heater()
647 647
     #else 
648 648
       pid_output = constrain(target_temperature_bed, 0, MAX_BED_POWER);
649 649
     #endif //PID_OPENLOOP
650
+        #ifdef PID_BED_DEBUG
651
+    SERIAL_ECHO_START;
652
+    SERIAL_ECHO(" PID_BED_DEBUG ");
653
+    SERIAL_ECHO(": Input ");
654
+    SERIAL_ECHO(pid_input);
655
+    SERIAL_ECHO(" Output ");
656
+    SERIAL_ECHO(pid_output);
657
+    SERIAL_ECHO(" pTerm ");
658
+    SERIAL_ECHO(pTerm_bed);
659
+    SERIAL_ECHO(" iTerm ");
660
+    SERIAL_ECHO(iTerm_bed);
661
+    SERIAL_ECHO(" dTerm ");
662
+    SERIAL_ECHOLN(dTerm_bed);
663
+    #endif //PID_BED_DEBUG
650 664
 
651 665
 	  if((current_temperature_bed > BED_MINTEMP) && (current_temperature_bed < BED_MAXTEMP)) 
652 666
 	  {

Loading…
Cancel
Save