Tony Lin
/
BX-car_s
share
Fork of BX-car_2 by
camera_api.h@20:4ed21397e775, 2014-06-29 (annotated)
- Committer:
- TonyLin
- Date:
- Sun Jun 29 16:20:22 2014 +0000
- Revision:
- 20:4ed21397e775
- Parent:
- 19:eb0552a0ddae
6/30
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" |
TonyLin | 20:4ed21397e775 | 3 | |
TonyLin | 20:4ed21397e775 | 4 | |
backman | 2:c51647d3c14d | 5 | //cause same si and clk camR ,camL are synchronous |
TonyLin | 20:4ed21397e775 | 6 | |
backman | 0:68c173249c01 | 7 | class BX_camera{ |
TonyLin | 20:4ed21397e775 | 8 | |
TonyLin | 20:4ed21397e775 | 9 | public: |
TonyLin | 20:4ed21397e775 | 10 | |
TonyLin | 20:4ed21397e775 | 11 | //static |
TonyLin | 20:4ed21397e775 | 12 | void read(void); //block in here |
TonyLin | 20:4ed21397e775 | 13 | |
TonyLin | 20:4ed21397e775 | 14 | |
TonyLin | 20:4ed21397e775 | 15 | |
TonyLin | 20:4ed21397e775 | 16 | |
TonyLin | 20:4ed21397e775 | 17 | BX_camera(int p); |
TonyLin | 20:4ed21397e775 | 18 | |
TonyLin | 20:4ed21397e775 | 19 | |
backman | 3:c5f2281b3ed2 | 20 | int black_centerR(void); //index 0~127 |
TonyLin | 20:4ed21397e775 | 21 | int black_centerL(void); |
TonyLin | 20:4ed21397e775 | 22 | |
TonyLin | 20:4ed21397e775 | 23 | |
backman | 2:c51647d3c14d | 24 | char sign_line_imageL[128]; |
TonyLin | 20:4ed21397e775 | 25 | char sign_line_imageR[128]; |
TonyLin | 20:4ed21397e775 | 26 | |
backman | 7:fd976e1ced33 | 27 | int de_v; |
backman | 7:fd976e1ced33 | 28 | int de_v2; |
backman | 7:fd976e1ced33 | 29 | |
TonyLin | 20:4ed21397e775 | 30 | |
TonyLin | 20:4ed21397e775 | 31 | private: |
TonyLin | 20:4ed21397e775 | 32 | |
TonyLin | 20:4ed21397e775 | 33 | FastAnalogIn* line_CamR; |
TonyLin | 20:4ed21397e775 | 34 | FastAnalogIn* line_CamL; |
TonyLin | 20:4ed21397e775 | 35 | DigitalOut* cam_clk; |
TonyLin | 20:4ed21397e775 | 36 | DigitalOut* si; |
TonyLin | 20:4ed21397e775 | 37 | |
TonyLin | 20:4ed21397e775 | 38 | unsigned int line_imageR[128]; //may buffer |
TonyLin | 20:4ed21397e775 | 39 | unsigned int line_imageL[128]; |
TonyLin | 20:4ed21397e775 | 40 | |
TonyLin | 20:4ed21397e775 | 41 | |
TonyLin | 20:4ed21397e775 | 42 | int w_f_vL; |
TonyLin | 20:4ed21397e775 | 43 | int b_f_vL; |
TonyLin | 20:4ed21397e775 | 44 | |
TonyLin | 20:4ed21397e775 | 45 | int w_f_vR; |
TonyLin | 20:4ed21397e775 | 46 | int b_f_vR; |
TonyLin | 20:4ed21397e775 | 47 | |
TonyLin | 20:4ed21397e775 | 48 | |
TonyLin | 20:4ed21397e775 | 49 | int padding; |
TonyLin | 20:4ed21397e775 | 50 | |
TonyLin | 20:4ed21397e775 | 51 | |
TonyLin | 20:4ed21397e775 | 52 | |
TonyLin | 20:4ed21397e775 | 53 | |
TonyLin | 20:4ed21397e775 | 54 | }; |