永发信息网

第六届飞思卡尔智能车大赛摄像头组用的什么摄像头

答案:2  悬赏:20  手机版
解决时间 2021-02-06 22:09
第六届飞思卡尔智能车大赛摄像头组用的什么摄像头
最佳答案
HQ7620 或 OV7620
全部回答
main.c #include <hidef.h> #include <mc9s12db128.h> #pragma link_info derivative "mc9s12db128b" #include "define.h" #include "init.h" // variable used in video process volatile unsigned char image_data[row_max][line_max] ; // data array of picture unsigned char black_x[row_max] ; // 0ne-dimensional array unsigned char row ; // x-position of the array unsigned char line ; // y-position of the array unsigned int row_count ; // row counter unsigned char line_sample ; // used to counter in ad unsigned char row_image ; unsigned char line_temp ; // temperary variable used in data transfer unsigned char sample_data[line_max] ; // used to save one-dimension array got in interruption // variables below are used in speed measure unsigned char pulse[5] ; // used to save data in pa process unsigned char counter; // temporary counter in speed detect unsigned char cur_speed; // current speed short stand; short data; unsigned char curve ; // valve used to decide straight or turn short bounds(short data); short fuzzylogic(short stand); unsigned char receive_sci(void) // receive data through sci { unsigned char sci_data; while(sci0sr1_rdrf!=1); sci_data=sci0drl; return sci_data; } void transmit_sci(unsigned char transmit_data) // send data through sci { while(sci0sr1_tc!=1); while(sci0sr1_tdre!=1); sci0drl=transmit_data; } unsigned char abs_sub(unsigned char num1, unsigned char num2) { unsigned char difference; if(num1>=num2){ difference=num1-num2; }else{ difference=num2-num1; } return difference; } void pwm_set(unsigned int dutycycle) { pwmdty1=dutycycle&0x00ff; pwmdty0=dutycycle>>8; } void get_black_wire(void) // used to extract black wire { unsigned char i; for(row=0;row<row_max;row++){ for(line=line_min;line<line_max-3;line++){ if(image_data[row][line]>image_data[row][line+3]+valve){ for(i=3;i<10;i++){ if(image_data[row][line+i]+valve<image_data[row][line+i+3]){ black_x[row]=line+i/2+2; i=10; } } line=line_max; } else{ //black_x[row]=(black_x[row]/45)*78; } } } } /*----------------------------------------------------------------------------*\ 这是第一届上海交通大学cybersmart技术报告里面的. 智能车论坛里有很多.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
远征地址在什么地方,我要处理点事
你好.我骑的是一杂牌小太子125的.速度到了六
中国人寿保险股份有限公司石柱土家族自治县支
100占300的百分之几
联合二手车交易市场地址在什么地方,我要处理
潮州去张家界6天游多少钱
新华人寿保险股份有限公司临安市营销服务部怎
真三国无双5貂蝉会在哪关一直跟着吕布
极速汽车销售有限公司地址在什么地方,我要处
EXCEL同行去掉重复值,不是去掉重复行,请区
抚丗到资溪有多少公里路
大便英文怎么说
长远汽车销售服务有限公司地址有知道的么?有
四庆副食经营部在哪里啊,我有事要去这个地方
想做投资,银行的利息太低了,禄安宝的投资产
推荐资讯
陈州小磨香油店地址有知道的么?有点事想过去
韩国电视购物有哪些
怎样计算利润
小商品大饰界地址在什么地方,想过去办事
大理石台面怎么套定额
沉香阁在什么地方啊,我要过去处理事情
红黄蓝亲子园(广安门店)地址在哪,我要去那里
求好心人帮我领下炉石传说苹果手机和平板的首
近藤花艺(花沁骨)地址好找么,我有些事要过去
米西乐蛋糕怎么去啊,有知道地址的么
如何从contacts2.db中恢复联系人.机锋综合讨
奥迪q5提车验车的时候需要注意什么经销商提车
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?