Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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); } +