资源简介
GPS中伪随机码(CA码)产生方法有三种,提供了一种产生方法,可供自相关和互相关使用。
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% this program generates the C/A code for PRN svnum
%
% Method1 implemented:
% code delay method
%
% Parameters description:
% ca_used - function output
% svnum - CA code number
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [ca_used initial_setting] = codegen1(svnum);
gs2= [5; 6; 7; 8; 17; 18; 139; 140; 141; 251; 252; 254; 255; 256; 257; 258; 469; 470; 471; 472; 473; 474; 509; 512; 513; 514; 515; 516; 859; 860; 861; 862];
g2shift = gs2(svnum1);
% G1 LFSR: x^10+x^3+1
% generate G1 code
reg = -1*ones(11
- 上一篇:MATLAB桶形变换
- 下一篇:morlet小波变换时间频率能量图
评论
共有 条评论