Moved to Team 9.

Fork of LineScan by Nicholas Gan

Committer:
ng3600
Date:
Sat Nov 21 04:19:29 2015 +0000
Revision:
38:1ac5f0ab5ae6
Parent:
37:b76faff78354
Chassis basic functionality stable. Able to follow line well and receive command packets and transmit number of visible lines. Fixed bug where chassis locks up while peeking. Will need to verify if it will actually peek and see the other line.

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 37:b76faff78354 8 #define UPDATE_RATE 10 //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 38:1ac5f0ab5ae6 15
ng3600 0:2d546112b0b8 16 void startRead(DigitalOut *camSi, DigitalOut *camClk);
ng3600 38:1ac5f0ab5ae6 17
ng3600 38:1ac5f0ab5ae6 18 float processFn(uint16_t *array, int arraySz, int* exposure,
ng3600 38:1ac5f0ab5ae6 19 bool preferLeftLine, int *numLines);
ng3600 38:1ac5f0ab5ae6 20
ng3600 14:928254a609cb 21 float getLinePos(AnalogIn cam,
ng3600 14:928254a609cb 22 DigitalOut *camSi,
ng3600 14:928254a609cb 23 DigitalOut *camClk,
ng3600 14:928254a609cb 24 int *exposure,
ng3600 38:1ac5f0ab5ae6 25 bool preferLeft,
ng3600 38:1ac5f0ab5ae6 26 int *lineCt,
ng3600 20:e9f0d1483ba1 27 telemetry::NumericArray<uint16_t, NUM_PIX> &tele_linescan);
ng3600 38:1ac5f0ab5ae6 28
ng3600 18:8a65598abf2f 29 extern MODSERIAL serial;