GPSOrbitalElements.java

  1. /* Copyright 2002-2020 CS GROUP
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.propagation.analytical.gnss;

  18. /** This interface provides the minimal set of orbital elements needed by the {@link GPSPropagator}.
  19.  *
  20.  * @see <a href="http://www.gps.gov/technical/icwg/IS-GPS-200H.pdf">GPS Interface Specification</a>
  21.  * @author Pascal Parraud
  22.  * @since 8.0
  23.  *
  24.  */
  25. public interface GPSOrbitalElements extends GNSSOrbitalElements {

  26.     // Constants
  27.     /** WGS 84 value of the Earth's universal gravitational parameter for GPS user in m³/s². */
  28.     double GPS_MU = 3.986005e+14;

  29.     /** Value of Pi for conversion from semicircles to radian. */
  30.     double GPS_PI = 3.1415926535898;

  31.     /** Duration of the GPS week in seconds. */
  32.     double GPS_WEEK_IN_SECONDS = 604800.;

  33.     /** Number of weeks in the GPS cycle. */
  34.     int GPS_WEEK_NB = 1024;

  35.     /**
  36.      * Gets the Issue Of Data Clock (IODC).
  37.      *
  38.      * @return the Issue Of Data Clock (IODC)
  39.      * @since 9.3
  40.      */
  41.     default int getIODC() {
  42.         return 0;
  43.     }

  44.     /**
  45.      * Gets the Issue Of Data Ephemeris (IODE).
  46.      *
  47.      * @return the Issue Of Data Ephemeris (IODE)
  48.      * @since 9.3
  49.      */
  50.     default int getIODE() {
  51.         return 0;
  52.     }

  53.     /**
  54.      * Gets the estimated group delay differential TGD for L1-L2 correction.
  55.      *
  56.      * @return the estimated group delay differential TGD for L1-L2 correction (s)
  57.      * @since 9.3
  58.      */
  59.     default double getTGD() {
  60.         return 0.0;
  61.     }

  62. }