Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Revision:
37:fa6b1f15819f
Parent:
36:233b12d0b1f0
Child:
40:3ba2b0ea9f33
--- a/classLaserSensingTrajectory.cpp	Wed Mar 13 11:38:48 2013 +0000
+++ b/classLaserSensingTrajectory.cpp	Wed Mar 13 12:29:37 2013 +0000
@@ -64,10 +64,10 @@
     for (unsigned short i = 0; i <  auxSize; i++) {
         unsigned short 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;
+            lsdTrajectory[i].lightZone= -1;
             isLightZone=true;
         } else { // this means DARK ZONE
-            lsdTrajectory[i].lightZone= 0;
+            lsdTrajectory[i].lightZone= 2;
             isDarkZone=true;
         }
     }