北航空蛟队技术报告.doc

  1. 1、本文档共40页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第一届 “飞,鬼卡尔” 杯全国大学生 智矣皂汽车邀请赛 技术报告 附件B基于面阵CCD的图像处理研究 学 校:北京航空航天大学 队伍名称:空蛟队 参赛队员:张巍陈威关新 带队教师:陈博 关于技术报告和研究论文使用授权的说明 木人完全了解第一届“飞思卡尔”杯全国大学生智能汽车邀请赛关保留、 使用技术报告和研究论文的规定,即:参赛作品著作权归参赛者本人,比赛组 委会和飞思卡尔半导体公司可以在相关主页上收录并公开参赛作品的设计方 案、技术报告以及参赛模型车的视频、图像资料,并将相关内容编纂收录在组 委会出版论文集中。 目录 TOC \o 1-5 \h \z HYPERLINK /* Include shared modules, which are used for whole project */ #inc]ude PE Types, h #include PE_Ecs. h #include /?PE_Const. h ^include h〃 #include type. h #inelude led. h #include sci.h #inelude eeprom. h #include motor, h ^include pid. h ^include key. h〃 #include a led.h #include i2c.h #inelude ,ztimer, h #inelude _sci. h #include /za_eeproin. h #include z/a_motot. h #include a_ccd. h #include process, h void const (* const function[])(void) = { Uart_Get_LED_Value, Uart_Set_DIR_Ang1e, Uart_Set_Speed_PWM, Uart EEPROM WRTTE, Uart EEPROM READ, Uart Set DIR FRONT OR BACK, Uart_Se t_Car_Start, Uart_Set_Car_Stop, Uart_Set_Ccd_Reg, Uart_Rec_Ccd_Reg, Uart_Rec_Ccd_Picture, }; void main (void) unsigned int t = 0; UINT16 led_val; UINT8 key_code; UTNT8 running flag; ***/PE low level init (); ***/ /*** End of Processor Expert internal initializstion. Port_Init(); Dcvice_Init(); Clock_Init(); Key_Init (); InitPllO; TnitP? (); TnitSci (); Init_i2c (); Uart_Init_wireless(); Enablelnterrupts; SENSOR—POWER.OFF; Set Speed PWM(O); PTD TnitO ; while (1) led_val = Get_LED(); LED_0ut(led_val); if(g ucRec Flag SCT wireless) { g_ucRec_Flag_SCI_wireless = 0; i f (g_u c R ec _Cmd _ SC I _ w i e 1 e s s coun tof(f un ction)) ((void (*)(void) ) function[g_ucRec_Cmd_SCI_wireless])(); key_code = Get_Key (); if (key code == KEY RIJN g ucRunning Flag == FALSE) running_flag = RUNNING_FLAG; EEPROM_WRITE(RUNNING_FLAG_ADD, running_flag, 1); Car_Start(); } else if(key code == KEY STOP g ucRunning Flag == TRUE) { running_flag = 0; EEPROM_WRITE(RUNNING_FLAG_ADD, running_flag, 1); Car_Stop 0; } else if(g_ucRunning_Flag == FALSE key_code == KEY_STOP) { SENSOR POWER ON; — — if(t 200) { LED_0ut_Power_0n; } else {

文档评论(0)

ggkkppp + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档