Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. void loop()
  2. {
  3. double temp = thermocouple.readCelsius();
  4. if(!isnan(temp)){
  5. Input = temp;
  6. }
  7. Input = temp;
  8. myPID.Compute();
  9. if (millis() - lastRun > pausetime)
  10. { //time to shift the Relay Window
  11. lastRun = millis();
  12. sendTemp(Input);
  13. sendOutput();
  14. sendInternTemp(thermocouple.readInternal());
  15. }
  16. updateOutput(Output);
  17. nexLoop(nex_listen_list);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement