good

Dependencies:   mbed

Fork of BX-car by Clark Lin

Committer:
backman
Date:
Wed Jun 11 14:41:52 2014 +0000
Revision:
6:5a39bde2e016
Parent:
3:c5f2281b3ed2
Child:
7:fd976e1ced33
three;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
backman 1:82bc25a7b68b 1 #include "bx-adc.h"
backman 2:c51647d3c14d 2 #include "mbed.h"
backman 0:68c173249c01 3
backman 0:68c173249c01 4
backman 2:c51647d3c14d 5 //cause same si and clk camR ,camL are synchronous
backman 2:c51647d3c14d 6
backman 0:68c173249c01 7 class BX_camera{
backman 0:68c173249c01 8
backman 2:c51647d3c14d 9 public:
backman 2:c51647d3c14d 10
backman 2:c51647d3c14d 11 //static
backman 2:c51647d3c14d 12 void read(void); //block in here
backman 2:c51647d3c14d 13
backman 3:c5f2281b3ed2 14
backman 2:c51647d3c14d 15
backman 2:c51647d3c14d 16
backman 2:c51647d3c14d 17 BX_camera();
backman 2:c51647d3c14d 18
backman 3:c5f2281b3ed2 19
backman 3:c5f2281b3ed2 20 int black_centerR(void); //index 0~127
backman 3:c5f2281b3ed2 21 int black_centerL(void);
backman 2:c51647d3c14d 22
backman 2:c51647d3c14d 23
backman 2:c51647d3c14d 24 char sign_line_imageL[128];
backman 2:c51647d3c14d 25 char sign_line_imageR[128];
backman 2:c51647d3c14d 26
backman 6:5a39bde2e016 27 int debugV;
backman 6:5a39bde2e016 28 int debugV2;
backman 2:c51647d3c14d 29
backman 2:c51647d3c14d 30
backman 2:c51647d3c14d 31 private:
backman 2:c51647d3c14d 32
backman 2:c51647d3c14d 33 FastAnalogIn* line_CamR;
backman 2:c51647d3c14d 34 FastAnalogIn* line_CamL;
backman 2:c51647d3c14d 35 DigitalOut* cam_clk;
backman 2:c51647d3c14d 36 DigitalOut* si;
backman 3:c5f2281b3ed2 37
backman 3:c5f2281b3ed2 38 unsigned int line_imageR[128]; //may buffer
backman 3:c5f2281b3ed2 39 unsigned int line_imageL[128];
backman 3:c5f2281b3ed2 40
backman 2:c51647d3c14d 41
backman 2:c51647d3c14d 42 int w_f_vL;
backman 2:c51647d3c14d 43 int b_f_vL;
backman 2:c51647d3c14d 44
backman 2:c51647d3c14d 45 int w_f_vR;
backman 2:c51647d3c14d 46 int b_f_vR;
backman 2:c51647d3c14d 47
backman 0:68c173249c01 48
backman 0:68c173249c01 49
backman 0:68c173249c01 50
backman 0:68c173249c01 51
backman 0:68c173249c01 52
backman 0:68c173249c01 53
backman 0:68c173249c01 54 };