DSP雷达测速资料

上传人:M****1 文档编号:487966237 上传时间:2023-04-05 格式:DOC 页数:15 大小:671KB
返回 下载 相关 举报
DSP雷达测速资料_第1页
第1页 / 共15页
DSP雷达测速资料_第2页
第2页 / 共15页
DSP雷达测速资料_第3页
第3页 / 共15页
DSP雷达测速资料_第4页
第4页 / 共15页
DSP雷达测速资料_第5页
第5页 / 共15页
点击查看更多>>
资源描述

《DSP雷达测速资料》由会员分享,可在线阅读,更多相关《DSP雷达测速资料(15页珍藏版)》请在金锄头文库上搜索。

1、中国地质大学武汉机电学院电信系题目:测速雷达DSP技术及应用课程设计学生姓名:赵光普班 级:071123指导老师:姚亚峰指导助教:曹永敏报告日期:2021.4.10DSP课程设计工程说明:一、工程简介1、工程基于 TMS320C5510 Simulater软件仿真,在 ccs自带波形显示参考例程中修改。EJ C551O Device Simulator Texas Instrum :一 TMS32OC551O图1软件配置信息2、在原工程根底之上参考课程资料里面的DSP例程中的FFT实例,添加Fft.c和typedef.h生 Filesll _| GEL files 白ProjectsEl 宙

2、volumCapjt (Debug)I -l Dependent Projects由Documents El typed ef h|LJ DSP/BIOS Config ! LJ Generated Files S 一nicludei VDJijme.hLibraries团 rts55Jib国口j Source国 ffLC 省 load.asm _盟| vectors.asmvolumex L阖图 volumexmd图2工程目录3、参考FFT例程中的应用,结合论文中的雷达采集到的数据的处理算法,宏定义相关变量。#include#include #i nclude #inc:lude #incl

3、ude #include(math.h volume h typedef.h收 Global d&clsrs tians 明产 float result1025 = 0二 struct comp s1025;intNum = 1024;const float pp=3.14159;int in_I1024;int in_Q1024;nt *in_x - iin_I ;int *in_y = :in_Q u;int _axes = U;float mex_value = 0.0;Float speed = 。口二 int direction = 0; int s = 25D00;float fd

4、 - 0.n;“FFJ所需变量声演p* processing 而4用 buffers %1FFTQ:值峰值位置信息“FEZ最大皆。车速来车h去车4采样频率二,多普勒厥第图3变量定义4、函数声明。F0安ttJi.心目3嵋/void MaxValue (void);最大值诧算void Speed_Count(void) ;*计算交会static int processing(int *in_x, int *in_y);static void dataIO(voidJ;static void dataIO_l(void);extern void load(unsigned int loadValue

5、);图4工程所用函数5、工程流成图。初始化变量输出程序开始的提 示信息打印提示信息调用执行函数图5系统流图执行函数processing。的执行步骤:图6 processing函数流图二、工程测试说明1、编译工程,载入.out执行文件。1024。数据文件存放于2、设置断点读取数据,将读取方式设置为循环读取,数据长度为工程文件路径下呜翻开桌面volymel,0国呼名称修改日期凝 Debug2021/4/13 10:29文件夹VDlunn 旺心2021/4/13 10:29文件夹El Ldat2021/3/23 18:03画 Q.dat2021/3/23 1S:O3国 5ine.dat2006/10

6、/13 10:52查找范国9:图7测试数据文件指示图8测试数据输入配置设置断点进行数据更新。Speed_Count();/索 忌ddatio要processing lodload(processingLoad);return(TRUE);图9更新数据断点LocationC Count Action.GroupEiarne/j data 10 ( 0k00O7AF, 平.“0x0(0x0ReadDataDefaultGi:皿Software/ dataIG_l (0007&1 j,OxD(OkD)ReadDaXa. fre.DefaultGr,.rSoftwareJ volixnie 口. li

7、ne 170 (u.0x0(0x0)HaltTazgetDefaultGz.Software图10断点显示窗口3、设置波形显示窗口。图11输入彳t号I窗口配置直流成分 3355图12输入彳t号I窗口配置直流成分 3355图13 FFT结果显示窗口4、测试结果。图15信号量Q窗口图16 FFT运算结果窗口volume example start&dbegin processingCar speed = -46.250244 m/s,direction begin processingCar speed = -46.250244 m/sdirection begin processingis go

8、ing.is going.图17调试信息输出Ham名ValueTypeRadixJISintdec-248就,3floatfloat-46.25024floatlct。directi on1intdec。fd-7446 289floatfloat图18变量查看窗口三、工程原码/*工程目的:仿照雷达测速原理,读取预存数据,进行频谱分析,计算特征频点,根据多 普勒测速原理计算车速* 赵光普* 学号:20211002823* 班级:071123*/#include #include #include #include #include volume.h#include typedef.h/* Glo

9、bal declarations */ floatresult1025 = 0;structcompx s1025;intNum = 1024;const float pp=3.14159;int in_I1024;int in_Q1024;/FFT所需变量声明/* processing data buffers */int *in_x = &in_I0;int *in_y = &in_Q0;/FFT最大值峰值位置信息/FFT最大值车速/ 0:来车1:去车采样频率多普勒频率int x_axes = 0;float max_value = 0.0;float speed = 0.0;int di

10、rection = 0;int fs = 25000;float fd = 0.0;unsigned int processingLoad = BASELOAD; /* processing routine load value */struct PARMS str =2934,9432,213,9432,&str;/* Functions */void MaxValue(void);最大值计算void Speed_Count(void);计算车速static int processing(int *in_x, int *in_y);static void datalO(void);stati

11、c void dataIO_1(void);extern void load(unsigned int loadValue);/* = main =*/void main()puts(volume example startedn);/* loop forever */ while(TRUE)/* Read input data using a probe-point connected to a host file.* Write output data to a graph connected through a probe-point.* /dataIO();预读取数据dataIO_1(

12、);/* deliberate syntax error */#ifdef FILEIO puts(begin processing);#endif/* apply */ processing(in_x ,in_y);void MaxValue(void)最大值计算int i;/ float temp_max = 0.0;for(i=0; iLength; i+)if(max_value resulti)max_value = resulti; x_axes = i;void Speed_Count(void)if(x_axes 512)direction = 1;fd = -(1024 - x_axes)/1024.0*fs;speed = 3.0/(2.0*241.5)*fd

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 施工组织

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号