|
@@ -86,6 +86,12 @@ namespace XdCxRhDW.Sender
|
|
|
}
|
|
|
if (tskType == "X2D1")//两星一地定位
|
|
|
{
|
|
|
+ //url += "PosX2D1Async";
|
|
|
+ //var res = X2D1();
|
|
|
+ //var content = new StringContent(JsonConvert.SerializeObject(res), System.Text.Encoding.UTF8, "application/json");
|
|
|
+ //var response = await client.PostAsync(url, content);
|
|
|
+ //Log($"已向[{txtAddr1.Text}]发送两星一地定位仿真结果");
|
|
|
+
|
|
|
var lines = File.ReadAllLines("Simulation_Data2023.dat");
|
|
|
int idx = 1;
|
|
|
url += "PosX2D1Async";
|
|
@@ -361,6 +367,34 @@ namespace XdCxRhDW.Sender
|
|
|
cts1?.Cancel();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 两星一地定位
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ private X2D1PosDto X2D1()
|
|
|
+ {
|
|
|
+ X2D1PosDto X2D1PosDto = new X2D1PosDto();
|
|
|
+ X2D1PosDto.SigTime = DateTime.Now;
|
|
|
+ X2D1PosDto.SxDto = 5507.5653;
|
|
|
+ X2D1PosDto.XdDto = 240292.558;
|
|
|
+ X2D1PosDto.MainYbDto = 0;
|
|
|
+ X2D1PosDto.AdjaYbDto = 0;
|
|
|
+ X2D1PosDto.MainX = 0;
|
|
|
+ X2D1PosDto.MainY = 0;
|
|
|
+ X2D1PosDto.MainZ = 0;
|
|
|
+ X2D1PosDto.AdjaX = 0;
|
|
|
+ X2D1PosDto.AdjaY = 0;
|
|
|
+ X2D1PosDto.AdjaZ = 0;
|
|
|
+ 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");
|
|
|
+ return X2D1PosDto;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 两星一地定位无参
|
|
|
/// </summary>
|