Moved to Team 9.
Fork of LineScan by
LineScan.h
- Committer:
- ng3600
- Date:
- 2015-11-13
- Revision:
- 33:cc3810ac5365
- Parent:
- 28:3006d46dcec5
- Child:
- 34:5c35287ff49e
- Child:
- 35:ac9f45bd5352
File content as of revision 33:cc3810ac5365:
#include "mbed.h" #include "rtos.h" #include "telemetry-mbed.h" #include "MODSERIAL.h" #define NUM_PIX 128 #define SKIP 15 #define UPDATE_RATE 7 //ms /** Linescan functions (Nicholas Gan) * to capture linescan frames and process them. */ uint16_t read1Bit(AnalogIn cam, DigitalOut *camClk); void startRead(DigitalOut *camSi, DigitalOut *camClk); float processFn(uint16_t *array, int arraySz, int* exposure, bool preferLeftLine, int *numLines); float getLinePos(AnalogIn cam, DigitalOut *camSi, DigitalOut *camClk, int *exposure, bool preferLeft, int *lineCt, telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan); extern MODSERIAL serial;