Пример #1
0
 /// <summary>
 /// 网络访问器,构造函数。
 /// </summary>
 /// <param name="NtripParam"></param>
 /// <param name="GPS"></param>
 public NtripDataRequestor(NtripOption NtripParam, LocalGps GPS)
 {
     this.NtripParam          = NtripParam;
     this.GPS                 = this.GPS;//是否应该为this.GPS = GPS;
     this.DataType            = Ntrip.RtcmVersion.Rtcm3;
     this.NtripRtcm3Requestor = new NtripRtcm3Requestor(NtripParam, GPS);
     this.NtripRtcm3Requestor.NtripDataStateChanged += NoticeNtripDataState;
 }
Пример #2
0
        /// <summary>
        /// 构造函数。
        /// </summary>
        /// <param name="Option"></param>
        /// <param name="GPS"></param>
        public NtripRtcm3Requestor(NtripOption Option, LocalGps GPS)
        {
            this.Option          = Option;
            this.GPS             = this.GPS;
            this.NtripMountPoint = Option.PreferredMountPoint;
            this.RtcmVersion     = Ntrip.RtcmVersion.Rtcm3;
            sourcetablePath      = Application.StartupPath + "\\sourcetable.dat";

            NetDataReceiver = new NtripDataTransceiver(Option.CasterIp, Option.Port);
            NetDataReceiver.DataReceived += NetDataReceiver_DataReceived;
        }