Formatting
This commit is contained in:
@@ -244,10 +244,10 @@ uint32_t TipThermoModel::convertFtoC(uint32_t degF) {
|
|||||||
}
|
}
|
||||||
return ((degF - 32) * 5) / 9;
|
return ((degF - 32) * 5) / 9;
|
||||||
}
|
}
|
||||||
volatile uint32_t lastTemp=0;
|
volatile uint32_t lastTemp = 0;
|
||||||
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));
|
||||||
lastTemp=currentTipTempInC;
|
lastTemp = currentTipTempInC;
|
||||||
currentTipTempInC += getHandleTemperature() / 10; // Add handle offset
|
currentTipTempInC += getHandleTemperature() / 10; // Add handle offset
|
||||||
// Power usage indicates that our tip temp is lower than our thermocouple temp.
|
// 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.
|
// I found a number that doesn't unbalance the existing PID, causing overshoot.
|
||||||
|
|||||||
Reference in New Issue
Block a user