Working on rewriting how we acquire data from LTC chip and sending all temp data over serial for python logging
Fork of TCTF_Control_Main by
Revision 20:8c79659c71e4, committed 2018-06-20
- Comitter:
- jrodenburg
- Date:
- Wed Jun 20 00:19:13 2018 +0000
- Parent:
- 19:fec49ef9944b
- Commit message:
- Made 3 major changes:; 1. Updated how we read temperatures (I2C write all channel, than read all channels); 2. Got rid of inner cooling loop that stopped control loop if the channel was cooling and really close to set point ; 3. Send all temp. data
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fec49ef9944b -r 8c79659c71e4 main.cpp --- a/main.cpp Tue Jun 19 19:10:47 2018 +0000 +++ b/main.cpp Wed Jun 20 00:19:13 2018 +0000 @@ -16,6 +16,7 @@ #define DEBUG5 0 #define UID_PRINT 1 #define TEMP_PRINT 0 +#define LOOP_TIME 0 #define CHN_COUNT 8 #define MIN_TEMP 10 #define MAX_TEMP 65 @@ -828,7 +829,7 @@ sendTempReadings(); time_sec = t.read(); - pc.printf("\r TIME: %f s\r\n", time_sec); + if(LOOP_TIME) pc.printf("\r TIME: %f s\r\n", time_sec); //CONTROL LOOP: LOOPS THROUGH EVERY CHANNEL AND CONTROLS THE FIXTURE IN RESPONSE for(int chnl = 0; chnl < CHN_COUNT; chnl++){