Class Analytic_AAlgorithm

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  Analytic_AAlgorithm.RetVal
      Internal class to handle return value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int offset  
      (package private) double Vs  
      (package private) double Xt  
      (package private) double Yt  
      (package private) double Zt  
    • Constructor Summary

      Constructors 
      Constructor Description
      Analytic_AAlgorithm​(javax.vecmath.Point3d[] sensors, double vsound)  
      Analytic_AAlgorithm​(javax.vecmath.Point3d[] sensors, double vsound, int offset)  
      Analytic_AAlgorithm​(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, double vsound)  
      Analytic_AAlgorithm​(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, javax.vecmath.Point3d sensor4, double vsound)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Measurement convert​(Reading r)  
      Measurement convert​(Reading r, javax.vecmath.Point3d guess)
      Seed the conversion using an estimated position
      Measurement convert​(Reading r, Measurement last)
      Seed the conversion using a last measurement
      double[] solve​(double[][] Xs, boolean[] SV, double[] P, double[] Xr)
      *************************************************************************
      double sub​(double[][] A, int r, int c)
      ************************************************************************* finds the determinant of a minor of a 4 x 4 matrix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Analytic_AAlgorithm

        public Analytic_AAlgorithm​(javax.vecmath.Point3d[] sensors,
                                   double vsound,
                                   int offset)
      • Analytic_AAlgorithm

        public Analytic_AAlgorithm​(javax.vecmath.Point3d[] sensors,
                                   double vsound)
      • Analytic_AAlgorithm

        public Analytic_AAlgorithm​(javax.vecmath.Point3d sensor1,
                                   javax.vecmath.Point3d sensor2,
                                   javax.vecmath.Point3d sensor3,
                                   double vsound)
      • Analytic_AAlgorithm

        public Analytic_AAlgorithm​(javax.vecmath.Point3d sensor1,
                                   javax.vecmath.Point3d sensor2,
                                   javax.vecmath.Point3d sensor3,
                                   javax.vecmath.Point3d sensor4,
                                   double vsound)
    • Method Detail

      • convert

        public Measurement convert​(Reading r,
                                   javax.vecmath.Point3d guess)
        Seed the conversion using an estimated position
      • solve

        public double[] solve​(double[][] Xs,
                              boolean[] SV,
                              double[] P,
                              double[] Xr)
        *************************************************************************
        Parameters:
        Xs - array with 3 columns and 32 rows, for the coordinates of the sat's
        SV - valid prn's
        P - pseudoranges (note: arrays actually have 33 rows, but row 0 is unused, in order to index by actual prn number)
        Xr - input of initial guess ( user position in ECEF)
        Returns:
        [X, X, X, Cr] output of final position and receiver clock error return null if calculation failed //do: throw exception instead
      • sub

        public double sub​(double[][] A,
                          int r,
                          int c)
        ************************************************************************* finds the determinant of a minor of a 4 x 4 matrix
        Parameters:
        A - input 4 x 4 array
        r - the row to be deleted
        c - the column to be deleted
        Returns:
        subdet determinant of the resulting 3 x 3 matrix