Remove old PID struct
This commit is contained in:
@@ -41,15 +41,13 @@ typedef struct {
|
|||||||
uint16_t BoostTemp; // Boost mode set point for the iron
|
uint16_t BoostTemp; // Boost mode set point for the iron
|
||||||
uint16_t CalibrationOffset; // This stores the temperature offset for this tip
|
uint16_t CalibrationOffset; // This stores the temperature offset for this tip
|
||||||
// in the iron.
|
// in the iron.
|
||||||
uint8_t PID_P; // PID P Term
|
|
||||||
uint8_t PID_I; // PID I Term
|
|
||||||
uint8_t PID_D; // PID D Term
|
|
||||||
uint8_t version; // Used to track if a reset is needed on firmware upgrade
|
|
||||||
uint8_t customTipGain; // Tip gain value if custom tuned, or 0 if using a
|
uint8_t customTipGain; // Tip gain value if custom tuned, or 0 if using a
|
||||||
// tipType param
|
// tipType param
|
||||||
#ifdef MODEL_TS80
|
#ifdef MODEL_TS80
|
||||||
uint8_t pidPowerLimit;
|
uint8_t pidPowerLimit;
|
||||||
#endif
|
#endif
|
||||||
|
uint8_t version; // Used to track if a reset is needed on firmware upgrade
|
||||||
uint32_t padding; // This is here for in case we are not an even divisor so
|
uint32_t padding; // This is here for in case we are not an even divisor so
|
||||||
// that nothing gets cut off
|
// that nothing gets cut off
|
||||||
} systemSettingsType;
|
} systemSettingsType;
|
||||||
|
|||||||
@@ -104,18 +104,15 @@ void resetSettings() {
|
|||||||
0; // Blink the temperature on the cooling screen when its > 50C
|
0; // Blink the temperature on the cooling screen when its > 50C
|
||||||
systemSettings.temperatureInF = 0; // default to 0
|
systemSettings.temperatureInF = 0; // default to 0
|
||||||
systemSettings.descriptionScrollSpeed = 0; // default to slow
|
systemSettings.descriptionScrollSpeed = 0; // default to slow
|
||||||
systemSettings.PID_P = 42; // PID tuning constants
|
|
||||||
systemSettings.PID_I = 50;
|
|
||||||
systemSettings.PID_D = 15;
|
|
||||||
|
|
||||||
#ifdef MODEL_TS100
|
#ifdef MODEL_TS100
|
||||||
|
|
||||||
systemSettings.CalibrationOffset = 800; // the adc offset in uV
|
systemSettings.CalibrationOffset = 650; // the adc offset in uV
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODEL_TS80
|
#ifdef MODEL_TS80
|
||||||
systemSettings.pidPowerLimit=24; // Sets the max pwm power limit
|
systemSettings.pidPowerLimit=24; // Sets the max pwm power limit
|
||||||
systemSettings.CalibrationOffset = 800; // the adc offset in uV
|
systemSettings.CalibrationOffset = 650; // the adc offset in uV
|
||||||
#endif
|
#endif
|
||||||
saveSettings(); // Save defaults
|
saveSettings(); // Save defaults
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user