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 @@ -7766,24 +7766,19 @@ SERIAL_PROTOCOLPGM("\n\n");
7766
7766
See also <a href="https://reprap.org/wiki/PID_Tuning">PID Tuning.</a>
7767
7767
#### Usage
7768
7768
7769
- M301 [ P | I | D | C ]
7769
+ M301 [ P | I | D ]
7770
7770
7771
7771
#### Parameters
7772
7772
- `P` - proportional (Kp)
7773
7773
- `I` - integral (Ki)
7774
7774
- `D` - derivative (Kd)
7775
- - `C` - heating power=Kc*(e_speed0)
7776
7775
*/
7777
7776
case 301 :
7778
7777
{
7779
7778
if (code_seen (' P' )) cs.Kp = code_value ();
7780
7779
if (code_seen (' I' )) cs.Ki = scalePID_i (code_value ());
7781
7780
if (code_seen (' D' )) cs.Kd = scalePID_d (code_value ());
7782
7781
7783
- #ifdef PID_ADD_EXTRUSION_RATE
7784
- if (code_seen (' C' )) Kc = code_value ();
7785
- #endif
7786
-
7787
7782
updatePID ();
7788
7783
SERIAL_PROTOCOLRPGM (MSG_OK);
7789
7784
SERIAL_PROTOCOLPGM (" p:" );
@@ -7792,11 +7787,6 @@ SERIAL_PROTOCOLPGM("\n\n");
7792
7787
SERIAL_PROTOCOL (unscalePID_i (cs.Ki ));
7793
7788
SERIAL_PROTOCOLPGM (" d:" );
7794
7789
SERIAL_PROTOCOL (unscalePID_d (cs.Kd ));
7795
- #ifdef PID_ADD_EXTRUSION_RATE
7796
- SERIAL_PROTOCOLPGM (" c:" );
7797
- // Kc does not have scaling applied above, or in resetting defaults
7798
- SERIAL_PROTOCOL (Kc);
7799
- #endif
7800
7790
SERIAL_PROTOCOLLN ();
7801
7791
}
7802
7792
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