You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
1.8 KiB

classdef GpsConstants
% GPS constants, defined by WGS84 and IS-GPS-200, and derived from those
%Author: Frank van Diggelen
%Open Source code for processing Android GNSS Measurements
properties (Constant) %listed alphabetically
EARTHECCEN2 = 6.69437999014e-3; %WGS 84 (Earth eccentricity)^2 (m^2)
EARTHMEANRADIUS = 6371009;%Mean R of ellipsoid(m) IU Gedosey& Geophysics
EARTHSEMIMAJOR = 6378137; %WGS 84 Earth semi-major axis (m)
EPHVALIDSECONDS = 7200; %+- 2 hours ephemeris validity
DAYSEC = 86400; %number of seconds in a day
FREL = -4.442807633e-10; %Clock relativity parameter, (s/m^1/2)
GPSEPOCHJD = 2444244.5; %GPS Epoch in Julian Days
HORIZDEG = 5; %angle above horizon at which GPS models break down
LIGHTSPEED = 2.99792458e8; %WGS-84 Speed of light in a vacuum (m/s)
%mean time of flight btwn closest GPS sat (~66 ms) & furthest (~84 ms):
MEANTFLIGHTSECONDS = 75e-3;
mu = 3.986005e14; %WGS-84 Universal gravitational parameter (m^3/sec^2)
WE = 7.2921151467e-5; % WGS 84 value of earth's rotation rate (rad/s)
WEEKSEC = 604800; %number of seconds in a week
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2016 Google Inc.
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
%     http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing permissions and
% limitations under the License.