| 
					
				 | 
			
			
				@@ -49,57 +49,147 @@ namespace XdCxRhDW.Sender 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         try 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            var lines = File.ReadAllLines("Simulation_Data2023.dat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            int idx = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             string url = string.Format("http://{0}:{1}/Api/Pos/", ip, port); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if (tskType == "X1D1CX")//一星一地测向定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var lines = File.ReadAllLines("Simulation_Data2023.dat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                int idx = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 url += "PosX1D1Async"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                foreach (var line in lines) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (string.IsNullOrWhiteSpace(line)) continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X1D1PosDto dto = new X1D1PosDto() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        SigTime = DateTime.Now, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        XdDto = Convert.ToDouble(items[1]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        MainYbDto = Convert.ToDouble(items[2]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        CxRes = Convert.ToDouble(items[4]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        MainX = Convert.ToDouble(items[7]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        MainY = Convert.ToDouble(items[8]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        MainZ = Convert.ToDouble(items[9]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        SatTxLon = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        SatTxLat = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        CdbTxLon = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        CdbTxLat = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        CxLon = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        CxLat = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        RefLon = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        RefLat = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var content = new StringContent(JsonConvert.SerializeObject(dto), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    Log($"已向[{txtAddr1.Text}]发送第{idx++}条仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if (tskType == "X2D1")//两星一地定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var lines = File.ReadAllLines("Simulation_Data2023.dat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                int idx = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 url += "PosX2D1Async"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                foreach (var line in lines) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (string.IsNullOrWhiteSpace(line)) continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto X2D1PosDto = new X2D1PosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.SxDto = Convert.ToDouble(items[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.XdDto = Convert.ToDouble(items[1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.MainYbDto = Convert.ToDouble(items[2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.AdjaYbDto = Convert.ToDouble(items[3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.MainX = Convert.ToDouble(items[7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.MainY = Convert.ToDouble(items[8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.MainZ = Convert.ToDouble(items[9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.AdjaX = Convert.ToDouble(items[10]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.AdjaY = Convert.ToDouble(items[11]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.AdjaZ = Convert.ToDouble(items[12]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.SatTxLon = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.SatTxLat = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.CdbTxLon = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.CdbTxLat = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.RefLon = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    X2D1PosDto.RefLat = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var content = new StringContent(JsonConvert.SerializeObject(X2D1PosDto), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    Log($"已向[{txtAddr1.Text}]发送第{idx++}条仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (tskType == "X2D1NoPar")//两星一地无参定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                url += "PosX2D1NoParAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var res = X2D1NoPar(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                Log($"已向[{txtAddr1.Text}]发送两星一地无参定位仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             if (tskType == "RH")//融合定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var lines = File.ReadAllLines("Simulation_Data2023.dat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                int idx = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 url += "PosRHAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                foreach (var line in lines) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (string.IsNullOrWhiteSpace(line)) continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto RHPosDto = new RHPosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.SxDto = Convert.ToDouble(items[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.XdDto = Convert.ToDouble(items[1]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.MainYbDto = Convert.ToDouble(items[2]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.AdjaYbDto = Convert.ToDouble(items[3]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.CxRes = Convert.ToDouble(items[4]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.MainX = Convert.ToDouble(items[7]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.MainY = Convert.ToDouble(items[8]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.MainZ = Convert.ToDouble(items[9]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.AdjaX = Convert.ToDouble(items[10]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.AdjaY = Convert.ToDouble(items[11]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.AdjaZ = Convert.ToDouble(items[12]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.SatTxLon = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.SatTxLat = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.CdbTxLon = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.CdbTxLat = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.CxLon = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.CxLat = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.RefLon = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lon"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    RHPosDto.RefLat = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lat"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var content = new StringContent(JsonConvert.SerializeObject(RHPosDto), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    Log($"已向[{txtAddr1.Text}]发送第{idx++}条仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            var stationRes = new StationResDto() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (tskType == "X3TwoDto")//三星双时差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                url += "PosX3TwoDtoAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var res = X3TwoDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                Log($"已向[{txtAddr1.Text}]发送三星双时差定位仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (tskType == "X3TwoDtoNoPar")//三星双时差无参定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                url += "PosX3TwoDtoNoParAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var res = X3TwoDtoNoPar(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                Log($"已向[{txtAddr1.Text}]发送三星双时差定位仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (tskType == "X3TwoDfo")//三星双频差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                SatTxLon = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                SatTxLat = IniFiles.ReadValue<double>("Station_Data2023", "卫星接收天线", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                CdbTxLon = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                CdbTxLat = IniFiles.ReadValue<double>("Station_Data2023", "超短波接收天线", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                CxLon = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                CxLat = IniFiles.ReadValue<double>("Station_Data2023", "侧向站", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                RefLon = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lon"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                RefLat = IniFiles.ReadValue<double>("Station_Data2023", "参考站", "Lat"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            foreach (var line in lines) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                url += "PosX3TwoDfoAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var res = X3TwoDfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                Log($"已向[{txtAddr1.Text}]发送三星双频差定位仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            if (tskType == "X2Dfo")//双星时频差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                if (string.IsNullOrWhiteSpace(line)) continue; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                var items = line.Split(" ".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                SendDto dto = new SendDto() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    SigTime = DateTime.Now, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    SxDto = Convert.ToDouble(items[0]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    XdDto = Convert.ToDouble(items[1]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    MainYbDto = Convert.ToDouble(items[2]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    AdjaYbDto = Convert.ToDouble(items[3]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    CxRes = Convert.ToDouble(items[4]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    MainX = Convert.ToDouble(items[7]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    MainY = Convert.ToDouble(items[8]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    MainZ = Convert.ToDouble(items[9]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    AdjaX = Convert.ToDouble(items[10]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    AdjaY = Convert.ToDouble(items[11]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    AdjaZ = Convert.ToDouble(items[12]), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    StationResInfo = stationRes 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                var content = new StringContent(JsonConvert.SerializeObject(dto), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                url += "PosX2DtoDfoAsync"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var res = X2Dfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 var response = await client.PostAsync(url, content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                Log($"已向[{txtAddr1.Text}]发送第{idx++}条仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                Log($"已向[{txtAddr1.Text}]发送双星时频差定位仿真结果"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         catch (Exception ex) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,7 +214,155 @@ namespace XdCxRhDW.Sender 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cts1?.Cancel(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 两星一地定位无参 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private X2D1PosDto X2D1NoPar() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto X2D1PosDto = new X2D1PosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.SxDto = -0.002198485309353 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.XdDto = 0.245961726007262 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.MainX = -38209016; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.MainY = 17858458; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.MainZ = 13250; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.AdjaX = 4750323; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.AdjaY = 41902879; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.AdjaZ = 50515; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.SatTxLon = 118.8833; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.SatTxLat = 32.0667; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.CdbTxLon = 109.4082; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2D1PosDto.CdbTxLat = 18.3878; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return X2D1PosDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 三星双时差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private X3TwoDtoPosDto X3TwoDto() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto X3TwoDtoPosDto = new X3TwoDtoPosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Dto1 = -0.0037683828 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Dto2 = 0.00411476 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.YbMainDto = 0.253339246 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.YbAdja1Dto = 0.254082015 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.YbAdja2Dto = 0.247747625 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.MainX = -38209016; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.MainY = 17858458; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.MainZ = 13250; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja1X = 4750323; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja1Y = 41902879; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja1Z = 50515; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja2X = -30932433; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja2Y = 28638701; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.Adja2Z = -582065; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.SatTxLon = 118.8833; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.SatTxLat = 32.0667; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.RefLon = 121.538; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoPosDto.RefLat = 30.8385; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return X3TwoDtoPosDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 三星双时差无参定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private X3TwoDtoNoParPosDto X3TwoDtoNoPar() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto X3TwoDtoNoParPosDto = new X3TwoDtoNoParPosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Dto1 = -0.008361002956792 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Dto2 = 0.004191941221694 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.MainX = -38214804; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.MainY = 17780164; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.MainZ = -6857; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja1X = 4824458; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja1Y = 41896265; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja1Z = -55899; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja2X = -27105105; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja2Y = 32302912; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.Adja2Z = 11952; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.SatTxLon = 121.3555; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDtoNoParPosDto.SatTxLat = 31.3667; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return X3TwoDtoNoParPosDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 三星双频差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private X3TwoDfoPosDto X3TwoDfo() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto X3TwoDfoPosDto = new X3TwoDfoPosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Dfo1 = -17.601977254734404; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Dfo2 = -36.885840020369514; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.YbMainDfo = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.YbAdja1Dfo = 17.453698229247941; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.YbAdja2Dfo = 37.022577554138941; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.TarFreqUp = 3808 * 1e6 + 2225 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.TarFreqDown = 3808 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.RefFreqUp = 3796 * 1e6 + 2225 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.RefFreqDown = 3796 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainX = -18149981.873274; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainY = 38039767.675679; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainZ = -5662.335149; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainVx = -2.006064; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainVy = -1.4693; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.MainVz = 1.62569; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1X = -14770224.082665; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1Y = 39479299.786862; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1Z = -53188.063002; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1Vx = -1.764989; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1Vy = -0.528101; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja1Vz = 1.808949; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2X = -33231255.13; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2Y = 25948042.76; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2Z = 27091.80; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2Vx = -0.607289; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2Vy = 0.089864; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.Adja2Vz = -0.069086; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.SatTxLon = 116.254567; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.SatTxLat = 39.65955; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.RefLon = 106.698; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X3TwoDfoPosDto.RefLat = 26.567; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return X3TwoDfoPosDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// 双星时频差定位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /// </summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private X2DtoDfoPosDto X2Dfo() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto X2DtoDfoPosDto = new X2DtoDfoPosDto(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.SigTime = DateTime.Now; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.Dto = -3.587980198938979e-06 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.Dfo = -17.601977254734404; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.YbMainDto = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.YbAdjaDto = 6.352805492137770e-05 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.YbMainDfo = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.YbAdjaDfo = 17.453698229247941; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.TarFreqUp = 3808 * 1e6 + 2225 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.TarFreqDown = 3808 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.RefFreqUp = 3796 * 1e6 + 2225 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.RefFreqDown = 3796 * 1e6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainX = -18149981.873274; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainY = 38039767.675679; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainZ = -5662.335149; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainVx = -2.006064; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainVy = -1.4693; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.MainVz = 1.62569; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaX = -14770224.082665; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaY = 39479299.786862; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaZ = -53188.063002; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaVx = -1.764989; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaVy = -0.528101; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.AdjaVz = 1.808949; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.SatTxLon = 116.254567; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.SatTxLat = 39.65955; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.RefLon = 106.698; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            X2DtoDfoPosDto.RefLat = 26.567; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return X2DtoDfoPosDto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void Log(string msg) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -152,6 +390,7 @@ namespace XdCxRhDW.Sender 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             catch 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void Log(Exception ex) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try 
			 |