Example #1
0
        private void TryLocate(IEnumerable <GeoPoint3DT> basePoints)
        {
            double baseMeanDepth = 0.0;
            int    bCount        = 0;

            foreach (var item in basePoints)
            {
                baseMeanDepth += item.Depth;
                bCount++;
            }

            if (bCount >= 3)
            {
                baseMeanDepth /= bCount;

                if (TargetDepth.IsInitialized)
                {
                    pCore.TargetDepth = TargetDepth.Value;
                    pCore.ProcessBasePoints(basePoints, GetTimeStamp());
                }
                else
                {
                    pCore.ProcessBasePoints(basePoints, baseMeanDepth, GetTimeStamp());
                }
            }
        }
Example #2
0
        private void TryLocate(IEnumerable <GeoPoint3DT> basePoints)
        {
            double baseMeanDepth = 0.0;
            int    bCount        = 0;

            foreach (var item in basePoints)
            {
                baseMeanDepth += item.Depth;
                bCount++;
            }

            if (bCount >= 3)
            {
                baseMeanDepth /= bCount;
                pCore.ProcessBasePoints(basePoints, baseMeanDepth, GetTimeStamp());
            }
        }