OrbitCorrection.java

  1. /* Copyright 2002-2025 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.gnss.metric.messages.common;

  18. /**
  19.  * Container for SSR orbit correction data.
  20.  * @author Bryan Cazabonne
  21.  * @since 11.0
  22.  */
  23. public class OrbitCorrection {

  24.     /** Radial orbit correction for broadcast ephemeris (m). */
  25.     private final double deltaOrbitRadial;

  26.     /** Along-Track orbit correction for broadcast ephemeris (m). */
  27.     private final double deltaOrbitAlongTrack;

  28.     /** Cross-Track orbit correction for broadcast ephemeris (m). */
  29.     private final double deltaOrbitCrossTrack;

  30.     /** Velocity of Radial orbit correction for broadcast ephemeris. (m/s). */
  31.     private final double dotOrbitDeltaRadial;

  32.     /** Velocity of Along-Track orbit correction for broadcast ephemeris (m/s). */
  33.     private final double dotOrbitDeltaAlongTrack;

  34.     /** Velocity of Cross-Track orbit correction for broadcast ephemeris (m/s). */
  35.     private final double dotOrbitDeltaCrossTrack;

  36.     /**
  37.      * Constructor.
  38.      * @param dRadial radial orbit correction for broadcast ephemeris (m)
  39.      * @param dAlongTrack along-Track orbit correction for broadcast ephemeris (m)
  40.      * @param dCrossTrack cross-Track orbit correction for broadcast ephemeris (m)
  41.      * @param dotRadial velocity of Radial orbit correction for broadcast ephemeris. (m/s)
  42.      * @param dotAlongTrack velocity of Along-Track orbit correction for broadcast ephemeris (m/s)
  43.      * @param dotCrossTrack velocity of Cross-Track orbit correction for broadcast ephemeris (m/s)
  44.      */
  45.     public OrbitCorrection(final double dRadial, final double dAlongTrack,
  46.                            final double dCrossTrack, final double dotRadial,
  47.                            final double dotAlongTrack, final double dotCrossTrack) {
  48.         // Initialize fields
  49.         this.deltaOrbitRadial        = dRadial;
  50.         this.deltaOrbitAlongTrack    = dAlongTrack;
  51.         this.deltaOrbitCrossTrack    = dCrossTrack;
  52.         this.dotOrbitDeltaRadial     = dotRadial;
  53.         this.dotOrbitDeltaAlongTrack = dotAlongTrack;
  54.         this.dotOrbitDeltaCrossTrack = dotCrossTrack;
  55.     }

  56.     /**
  57.      * Get the radial orbit correction for broadcast ephemeris.
  58.      * <p>
  59.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  60.      * </p>
  61.      * @return the radial orbit correction for broadcast ephemeris in meters
  62.      */
  63.     public double getDeltaOrbitRadial() {
  64.         return deltaOrbitRadial;
  65.     }

  66.     /**
  67.      * Get the along-track orbit correction for broadcast ephemeris.
  68.      * <p>
  69.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  70.      * </p>
  71.      * @return the along-track orbit correction for broadcast ephemeris in meters
  72.      */
  73.     public double getDeltaOrbitAlongTrack() {
  74.         return deltaOrbitAlongTrack;
  75.     }

  76.     /**
  77.      * Get the cross-track orbit correction for broadcast ephemeris.
  78.      * <p>
  79.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  80.      * </p>
  81.      * @return the cross-track orbit correction for broadcast ephemeris
  82.      */
  83.     public double getDeltaOrbitCrossTrack() {
  84.         return deltaOrbitCrossTrack;
  85.     }

  86.     /**
  87.      * Get the velocity of radial orbit correction for broadcast ephemeris.
  88.      * <p>
  89.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  90.      * </p>
  91.      * @return the velocity of Radial orbit correction for broadcast ephemeris in m/s
  92.      */
  93.     public double getDotOrbitDeltaRadial() {
  94.         return dotOrbitDeltaRadial;
  95.     }

  96.     /**
  97.      * Get the velocity of along-track orbit correction for broadcast ephemeris.
  98.      * <p>
  99.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  100.      * </p>
  101.      * @return the velocity of along-track orbit correction for broadcast ephemeris in m/s
  102.      */
  103.     public double getDotOrbitDeltaAlongTrack() {
  104.         return dotOrbitDeltaAlongTrack;
  105.     }

  106.     /**
  107.      * Get the velocity of cross-track orbit correction for broadcast ephemeris.
  108.      * <p>
  109.      * The reference time t0 is SSR Epoch Time (IDF003) plus ½ SSR Update Interval.
  110.      * </p>
  111.      * @return the velocity of cross-track orbit correction for broadcast ephemeris in m/s
  112.      */
  113.     public double getDotOrbitDeltaCrossTrack() {
  114.         return dotOrbitDeltaCrossTrack;
  115.     }

  116. }