Browse Source

Kc is also a multi-PID parameter

Richard Wackerbarth 9 years ago
parent
commit
956418c674
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp View File

@@ -518,7 +518,7 @@ float get_pid_output(int e) {
518 518
               lpq[lpq_ptr++] = 0;
519 519
             }
520 520
             if (lpq_ptr >= lpq_len) lpq_ptr = 0;
521
-            cTerm[e] = (lpq[lpq_ptr] / axis_steps_per_unit[E_AXIS]) * Kc;
521
+            cTerm[e] = (lpq[lpq_ptr] / axis_steps_per_unit[E_AXIS]) * PID_PARAM(Kc, e);
522 522
             pid_output += cTerm[e];
523 523
           }
524 524
         #endif //PID_ADD_EXTRUSION_RATE

Loading…
Cancel
Save