Independent PID parameters for each extruder

* Variables Kp, Ki, Kd, Kc now arrays of size EXTRUDERS
* M301 gains (optional, default=0) E parameter to define which
extruder's settings to modify. Tested, works with Repetier Host's EEPROM
config window, albeit only reads/updates settings for E0.
* All Kp, Ki, Kd, Kc parameters saved in EEPROM (version now v14), up to
3 extruders supported (same as Marlin in general)
This commit is contained in:
grob6000
2015-01-10 14:46:08 +11:00
parent 6e8e9bb41e
commit 37c7e8300f
4 changed files with 184 additions and 101 deletions

View File

@ -58,7 +58,7 @@ extern float current_temperature_bed;
#endif
#ifdef PIDTEMP
extern float Kp,Ki,Kd,Kc;
extern float Kp[EXTRUDERS], Ki[EXTRUDERS], Kd[EXTRUDERS], Kc[EXTRUDERS];
float scalePID_i(float i);
float scalePID_d(float d);
float unscalePID_i(float i);