Skip to content
Snippets Groups Projects
Commit 956418c6 authored by Richard Wackerbarth's avatar Richard Wackerbarth
Browse files

Kc is also a multi-PID parameter

parent 8cea79a8
Branches
Tags
No related merge requests found
......@@ -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
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment