good

Dependencies:   mbed

Fork of BX-car by Clark Lin

Committer:
even
Date:
Wed Jun 25 05:59:29 2014 +0000
Revision:
11:ffd762ae141b
Parent:
7:fd976e1ced33
1st PID complete

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 7:fd976e1ced33 27 int de_v;
backman 7:fd976e1ced33 28 int de_v2;
backman 7:fd976e1ced33 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 };