Global Positioning System Reference
In-Depth Information
% cacode.m
function [ss ca]=cacode(svnum);
% modified by JT May 8 02 to generate satellite ca this
program contains WASP
%function ca=cacode2(svnum,fs,numsamp);
% function to generate any of the 32 GPS C/A codes at a user
% specified sampling frequency.
%
% Input Arguments:
% svnum - the Satellite's PRN number
% 1-32 is traditional GPS PRN numbers
% 120 (38) is PRN for WAAS INMARSAT AOR-EAST (refer
to WAAS MOPS for shift)
%
122 (40) is PRN for WAAS INMARSAT AOR-WEST
%
?? is PRN for WAAS INMARSAT Reserved
%
?? is PRN for WAAS INMARSAT IOR
%
134 (52) is PRN for WAAS INMARSAT POR
%
% fs - desired sampling frequency
% numsamp - number of samples to generate
% (sequence can extend for longer than a single
code period (1 ms)
%
% Output Argument
% ca - a vector containing the desired output sequence
%
% D. Akos - WPAFB AAWP-1
%this start the sequence one sample into the first chip (not
at leading edge of first chip)!
%dma comment 17-5-00
%
%this has been fixed as of 9-Dec-2000 but not fully
completely tested, but the first
%sample in the code should correspond to the first chip
now!!! Also added the
%ability to find the GEO for WAAS by using PRN numbers above
32
%dma comment 9-Dec-2000
%modified by JT Oct 24, 02
% Constants
coderate=1.023e6;
%no consider given to the neglible Doppler
effect on code
% the g2s vector holds the appropriate shift of the g2 code
to generate
Search WWH ::




Custom Search