Colour sensors calibrated

Dependencies:   mbed-rtos mbed Servo QEI

Fork of ICRSEurobot13 by Thomas Branch

Revision:
32:ada943ecaceb
Parent:
22:167dacfe0b14
--- a/Processes/Printing/Printing.cpp	Wed Apr 10 14:34:07 2013 +0000
+++ b/Processes/Printing/Printing.cpp	Wed Apr 10 18:04:47 2013 +0000
@@ -61,11 +61,13 @@
     Serial pc(USBTX, USBRX);
     pc.baud(115200);
     
-    char sync[] = "ABCD";
-    cout.write(sync, 4);
-    cout << std::endl;
+    while(true){
     
-    while(true){
+        //send sync symbol
+        char sync[] = "ABCD";
+        cout.write(sync, 4);
+        cout << std::endl;
+    
         // Send number of packets
         char numtosend = 0;
         for (unsigned int v = newdataflags; v; numtosend++){v &= v - 1;}