-
Notifications
You must be signed in to change notification settings - Fork 6
/
physical_constants_GPS.m
36 lines (28 loc) · 1.07 KB
/
physical_constants_GPS.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
%% PHYSICAL CONSTANTS
%
% Written by: Tyler Reid ([email protected])
% PI: Todd Walter, Per Enge
% Lab: Stanford University GPS Lab
% Start Date: April 7, 2016
% Last updated: April 7, 2016
%
% -------------------------------------------------------------------------
% DESCRIPTION
%
% Loading this file enters all of the physical constants needed to perform
% all of the neccessary calculations into the global workspace. All
% constants are given in SI units. This are the physical constants as
% defined by the GPS interface spec.
%
%% DEFINE CONSTANTS
global mu omega_e R_e
% Earth's Mean Equitorial Radius
R_e = 6.37813649e6; % [m]
% Earth Gravitational Parameter mu = G*M_earth
mu = 3.986005e14; % [m^3/s^2]
% Mean Angular Velocity of the Earth
omega_e = 7.2921151467e-5; % [rad/s]
% J_2 - second zonal harmonic
% J_2 = 1.0826300e-3; % [-]
% Earth's shape - eccentricity^2
% Earth_E2 = 0.006694385000; % [-]