Saltware / Mbed 2 deprecated Water Play

Dependencies:   mbed DRV88255 TextLCD Ping mbed-rtos

Files at this revision

API Documentation at this revision

Comitter:
sbouber1
Date:
Tue Jun 14 15:56:14 2016 +0000
Parent:
36:8aeb014bd651
Child:
38:930469a33001
Commit message:
test fix...

Changed in this revision

testing.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/testing.cpp	Tue Jun 14 15:54:12 2016 +0000
+++ b/testing.cpp	Tue Jun 14 15:56:14 2016 +0000
@@ -61,12 +61,19 @@
     DEF_MOCKS(temp_heating_mock, salt_mock_steady, prox_mock_steady);
     PIDController pidc(false,0,&temp,&salt,&prox);
     
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=29!");
     Thread::wait(1000);
+    
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=30!");
     Thread::wait(1000);
+    
+    pidc.run();
     tc->assert(pidc.is_heating(), "PIDController should be heating at temp=31!");
     Thread::wait(1500);
+    
+    pidc.run();
     tc->assert(!pidc.is_heating(), "PIDController shouldn't be heating at temp=32.5!");
     
     return true;