Factory Monitor

Dependencies:   mbed

factory sense HQ

Revision:
8:e417787cb2fa
Parent:
7:854af9ba3146
Child:
9:3ee4f273d7d6
--- a/main.cpp	Tue Aug 25 14:25:05 2015 +0000
+++ b/main.cpp	Thu Sep 03 11:38:41 2015 +0000
@@ -33,7 +33,7 @@
             }
             
             else { // if the current state is LOW then ignore
-                lastSensorState[a] = sensorState;   
+                lastSensorState[a] = sensorState;
                 return zero;
             }
         }
@@ -53,7 +53,7 @@
 
 int main() {
      
-    int Values[2]; 
+    int Values[3]; 
 
 
     while(1)
@@ -64,6 +64,8 @@
             if (i == Outputs){ Values[i] += outputs.Go_and_check(i); }
             
         };
-        
+    Rejects = (Inputs - Outputs);
+    pc.printf(Inputs, Outputs, Rejects \n);
+    wait(0.2);    
     }
-}
+}
\ No newline at end of file