예제 #1
0
        /// <summary>
        /// Generates fallback name for the given detector type based on its string representation.
        /// The method was introduced in order to allow developers to distinguish new detectors
        /// until they are assigned a proper name.
        /// </summary>
        private static string ProvideFallbackName(DetectorType type)
        {
            string fallbackName = type.ToString();

            if (fallbackName.StartsWith("en") && fallbackName.Length > 2)
            {
                fallbackName = fallbackName.Substring(2);
            }

            return(fallbackName);
        }
예제 #2
0
        /// <summary>
        /// 探测
        /// </summary>
        /// <returns></returns>
        protected override bool Detect()
        {
            bool isBaseCS = base.Detect();

            bool isCS = GetDetection(EpochSat.RecevingTime, EpochSat.Prn, EpochSat[SatObsDataType].Value);

            if (IsSaveResultToTable && isCS)
            {
                var table = GetOutTable();
                if (!isBaseCS)
                {
                    table.NewRow(); table.AddItem("Epoch", EpochSat.ReceiverTime);
                }
                table.AddItem(DetectorType.ToString(), true);
            }
            if (!isBaseCS && isCS)
            {
                CycleSlipStorage.Regist(EpochSat.Prn.ToString(), EpochSat.Time.Value);
            }
            return(isCS);
        }
        /// <summary>
        /// Generates fallback name for the given detector type based on its string representation.
        /// The method was introduced in order to allow developers to distinguish new detectors
        /// until they are assigned a proper name.
        /// </summary>
        private static string ProvideFallbackName(DetectorType type)
        {
            string fallbackName = type.ToString();

            if (fallbackName.StartsWith("en") && fallbackName.Length > 2)
            {
                fallbackName = fallbackName.Substring(2);
            }

            return fallbackName;
        }