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
               lpq[lpq_ptr++] = 0;
518
               lpq[lpq_ptr++] = 0;
519
             }
519
             }
520
             if (lpq_ptr >= lpq_len) lpq_ptr = 0;
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
             pid_output += cTerm[e];
522
             pid_output += cTerm[e];
523
           }
523
           }
524
         #endif //PID_ADD_EXTRUSION_RATE
524
         #endif //PID_ADD_EXTRUSION_RATE

Loading…
Cancel
Save