Procházet zdrojové kódy

Yes, makes sense, lets NOT use the value directly from the configuration define but modify it before setting it. This will not confuse people (including me) at all!

daid303 před 12 roky
rodič
revize
625ac81acc
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      Marlin/ConfigurationStore.cpp

+ 2
- 2
Marlin/ConfigurationStore.cpp Zobrazit soubor

@@ -227,8 +227,8 @@ void Config_ResetDefault()
227 227
 #endif
228 228
 #ifdef PIDTEMP
229 229
     Kp = DEFAULT_Kp;
230
-    Ki = DEFAULT_Ki;
231
-    Kd = DEFAULT_Kp;
230
+    Ki = (DEFAULT_Ki*PID_dT);
231
+    Kd = (DEFAULT_Kp/PID_dT);
232 232
 #ifdef PID_ADD_EXTRUSION_RATE
233 233
     Kc = DEFAULT_Kc;
234 234
 #endif//PID_ADD_EXTRUSION_RATE

Loading…
Zrušit
Uložit