Kc is also a multi-PID parameter
This commit is contained in:
parent
8cea79a81d
commit
956418c674
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user