Moved to Team 9.

Fork of LineScan by Nicholas Gan

Committer:
ng3600
Date:
Thu May 21 20:27:53 2015 +0000
Revision:
28:3006d46dcec5
Parent:
20:e9f0d1483ba1
Child:
30:c775c6d13cdb
Child:
33:cc3810ac5365
Optimizations made to run indoors. Note that the maximum exposure is 7ms

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 28:3006d46dcec5 8 #define UPDATE_RATE 7 //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 20:e9f0d1483ba1 16 float processFn(uint16_t *array, int arraySz, int* exposure);
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 20:e9f0d1483ba1 21 telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan);
ng3600 18:8a65598abf2f 22 extern MODSERIAL serial;