Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop()
- {
- if(safeToRun){
- double temp = thermocouple.readCelsius();
- if(isnan(temp))
- {
- temp = -100.0;
- Output = 0;
- safeToRun = false;
- sendTemp(temp);
- sendOutput();
- }
- Input = temp;
- //Input = thermocouple.readCelsius();
- if(safeToRun){
- myPID.Compute();
- }
- if (millis() - lastRun > pausetime)
- { //time to shift the Relay Window
- lastRun = millis();
- sendTemp(Input);
- sendOutput();
- sendInternTemp(thermocouple.readInternal());
- }
- updateOutput(Output);
- }
- nexLoop(nex_listen_list);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement