Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Revision:
4:db38665c3727
Parent:
3:d8948c5b2951
Child:
5:09be5bbb5020
--- a/src/main.cpp	Tue Nov 27 17:47:57 2018 +0000
+++ b/src/main.cpp	Thu Nov 29 00:07:25 2018 +0000
@@ -40,10 +40,12 @@
 unsigned int boardsActive;
 unsigned int v48, v24, v12; // Voltage divide ratio is a little low due to substituting 10k resistors in place of the 100k. The 100k caused the opamps to oscillate.
 unsigned int i48, i24, i12;
+unsigned int binCode[6];
+unsigned int thermCode[17];
 
 int main()
 {
-   int stopExecuted = 0;
+   //int stopExecuted = 0;
 
    extchlat = OFF;
    setBoardEnables(ALLOFF);
@@ -61,6 +63,13 @@
    while (1)
    {
       processCommand();
+      
+      if(running){
+          getADCvolts();
+          getADCamps();
+          updateControls();
+      }
+      
       //myled = 1;
       //wait(1.0);
       //myled = 0;