Advertisement
Guest User

Untitled

a guest
May 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. phUnit phUnit1(&Serial1);
  2. phUnit phUnit2(&Serial2);
  3.  
  4.  
  5. #pragma once
  6. #ifndef UnitController_h
  7. #define UnitController_h
  8.  
  9. class UnitController {
  10.  
  11. private:
  12. PumpMotor *pumpA;
  13. PumpMotor *pumpB;
  14. phUnit _phUnit;
  15. int lastPassA = 0;
  16. int lastPassB = 0;
  17. int lastPassC = 0;
  18. bool running = false;
  19. String from_host = "";
  20. const int sec60 = 1000UL * 10;
  21.  
  22. public:
  23. UnitController(PumpMotor *pumpA, PumpMotor *pumpB, phUnit _tassa);
  24.  
  25. };
  26.  
  27.  
  28. #endif
  29.  
  30. #pragma once
  31. #include "phUnit.h"
  32. #include "PumpMotor.h"
  33. #include "UnitController.h"
  34.  
  35. UnitController::UnitController(PumpMotor *pumpA, PumpMotor *pumpB, phUnit tassa) {
  36. this->pumpA = pumpA;
  37. this->pumpB = pumpA;
  38. this->_phUnit = tassa;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement