Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Revision 37:2d9480c498c9, committed 2016-06-14
- 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;