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