mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-03 12:20:55 +00:00
Planner singleton class
This commit is contained in:
parent
5076d12344
commit
96f51f400f
10 changed files with 587 additions and 499 deletions
Marlin
|
@ -613,7 +613,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]) * PID_PARAM(Kc, e);
|
||||
cTerm[e] = (lpq[lpq_ptr] / planner.axis_steps_per_unit[E_AXIS]) * PID_PARAM(Kc, e);
|
||||
pid_output += cTerm[e];
|
||||
}
|
||||
#endif //PID_ADD_EXTRUSION_RATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue