Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
4:91e7f2c8999f
Parent:
1:f10ec868cd71
Child:
5:9c19face64a7
diff -r f10ec868cd71 -r 91e7f2c8999f LineScan.cpp
--- a/LineScan.cpp	Fri Mar 13 08:18:05 2015 +0000
+++ b/LineScan.cpp	Tue Mar 31 19:10:18 2015 +0000
@@ -41,7 +41,7 @@
 }
 
 //call after integration time is done, returns index of array line is expected to be at
-int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk){
+int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, telemetry::NumericArray<uint16_t, 128> &tele_linescan){
     uint16_t lineAry[NUM_PIX];          // It might be nice to make this static and add double buffering and export of pointers like I had. 
     int position;
     
@@ -49,6 +49,7 @@
     startRead(camSi, camClk);
     for(int i = 0; i < NUM_PIX; i++){
         lineAry[i] = read1Bit(cam, camClk);
+        tele_linescan[i] = lineAry[i];
     }
     
     //process line scan data