This commit is contained in:
-help 2024-01-28 03:26:55 +02:00
parent fd71798a7b
commit 0784fbddd6
3 changed files with 14 additions and 2 deletions

View File

@ -56,7 +56,7 @@ int nReflowProfiles = 3;
ReflowProfile reflowProfiles[] = {
// 138c profile Sn42Bi58
ReflowProfile(new ReflowStep[5]{
ReflowStep(ReflowProcessState::PREHEAT, 120, 35, EASE_OUT),
ReflowStep(ReflowProcessState::PREHEAT, 120, 100, EASE_OUT),
ReflowStep(ReflowProcessState::SOAK, 90, 155),
ReflowStep(ReflowProcessState::REFLOW, 45, 185, EASE_OUT),
ReflowStep(ReflowProcessState::COOL, 45, 155, EASE_OUT),

View File

@ -105,8 +105,11 @@ void loop()
if (state >= ReflowProcessState::PREHEAT && state <= ReflowProcessState::COOL)
{
pidController.loop();
ReflowStep step = chosenReflowProfile.reflowStep();
// Here we draw the actual temp vs time to the display
if (step.state != newState)
{

View File

@ -187,9 +187,18 @@ public:
uint32_t elapsedMS = timer.elapsed();
uint16_t startTimeMS = startTimes[STEPINDEX(reflowStep())] * 1000;
return (elapsedMS - startTimeMS) / 1000;
}
void toBuffer(uint8_t *b)
{
memset(b, 0, PROFILE_SERIALIZED_SIZE);