Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
10:6b6c3db74538
Parent:
9:5226617d2019
--- a/LineScan.cpp	Fri Apr 03 00:27:53 2015 +0000
+++ b/LineScan.cpp	Thu Apr 09 18:08:39 2015 +0000
@@ -73,7 +73,7 @@
 }
 
 //call after integration time is done, returns index of array line is expected to be at and new exposure time
-float getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure){ // telemetry::NumericArray<uint16_t, 128> &tele_linescan){
+float getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure, telemetry::NumericArray<uint16_t, 128> &tele_linescan){
     uint16_t lineAry[NUM_PIX];
     float position;
     
@@ -81,7 +81,7 @@
     startRead(camSi, camClk);
     for(int i = 0; i < NUM_PIX; i++){
         lineAry[i] = read1Bit(cam, camClk);
-        //tele_linescan[i] = lineAry[i];
+        tele_linescan[i] = lineAry[i];
     }
     
     //process line scan data
@@ -90,11 +90,4 @@
     return position;
 }
 
-/*
-sample call (handler thread):
 
-while(1){
-   linePos  = getLinePos(cameraIn1, si, clk, &exposureTime);   //volatile linePos, replace with steering angle and read 2 cameras?
-   Thread::wait(exposureTime);    //sleep for 14 us
-}
-*/