Pinscape Controller version 1 fork. This is a fork to allow for ongoing bug fixes to the original controller version, from before the major changes for the expansion board project.
Dependencies: FastIO FastPWM SimpleDMA mbed
Fork of Pinscape_Controller by
Diff: ccdSensor.h
- Revision:
- 40:cc0d9814522b
- Parent:
- 35:e959ffba78fd
- Child:
- 43:7a6364d82a41
--- a/ccdSensor.h Mon Jan 11 21:08:36 2016 +0000 +++ b/ccdSensor.h Wed Feb 03 22:57:25 2016 +0000 @@ -52,9 +52,9 @@ // determine which end is brighter uint16_t p1 = pix[0]; uint16_t p2 = pix[nlpix-1]; - int si = 1, di = 1; + int si = 0, di = 1; if (p1 < p2) - si = nlpix, di = -1; + si = nlpix - 1, di = -1; // figure the shadow edge threshold - just use the midpoint // of the levels at the bright and dark ends