-
Notifications
You must be signed in to change notification settings - Fork 24
/
main.m
17 lines (17 loc) · 671 Bytes
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%******************************************
% Name: main.m
% Function: main function.
% Author: Liwei Jia
% Date: 2015-05-31
% Email: [email protected]
%******************************************
clear;clc;
global SimGlobal;
init;% Initialization
[SimGlobal.noeph,SimGlobal.aEphData]=readrinex('abpo0790.13n');% Load the ephemeris data
SimGlobal.aPreEphData=readsp3('igs17323.sp3');% Load the precision ephemeris data
SimGlobal.aSatData=selecteph;% Select the valid ephemeris for each satellite
satvisible;% Determine whether the satellite is visible
transtime;% Calculate the transfer time
genmessage;% Generate the nav message
genchannel;% Generate the channel data