Justin Rodenburg / Mbed 2 deprecated TCTF_Control_Main

Dependencies:   MODSERIAL mbed

Fork of TCTF_Control_Main by Rivian Irvine Team

Files at this revision

API Documentation at this revision

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){