Moved to Team 9.

Fork of LineScan by Nicholas Gan

Committer:
ng3600
Date:
Mon Nov 16 21:53:01 2015 +0000
Revision:
35:ac9f45bd5352
Parent:
33:cc3810ac5365
Child:
36:ad1f3321ec84
Semi Functional, able to follow line most of the time

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 35:ac9f45bd5352 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 33:cc3810ac5365 16 float processFn(uint16_t *array, int arraySz, int* exposure, bool preferLeftLine, int *numLines);
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 33:cc3810ac5365 21 bool preferLeft,
ng3600 33:cc3810ac5365 22 int *lineCt,
ng3600 20:e9f0d1483ba1 23 telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan);
ng3600 18:8a65598abf2f 24 extern MODSERIAL serial;