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.
Dependencies: mbed FastIO FastPWM USBDevice
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
