Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
5:9c19face64a7
Parent:
3:f31986cb68fd
Parent:
4:91e7f2c8999f
--- a/LineScan.cpp	Mon Mar 30 22:07:14 2015 +0000
+++ b/LineScan.cpp	Tue Mar 31 19:15:17 2015 +0000
@@ -70,14 +70,15 @@
 }
 
 //call after integration time is done, returns index of array line is expected to be at and new exposure time
-int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure){
-    uint16_t lineAry[NUM_PIX];
+int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int* exposure, 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;
     
     //read 
     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