Neaten up temperature member data
This commit is contained in:
@ -52,13 +52,12 @@ class Temperature {
|
||||
|
||||
public:
|
||||
|
||||
static int current_temperature_raw[HOTENDS];
|
||||
static float current_temperature[HOTENDS];
|
||||
static int target_temperature[HOTENDS];
|
||||
|
||||
static int current_temperature_bed_raw;
|
||||
static float current_temperature_bed;
|
||||
static int target_temperature_bed;
|
||||
static float current_temperature[HOTENDS],
|
||||
current_temperature_bed;
|
||||
static int current_temperature_raw[HOTENDS],
|
||||
target_temperature[HOTENDS],
|
||||
current_temperature_bed_raw,
|
||||
target_temperature_bed;
|
||||
|
||||
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
|
||||
static float redundant_temperature;
|
||||
@ -143,11 +142,11 @@ class Temperature {
|
||||
static volatile bool temp_meas_ready;
|
||||
|
||||
#if ENABLED(PIDTEMP)
|
||||
static float temp_iState[HOTENDS];
|
||||
static float temp_dState[HOTENDS];
|
||||
static float pTerm[HOTENDS];
|
||||
static float iTerm[HOTENDS];
|
||||
static float dTerm[HOTENDS];
|
||||
static float temp_iState[HOTENDS],
|
||||
temp_dState[HOTENDS],
|
||||
pTerm[HOTENDS],
|
||||
iTerm[HOTENDS],
|
||||
dTerm[HOTENDS];
|
||||
|
||||
#if ENABLED(PID_ADD_EXTRUSION_RATE)
|
||||
static float cTerm[HOTENDS];
|
||||
@ -156,33 +155,33 @@ class Temperature {
|
||||
static int lpq_ptr;
|
||||
#endif
|
||||
|
||||
static float pid_error[HOTENDS];
|
||||
static float temp_iState_min[HOTENDS];
|
||||
static float temp_iState_max[HOTENDS];
|
||||
static float pid_error[HOTENDS],
|
||||
temp_iState_min[HOTENDS],
|
||||
temp_iState_max[HOTENDS];
|
||||
static bool pid_reset[HOTENDS];
|
||||
#endif
|
||||
|
||||
#if ENABLED(PIDTEMPBED)
|
||||
static float temp_iState_bed;
|
||||
static float temp_dState_bed;
|
||||
static float pTerm_bed;
|
||||
static float iTerm_bed;
|
||||
static float dTerm_bed;
|
||||
static float pid_error_bed;
|
||||
static float temp_iState_min_bed;
|
||||
static float temp_iState_max_bed;
|
||||
static float temp_iState_bed,
|
||||
temp_dState_bed,
|
||||
pTerm_bed,
|
||||
iTerm_bed,
|
||||
dTerm_bed,
|
||||
pid_error_bed,
|
||||
temp_iState_min_bed,
|
||||
temp_iState_max_bed;
|
||||
#else
|
||||
static millis_t next_bed_check_ms;
|
||||
#endif
|
||||
|
||||
static unsigned long raw_temp_value[4];
|
||||
static unsigned long raw_temp_bed_value;
|
||||
static unsigned long raw_temp_value[4],
|
||||
raw_temp_bed_value;
|
||||
|
||||
// Init min and max temp with extreme values to prevent false errors during startup
|
||||
static int minttemp_raw[HOTENDS];
|
||||
static int maxttemp_raw[HOTENDS];
|
||||
static int minttemp[HOTENDS];
|
||||
static int maxttemp[HOTENDS];
|
||||
static int minttemp_raw[HOTENDS],
|
||||
maxttemp_raw[HOTENDS],
|
||||
minttemp[HOTENDS],
|
||||
maxttemp[HOTENDS];
|
||||
|
||||
#ifdef MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED
|
||||
static int consecutive_low_temperature_error[HOTENDS];
|
||||
|
Reference in New Issue
Block a user