Kc is also a multi-PID parameter

This commit is contained in:
Richard Wackerbarth 2015-11-23 06:08:01 -06:00
parent 8cea79a81d
commit 956418c674

View file

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