Browse Source

ARRAY_BY_EXTRUDERS 4th hotend PID parameters

Natealus 9 years ago
parent
commit
ea9e49b20d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/temperature.cpp

+ 4
- 4
Marlin/temperature.cpp View File

@@ -136,11 +136,11 @@ static volatile bool temp_meas_ready = false;
136 136
 
137 137
 #ifdef PIDTEMP
138 138
 #ifdef PID_PARAMS_PER_EXTRUDER
139
-  float Kp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp);
140
-  float Ki[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT);
141
-  float Kd[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT);
139
+  float Kp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp);
140
+  float Ki[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT);
141
+  float Kd[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT);
142 142
   #ifdef PID_ADD_EXTRUSION_RATE
143
-    float Kc[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc);
143
+    float Kc[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc);
144 144
   #endif // PID_ADD_EXTRUSION_RATE
145 145
 #else //PID_PARAMS_PER_EXTRUDER
146 146
   float Kp = DEFAULT_Kp;

Loading…
Cancel
Save