Beispiel #1
0
        /// <summary>
        /// Satellites in view
        /// </summary>
        /// <returns>Array of Satellites</returns>
        public Satellite[] GetSatellitesInView()
        {
            Satellite[] satellites = null;
            if (dwSatellitesInView != 0)
            {
                satellites = new Satellite[dwSatellitesInView];
                for (int index = 0; index < satellites.Length; index++)
                {
                    satellites[index]                = new Satellite();
                    satellites[index].Azimuth        = rgdwSatellitesInViewAzimuth[index];
                    satellites[index].Elevation      = rgdwSatellitesInViewElevation[index];
                    satellites[index].Id             = rgdwSatellitesInViewPRNs[index];
                    satellites[index].SignalStrength = rgdwSatellitesInViewSignalToNoiseRatio[index];
                }
            }

            return(satellites);
        }