Moved to Team 9.

Fork of LineScan by Nicholas Gan

Committer:
ng3600
Date:
Mon Mar 30 22:07:14 2015 +0000
Revision:
3:f31986cb68fd
Parent:
1:f10ec868cd71
Child:
5:9c19face64a7
Child:
6:984ccef5ca19
Added a basic proportional controller for AGC. Car now misbehaves at crossings. Very jittery at low exposure periods.

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"
ng3600 0:2d546112b0b8 3
ng3600 0:2d546112b0b8 4 #define NUM_PIX 128
ng3600 0:2d546112b0b8 5
ikrase 1:f10ec868cd71 6 /** Linescan functions (Nicholas Gan)
ikrase 1:f10ec868cd71 7 * to capture linescan frames and process them.
ikrase 1:f10ec868cd71 8 */
ikrase 1:f10ec868cd71 9
ng3600 0:2d546112b0b8 10 uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk);
ng3600 0:2d546112b0b8 11 void startRead(DigitalOut *camSi, DigitalOut *camClk);
ng3600 3:f31986cb68fd 12 int processFn(uint16_t *array, int arraySz, int* exposure);
ng3600 3:f31986cb68fd 13 int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure);