Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: classLaserSensingTrajectory.cpp
- Revision:
- 37:fa6b1f15819f
- Parent:
- 36:233b12d0b1f0
- Child:
- 42:c4e9c1116af4
diff -r 233b12d0b1f0 -r fa6b1f15819f classLaserSensingTrajectory.cpp --- 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; } }