Update TipThermoModel.cpp
This commit is contained in:
@@ -72,9 +72,10 @@ uint32_t TipThermoModel::convertFtoC(uint32_t degF) {
|
|||||||
uint32_t TipThermoModel::getTipInC(bool sampleNow) {
|
uint32_t TipThermoModel::getTipInC(bool sampleNow) {
|
||||||
int32_t currentTipTempInC = TipThermoModel::convertTipRawADCToDegC(getTipRawTemp(sampleNow));
|
int32_t currentTipTempInC = TipThermoModel::convertTipRawADCToDegC(getTipRawTemp(sampleNow));
|
||||||
currentTipTempInC += getHandleTemperature(sampleNow) / 10; // Add handle offset
|
currentTipTempInC += getHandleTemperature(sampleNow) / 10; // Add handle offset
|
||||||
// Power usage indicates that our tip temp is lower than our thermocouple temp.
|
|
||||||
// I found a number that doesn't unbalance the existing PID, causing overshoot.
|
// Power usage indicates that our tip temp is lower than our thermocouple temp.
|
||||||
// This could be tuned in concert with PID parameters...
|
// I found a number that doesn't unbalance the existing PID, causing overshoot.
|
||||||
|
// This could be tuned in concert with PID parameters...
|
||||||
#ifdef THERMAL_MASS_OVERSHOOTS
|
#ifdef THERMAL_MASS_OVERSHOOTS
|
||||||
currentTipTempInC += x10WattHistory.average() / 25;
|
currentTipTempInC += x10WattHistory.average() / 25;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user