fix temp from prev soldering and also add startTimes

This commit is contained in:
Andrea Baccega 2024-01-28 17:32:41 +01:00
parent a594c07103
commit 74d16003d2
2 changed files with 14 additions and 3 deletions

View File

@ -29,6 +29,9 @@ void TFT_Display::init(ReflowProfile *profile)
clear();
prevousTempXY.x = graphXY.x;
prevousTempXY.y = graphXY.y;
tft.setTextColor(ST77XX_WHITE);
tft.setTextSize(2);
TFT_XY xy = getCenteredTextXY(profile->name);

View File

@ -95,6 +95,7 @@ public:
uint16_t endTimes[5] = {0};
uint16_t startTimes[5] = {0};
uint8_t endTemps[5] = {0};
uint8_t startTemps[5] = {0};
StopWatch timer;
void start()
@ -118,11 +119,18 @@ public:
startTimes[3] = endTimes[2];
startTimes[4] = endTimes[3];
endTemps[0] = steps[0].calcTempAtPercentage(20, 1);
startTemps[0] = 20;
endTemps[0] = steps[0].calcTempAtPercentage(startTemps[0], 1);
endTemps[1] = steps[1].calcTempAtPercentage(endTemps[0], 1);
endTemps[2] = steps[2].calcTempAtPercentage(endTemps[1], 1);
endTemps[3] = steps[3].calcTempAtPercentage(endTemps[2], 1);
endTemps[4] = steps[4].calcTempAtPercentage(endTemps[3], 1);
startTemps[1] = endTemps[0];
startTemps[2] = endTemps[1];
startTemps[3] = endTemps[2];
startTemps[4] = endTemps[3];
}
ReflowStep reflowStep()