Created LineScan library to interface with line scanner. Verified that it was able to store values form camera. Needs a means to detect the line (rising/falling edge detection) and actuate servo. Needs to be merged with other branch.
LineScan.h@0:2d546112b0b8, 2015-03-13 (annotated)
- Committer:
- ng3600
- Date:
- Fri Mar 13 06:26:35 2015 +0000
- Revision:
- 0:2d546112b0b8
LineScan library to interface with the line scanner
Who changed what in which revision?
User | Revision | Line number | New 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 | |
ng3600 | 0:2d546112b0b8 | 6 | uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk); |
ng3600 | 0:2d546112b0b8 | 7 | void startRead(DigitalOut *camSi, DigitalOut *camClk); |
ng3600 | 0:2d546112b0b8 | 8 | int processFn(uint16_t *array, int arraySz); |
ng3600 | 0:2d546112b0b8 | 9 | int getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk); |