Moved to Team 9.

Fork of LineScan by Nicholas Gan

LineScan.h

Committer:
ng3600
Date:
2015-04-23
Revision:
19:5a29c887c8eb
Parent:
18:8a65598abf2f
Child:
20:e9f0d1483ba1

File content as of revision 19:5a29c887c8eb:

#include "mbed.h"
#include "rtos.h"
#include "telemetry-mbed.h"
#include "MODSERIAL.h"

#define NUM_PIX 128
#define SKIP 15
#define UPDATE_RATE 20 //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);//, telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan_diff);
float getLinePos(AnalogIn cam, 
                 DigitalOut *camSi, 
                 DigitalOut *camClk, 
                 int *exposure, 
                 telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan);//,
                 //telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan_diff);
extern MODSERIAL serial;