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.
Fork of TCTF_Control_Main by
Revision 19:fec49ef9944b, committed 2018-06-19
- Comitter:
- jrodenburg
- Date:
- Tue Jun 19 19:10:47 2018 +0000
- Parent:
- 18:029a1283a878
- Child:
- 20:8c79659c71e4
- Commit message:
- Latest C code revision with faster temperature reads, sending all channel temperatures for logging, and optimization of control loop (removal of inner chiller control)
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jun 15 18:00:58 2018 +0000
+++ b/main.cpp Tue Jun 19 19:10:47 2018 +0000
@@ -14,6 +14,8 @@
#define DEBUG2 0
#define DEBUG3 0
#define DEBUG5 0
+#define UID_PRINT 1
+#define TEMP_PRINT 0
#define CHN_COUNT 8
#define MIN_TEMP 10
#define MAX_TEMP 65
@@ -802,7 +804,7 @@
while(1) {
//test_mcp23008(0);
- if(DEBUG3) {
+ if(UID_PRINT) {
pc.printf("DBG: <%f>[UID: %04X%08X%08X] PSTARTED\n", t.read(), UIDMH, UIDML, UIDL);
}
@@ -852,7 +854,7 @@
//Error check on fixture
error_check(chnl, currentTempFront, currentTempBack, time_min);
- if(DEBUG5) pc.printf("TEMPERATURE: [%d] Temp: F: %f B: %f\r\n", chnl, currentTempFront, currentTempBack);
+ if(TEMP_PRINT) pc.printf("DBG: TEMPERATURE: [%d] Temp: F: %f B: %f\r\n", chnl, currentTempFront, currentTempBack);
//CONTROL LOOP:
if(chnlStatus[chnl].status == 1){
