public Object clone()
        {
            SatellitePosition sp = new SatellitePosition(this.unixTime, this.satID, this.satType, this.getX(), this.getY(), this.getZ());

            sp.maneuver            = this.maneuver;
            sp.predicted           = this.predicted;
            sp.satelliteClockError = this.satelliteClockError;
            sp.setSpeed(speed.get(0), speed.get(1), speed.get(2));
            return(sp);
        }
Пример #2
0
 public void setSatelliteVelocity(SatellitePosition satelliteVelocity)
 {
     this.satelliteVelocity = satelliteVelocity;
 }
 /**
  * Calculates current correction for given parameters
  * @param currentTime current timestamp
  * @param approximatedPose approximate pose of the receiver
  * @param satelliteCoordinates satellite coordinates
  * @param navigationProducer Klobuchar coefficients from the naivgation message (ephemeris)
  * @return calculated correction to be applied to the pseudorange
  */
 public abstract void calculateCorrection(
     Time currentTime,
     Coordinates <Matrix> approximatedPose,
     SatellitePosition satelliteCoordinates,
     NavigationProducer navigationProducer,
     Location initialLocation);
Пример #4
0
 public void setSatellitePosition(SatellitePosition satellitePosition)
 {
     this.satellitePosition = satellitePosition;
     this.clockBias         = satellitePosition.getSatelliteClockError() * Constants.SPEED_OF_LIGHT; //todo: add this as a separate correction.
 }