Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: classLaserSensingTrajectory.cpp
- Revision:
- 40:3ba2b0ea9f33
- Parent:
- 37:fa6b1f15819f
--- a/classLaserSensingTrajectory.cpp Wed Oct 16 15:54:39 2013 +0000 +++ b/classLaserSensingTrajectory.cpp Wed Oct 16 16:14:27 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= 2; + lsdTrajectory[i].lightZone= 0; isDarkZone=true; } } @@ -84,3 +84,4 @@ // Return lightTouched for commodity: return(lightTouched); } +