Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Revision:
11:62f7183a03e7
Parent:
10:6f8e48dca1bd
Child:
24:4e52031a495b
--- a/classLaserSensingTrajectory.cpp	Wed Apr 11 14:51:08 2012 +0000
+++ b/classLaserSensingTrajectory.cpp	Thu Apr 12 05:16:48 2012 +0000
@@ -42,10 +42,10 @@
     for (int i = 0; i <  lsdTrajectory.size(); i++) {
         int delayedpoint=(i+auxSize+delayMirrorSamples)%auxSize; // this way we can have negative delayMirrorSamples if required (would be absurd though)
         if (lsdTrajectory[delayedpoint].intensity>=autoThreshold) { // this means a WHITE zone:
-            lsdTrajectory[i].lightZone= -1;//1;
+            lsdTrajectory[i].lightZone=  -1;
         //    counterLight++;
         } else { // something touched: DARK ZONE
-            lsdTrajectory[i].lightZone= -1;// 2;//0;
+            lsdTrajectory[i].lightZone= 2;
             lightTouched=true; // (for the whole loop)
         }
     }