Moved to Team 9.

Fork of LineScan by Nicholas Gan

Revision:
14:928254a609cb
Parent:
12:ce6d9f7dc76e
Child:
18:8a65598abf2f
--- a/LineScan.h	Fri Apr 10 00:38:31 2015 +0000
+++ b/LineScan.h	Sat Apr 18 00:19:59 2015 +0000
@@ -4,6 +4,7 @@
 
 #define NUM_PIX 128
 #define SKIP 15
+#define UPDATE_RATE 20 //ms
 
 /** Linescan functions (Nicholas Gan)
  * to capture linescan frames and process them. 
@@ -11,5 +12,10 @@
 
 uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk);
 void startRead(DigitalOut *camSi, DigitalOut *camClk);
-float processFn(uint16_t *array, int arraySz, int* exposure);
-float getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure, telemetry::NumericArray<uint16_t, 128> &tele_linescan);
\ No newline at end of file
+float processFn(uint16_t *array, int arraySz, int* exposure, telemetry::NumericArray<uint16_t, NUM_PIX -  2 * SKIP> &tele_linescan_diff);
+float getLinePos(AnalogIn cam, 
+                 DigitalOut *camSi, 
+                 DigitalOut *camClk, 
+                 int *exposure, 
+                 telemetry::NumericArray<uint16_t, 128> &tele_linescan,
+                 telemetry::NumericArray<uint16_t, NUM_PIX -  2 * SKIP> &tele_linescan_diff);
\ No newline at end of file