Factory Monitor

Dependencies:   mbed

factory sense HQ

Revision:
10:0333f8137979
Parent:
9:3ee4f273d7d6
Child:
11:bcac43b76579
--- a/main.cpp	Thu Sep 03 13:50:38 2015 +0000
+++ b/main.cpp	Fri Sep 11 15:28:50 2015 +0000
@@ -29,6 +29,8 @@
             // if the state has changed, check to see if it is a change from high to low or low to high             
             if (sensorState == 1){ // if the current state is HIGH then increment the counter
                 lastSensorState[a] = sensorState;
+                pc.printf("sensor state = %d", sensorState);
+                pc.printf("last sensor state= %d", lastSensorState);
                 return sensorState;
             }
             
@@ -65,9 +67,7 @@
             
         };
     Rejects = (Inputs - Outputs);
-    pc.printf("inputs %d \n",Inputs);
-    pc.printf("outputs %d \n",Outputs);
-    pc.printf("rejects %d \n",Rejects);
+    pc.printf("go and check %d", Go_and_check);
     wait(0.2);    
     }
 }
\ No newline at end of file