资源简介
关于GPS信号如何产生、如何捕获、如何追踪的所有matlab程序大集合!

代码片段和文件信息
function [correlation codePhase]= acquisition(datachipratesamplingFreqIFsamplesPerCode)
% performs a circular convolution by using the FFT and IFFT .
% Generate CA code
CA_code = makeCaTable(181023chipratesamplingFreq);
CA_double = [CA_code CA_code];
CA = CA_double(10001:48192);
% time vector/矢量,向量
t = (0:(samplesPerCode-1))/samplingFreq;
% In-phase component
I_comp = cos(2*pi*IF.*t).*data;
% quadrature component
Q_comp = sin(2*pi*IF.*t).*data;
% FFT of I and Q comps
X = fft(I_comp + i*Q_comp);
% conj(FFT) of CA code
F_CA = conj(fft(CA));
% Multiply in freq domain and perform IFFT
% then get the squared magnitude
correlation = abs(ifft(X.*F_CA)).^2;
settings.acqThreshold = 2.5;
%% Look for correlation peaks in the results ==============================
% Find the highest peak and compare it to the second highest peak
% The second peak is chosen not closer than 1 chip to the highest peak
%--- Find code phase of the same correlation peak ---------------------
[peakSize codePhase] = max(correlation);
%--- Find 1 chip wide C/A code phase exclude range around the peak ----
samplesPerCodeChip = round(samplingFreq / chiprate);%38
excludeRangeIndex1 = codePhase - samplesPerCodeChip;
excludeRangeIndex2 = codePhase + samplesPerCodeChip;
%--- Correct C/A code phase exclude range if the range includes array
%boundaries
if excludeRangeIndex1 < 2
codePhaseRange = excludeRangeIndex2 : ...
(samplesPerCode + excludeRangeIndex1);
%samplesPerCode是38192,不要与samplesPerCodeChip混了,
%这排除了不可能的码区间
elseif excludeRangeIndex2 >= samplesPerCode
codePhaseRange = (excludeRangeIndex2 - samplesPerCode) : ...
excludeRangeIndex1;
else
codePhaseRange = [1:excludeRangeIndex1 ...
excludeRangeIndex2 : samplesPerCode];
end
%--- Find the second highest correlation peak in the same freq. bin ---
secondPeakSize = max(correlation( codePhaseRange));
%注意这个是codePhaseRange,在相位区间之外
%--- Store result -----------------------------------------------------
acqResults.peakMetric = peakSize/secondPeakSize;
% If the result is above threshold then there is a signal ...
if (peakSize/secondPeakSize) > settings.acqThreshold
fprintf(‘捕获成功‘)
else
fprintf(‘捕获失败‘)
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2543 2012-12-22 09:42 tracking_30\acquisition.m
文件 2347 2011-05-23 19:26 tracking_30\cacode.m
文件 503 2011-05-23 19:21 tracking_30\calcLoopCoef.m
文件 1219 2013-03-25 10:30 tracking_30\main.m
文件 1805 2012-12-22 20:14 tracking_30\makeCaTable.m
文件 6804 2011-05-24 09:36 tracking_30\test.m
文件 6787 2011-05-31 15:53 tracking_30\tracking.m
目录 0 2018-11-13 22:30 tracking_30
----------- --------- ---------- ----- ----
22008 8
相关资源
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 8领域边界跟踪 图像处理 matlab
- GPS卫星轨道动态仿真MATLAB
- 多目标跟踪 论文+代码
- 3点GPS定位MATLAB仿真
- GPS信号的码捕获matlab代码.7z
- MPC路径跟踪
- 世上最牛的23个图像跟踪算法MATLAB程序
- 基于模型预测控制的车辆轨迹跟踪问
- 卡尔曼的视频序列图像的目标跟踪程
- 无人驾驶车辆模型预测直线轨迹跟踪
- MEEM视觉跟踪matlab代码
-
光伏发电最大功率点跟踪simuli
nk仿真 - GPS定位程序代码
- MATLAB 粒子滤波目标跟踪代码
- ECO配置好的MATLAB版本
- matlab实现视频中动态目标跟踪
- GPS基本原理及其Matlab仿真235516
- 高斯混合PHD滤波器扩展目标跟踪
- 压缩感知之GPSR算法
- matlab源码的IMM交互多目标单目标跟踪
- TLD跟踪算法源代码作者的MATLAB+C版本
- GPS信号捕获跟踪的MATLAB仿真,里面有
- mean shift 目标跟踪matlab程序
- gps基本原理及其matlab仿真199992
- [Matlab作品]matlab实现视频中动态目标跟
- 基于matlab的运动目标检测源代码
- Meanshift算法实现目标跟踪的MatLAB代码
- matlab实现的人体跟踪kalman滤波
- 目标跟踪算法KCF融合HOG+CN特征,matl
评论
共有 条评论