Tony Lin
/
BX-car
hello
Fork of BX-car by
camera_api.h@10:9f0ce6ba7663, 2014-06-26 (annotated)
- Committer:
- TonyLin
- Date:
- Thu Jun 26 14:29:53 2014 +0000
- Revision:
- 10:9f0ce6ba7663
- Parent:
- 7:fd976e1ced33
ok;
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:68c173249c01 | 6 | class BX_camera{ |
TonyLin | 10:9f0ce6ba7663 | 7 | public: |
TonyLin | 10:9f0ce6ba7663 | 8 | //static |
TonyLin | 10:9f0ce6ba7663 | 9 | void read(void); //block in here |
TonyLin | 10:9f0ce6ba7663 | 10 | BX_camera(); |
TonyLin | 10:9f0ce6ba7663 | 11 | int black_centerR(void); //index 0~127 |
TonyLin | 10:9f0ce6ba7663 | 12 | int black_centerL(void); |
TonyLin | 10:9f0ce6ba7663 | 13 | char sign_line_imageL[128]; |
TonyLin | 10:9f0ce6ba7663 | 14 | char sign_line_imageR[128]; |
TonyLin | 10:9f0ce6ba7663 | 15 | int de_v; |
TonyLin | 10:9f0ce6ba7663 | 16 | int de_v2; |
backman | 2:c51647d3c14d | 17 | |
TonyLin | 10:9f0ce6ba7663 | 18 | private: |
TonyLin | 10:9f0ce6ba7663 | 19 | FastAnalogIn* line_CamR; |
TonyLin | 10:9f0ce6ba7663 | 20 | FastAnalogIn* line_CamL; |
TonyLin | 10:9f0ce6ba7663 | 21 | DigitalOut* cam_clk; |
TonyLin | 10:9f0ce6ba7663 | 22 | DigitalOut* si; |
TonyLin | 10:9f0ce6ba7663 | 23 | unsigned int line_imageR[128]; //may buffer |
TonyLin | 10:9f0ce6ba7663 | 24 | unsigned int line_imageL[128]; |
TonyLin | 10:9f0ce6ba7663 | 25 | int w_f_vL; |
TonyLin | 10:9f0ce6ba7663 | 26 | int b_f_vL; |
TonyLin | 10:9f0ce6ba7663 | 27 | int w_f_vR; |
TonyLin | 10:9f0ce6ba7663 | 28 | int b_f_vR; |
backman | 0:68c173249c01 | 29 | }; |