1 /*
2 * Copyright (C) 2018 Alberto Irurueta Carro (alberto@irurueta.com)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package com.irurueta.navigation.geodesic;
17
18 /**
19 * Constants used for GNSS/INS navigation.
20 */
21 public class Constants {
22
23 /**
24 * The equatorial radius of WGS84 ellipsoid (6378137 m) defining Earth's shape.
25 */
26 public static final double EARTH_EQUATORIAL_RADIUS_WGS84 = 6378137;
27
28 /**
29 * The polar radius of WGS84 ellipsoid (6356752.31425 m) defining Earth's shape.
30 */
31 public static final double EARTH_POLAR_RADIUS_WGS84 = 6356752.31425;
32
33 /**
34 * The flattening of WGS84 ellipsoid (1 / 298.257223563).
35 */
36 public static final double EARTH_FLATTENING_WGS84 = 1 / 298.257223563;
37
38 /**
39 * Earth eccentricity as defined on the WGS84 ellipsoid.
40 */
41 public static final double EARTH_ECCENTRICITY = 0.0818191908425;
42
43 /**
44 * WGS84 Earth gravitational constant expressed in m^3 * s^-2
45 */
46 public static final double EARTH_GRAVITATIONAL_CONSTANT = 3.986004418E14;
47
48 /**
49 * WGS84 Earth's second gravitational constant.
50 */
51 public static final double EARTH_SECOND_GRAVITATIONAL_CONSTANT = 1.082627E-3;
52
53 /**
54 * Earth rotation rate expressed in radians per second (rad/s).
55 */
56 public static final double EARTH_ROTATION_RATE = 7.292115E-5;
57
58 /**
59 * Speed of light in the vacuum expressed in meters per second (m/s).
60 */
61 public static final double SPEED_OF_LIGHT = 299792458.0;
62
63 /**
64 * Constructor.
65 * Prevents instantiation.
66 */
67 private Constants() {
68 }
69 }