Wrap DEFAULT_Ki, DEFAULT_Kd, PID_dT

Addition to #3140
This commit is contained in:
Scott Lahteine 2016-03-15 03:49:44 -07:00
parent eb8cf29464
commit 2ef49a9d53

View File

@ -146,8 +146,8 @@ static unsigned char soft_pwm[EXTRUDERS];
#endif // PID_ADD_EXTRUSION_RATE #endif // PID_ADD_EXTRUSION_RATE
#else //PID_PARAMS_PER_EXTRUDER #else //PID_PARAMS_PER_EXTRUDER
float Kp = DEFAULT_Kp; float Kp = DEFAULT_Kp;
float Ki = DEFAULT_Ki * PID_dT; float Ki = (DEFAULT_Ki) * (PID_dT);
float Kd = DEFAULT_Kd / PID_dT; float Kd = (DEFAULT_Kd) / (PID_dT);
#if ENABLED(PID_ADD_EXTRUSION_RATE) #if ENABLED(PID_ADD_EXTRUSION_RATE)
float Kc = DEFAULT_Kc; float Kc = DEFAULT_Kc;
#endif // PID_ADD_EXTRUSION_RATE #endif // PID_ADD_EXTRUSION_RATE