Merge branch 'master' into reflow-in-millis

This commit is contained in:
Andrea 2024-01-28 01:10:03 +00:00 committed by GitHub
commit 1cb29ecc13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 13 deletions

View File

@ -16,6 +16,7 @@
#define MOSTFET_PIN 17
double currentTemp = 0;
@ -33,6 +34,12 @@ TFT_Display tftDisplay ;
TemperatureController temperatureController;
TFT_Display tftDisplay ;
void setup()
{
@ -89,12 +96,7 @@ void loop()
// State changed from state to newState (user input or wifi input needs to be above here)
if (newState == ReflowProcessState::PREHEAT) {
// Initalize the TFT
tftDisplay.init(&chosenReflowProfile);
//Start the reflow profile after tft to make sure the timer is accurate
chosenReflowProfile.start();
// Start the PID
pidController.start();
@ -119,13 +121,6 @@ void loop()
}
}
}
if (state == DONE)
{
// TODO: BUZZER
pidController.stop();
reflowProcessState.set(USER_INPUT);
}
}

View File

@ -168,6 +168,8 @@ public:
return curStep.calcTempAtPercentage(startTemp, percentage);
}
/**
* @brief Get the Target Temp At Process Percentage.
* @param processPercentage a number between 0 and 1. 0 is the start of the process, 1 is the end of the process