Browse Source

Configuration.h: Use OVERSAMPLENR in dT_PID definition.

David Forrest 11 years ago
parent
commit
76cf07c3f7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Configuration.h

+ 1
- 1
Marlin/Configuration.h View File

168
                                   // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
168
                                   // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
169
   #define PID_INTEGRAL_DRIVE_MAX 255  //limit for the integral term
169
   #define PID_INTEGRAL_DRIVE_MAX 255  //limit for the integral term
170
   #define K1 0.95 //smoothing factor within the PID
170
   #define K1 0.95 //smoothing factor within the PID
171
-  #define PID_dT ((16.0 * 8.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
171
+  #define PID_dT ((OVERSAMPLENR * 8.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
172
 
172
 
173
 // If you are using a preconfigured hotend then you can use one of the value sets by uncommenting it
173
 // If you are using a preconfigured hotend then you can use one of the value sets by uncommenting it
174
 // Ultimaker
174
 // Ultimaker

Loading…
Cancel
Save