Moved to Team 9.

Fork of LineScan by Nicholas Gan

Committer:
ng3600
Date:
Thu Apr 23 17:40:02 2015 +0000
Revision:
19:5a29c887c8eb
Parent:
18:8a65598abf2f
Child:
20:e9f0d1483ba1
Tuned AGC, handles sudden changes in light well now.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ng3600 0:2d546112b0b8 1 #include "mbed.h"
ng3600 0:2d546112b0b8 2 #include "rtos.h"
ikrase 6:984ccef5ca19 3 #include "telemetry-mbed.h"
ng3600 18:8a65598abf2f 4 #include "MODSERIAL.h"
ng3600 0:2d546112b0b8 5
ng3600 0:2d546112b0b8 6 #define NUM_PIX 128
ng3600 8:b9ec2f3e12b6 7 #define SKIP 15
ng3600 14:928254a609cb 8 #define UPDATE_RATE 20 //ms
ng3600 0:2d546112b0b8 9
ikrase 1:f10ec868cd71 10 /** Linescan functions (Nicholas Gan)
ikrase 1:f10ec868cd71 11 * to capture linescan frames and process them.
ikrase 1:f10ec868cd71 12 */
ikrase 1:f10ec868cd71 13
ng3600 0:2d546112b0b8 14 uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk);
ng3600 0:2d546112b0b8 15 void startRead(DigitalOut *camSi, DigitalOut *camClk);
ng3600 19:5a29c887c8eb 16 float processFn(uint16_t *array, int arraySz, int* exposure);//, telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan_diff);
ng3600 14:928254a609cb 17 float getLinePos(AnalogIn cam,
ng3600 14:928254a609cb 18 DigitalOut *camSi,
ng3600 14:928254a609cb 19 DigitalOut *camClk,
ng3600 14:928254a609cb 20 int *exposure,
ng3600 19:5a29c887c8eb 21 telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan);//,
ng3600 19:5a29c887c8eb 22 //telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan_diff);
ng3600 18:8a65598abf2f 23 extern MODSERIAL serial;