Program for the water play project for the course Software Testing Practical 2016 given at the VU University

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Revision:
62:52cceb263591
Parent:
58:b5f0c0f305ff
Child:
63:59335eb8bdbc
--- a/PIDController.cpp	Sun Jun 19 23:07:21 2016 +0000
+++ b/PIDController.cpp	Mon Jun 20 09:13:07 2016 +0000
@@ -20,9 +20,9 @@
     
     // Control the heater
     // This could be done in the pumping function as well, if needed
-    if (this->isHeating() && this->temp->getValue() >= 33.0f) {
+    if (this->isHeating() && this->temp->getValue() >= TEMP_MIN_UNDESIRED + 1) {
         this->setHeating(false);
-    } else if (!this->isHeating() && this->temp->getValue() < 32.0f) {
+    } else if (!this->isHeating() && this->temp->getValue() < TEMP_MIN_UNDESIRED) {
         this->setHeating(true);
     }