File tree 5 files changed +1
-31
lines changed
5 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -336,9 +336,6 @@ void Config_ResetDefault()
336
336
337
337
#ifdef PIDTEMP
338
338
updatePID ();
339
- #ifdef PID_ADD_EXTRUSION_RATE
340
- Kc = DEFAULT_Kc; // this is not stored by Config_StoreSettings
341
- #endif // PID_ADD_EXTRUSION_RATE
342
339
#endif // PIDTEMP
343
340
344
341
calculate_extruder_multipliers ();
Original file line number Diff line number Diff line change 10
10
#endif
11
11
#define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control
12
12
13
- #ifdef PIDTEMP
14
- // this adds an experimental additional term to the heating power, proportional to the extrusion speed.
15
- // if Kc is chosen well, the additional required power due to increased melting should be compensated.
16
- // #define PID_ADD_EXTRUSION_RATE
17
- #ifdef PID_ADD_EXTRUSION_RATE
18
- #define DEFAULT_Kc (1) //heating power=Kc*(e_speed)
19
- #endif
20
- #endif
21
-
22
-
23
13
//automatic temperature: The hot end target temperature is calculated by all the buffered lines of gcode.
24
14
//The maximum buffered steps/sec of the extruder motor are called "se".
25
15
//You enter the autotemp mode by a M109 S<mintemp> B<maxtemp> F<factor>
Original file line number Diff line number Diff line change @@ -7767,24 +7767,19 @@ SERIAL_PROTOCOLPGM("\n\n");
7767
7767
See also <a href="https://reprap.org/wiki/PID_Tuning">PID Tuning.</a>
7768
7768
#### Usage
7769
7769
7770
- M301 [ P | I | D | C ]
7770
+ M301 [ P | I | D ]
7771
7771
7772
7772
#### Parameters
7773
7773
- `P` - proportional (Kp)
7774
7774
- `I` - integral (Ki)
7775
7775
- `D` - derivative (Kd)
7776
- - `C` - heating power=Kc*(e_speed0)
7777
7776
*/
7778
7777
case 301 :
7779
7778
{
7780
7779
if (code_seen (' P' )) cs.Kp = code_value ();
7781
7780
if (code_seen (' I' )) cs.Ki = scalePID_i (code_value ());
7782
7781
if (code_seen (' D' )) cs.Kd = scalePID_d (code_value ());
7783
7782
7784
- #ifdef PID_ADD_EXTRUSION_RATE
7785
- if (code_seen (' C' )) Kc = code_value ();
7786
- #endif
7787
-
7788
7783
updatePID ();
7789
7784
SERIAL_PROTOCOLRPGM (MSG_OK);
7790
7785
SERIAL_PROTOCOLPGM (" p:" );
@@ -7793,11 +7788,6 @@ SERIAL_PROTOCOLPGM("\n\n");
7793
7788
SERIAL_PROTOCOL (unscalePID_i (cs.Ki ));
7794
7789
SERIAL_PROTOCOLPGM (" d:" );
7795
7790
SERIAL_PROTOCOL (unscalePID_d (cs.Kd ));
7796
- #ifdef PID_ADD_EXTRUSION_RATE
7797
- SERIAL_PROTOCOLPGM (" c:" );
7798
- // Kc does not have scaling applied above, or in resetting defaults
7799
- SERIAL_PROTOCOL (Kc);
7800
- #endif
7801
7791
SERIAL_PROTOCOLLN ();
7802
7792
}
7803
7793
break ;
Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ float current_temperature_bed = 0.0;
88
88
float _Kp, _Ki, _Kd;
89
89
int pid_cycle, pid_number_of_cycles;
90
90
bool pid_tuning_finished = false ;
91
- #ifdef PID_ADD_EXTRUSION_RATE
92
- float Kc=DEFAULT_Kc;
93
- #endif
94
91
#endif // PIDTEMP
95
92
96
93
#ifdef FAN_SOFT_PWM
Original file line number Diff line number Diff line change @@ -91,15 +91,11 @@ extern bool bedPWMDisabled;
91
91
#ifdef PIDTEMP
92
92
extern int pid_cycle , pid_number_of_cycles ;
93
93
extern float _Kp ,_Ki ,_Kd ;
94
- #ifdef PID_ADD_EXTRUSION_RATE
95
- extern float Kc ;
96
- #endif
97
94
extern bool pid_tuning_finished ;
98
95
float scalePID_i (float i );
99
96
float scalePID_d (float d );
100
97
float unscalePID_i (float i );
101
98
float unscalePID_d (float d );
102
-
103
99
#endif
104
100
105
101
You can’t perform that action at this time.
0 commit comments