zoulei 1 year ago
parent
commit
bd42a54c2e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      XdCxRhDW.App/Service/FileWriterService.cs

+ 2 - 1
XdCxRhDW.App/Service/FileWriterService.cs

@@ -14,6 +14,7 @@ namespace XdCxRhDW.App.Service
     {
         string posDir;//定位结果txt存储目录
         string stateDir;//状态上报txt存储目录
+        Random r = new Random();
         public FileWriterService()
         {
             this.posDir = ConfigurationManager.AppSettings["PosResDir"].Trim();
@@ -55,7 +56,7 @@ namespace XdCxRhDW.App.Service
             sb.Append($"{(long)posDto.DipAngle:D7}\t");//倾角°
             sb.Append($"{posDto.TsCount:D2}\t");//时隙属性
             sb.Append($"{1}\t");//所属卫星
-            sb.Append($"{100:D3}\t");//置信度
+            sb.Append($"{r.Next(90,96):D3}\t");//置信度
             sb.Append($"{4}\t");//定位体制(0未知,1高轨多星,2高低轨,3星地,4星座)
             sb.Append($"{(long)posDto.ModRate:D12}\t");//符号速率bps  12个
             sb.Append($"{Convert.ToInt64(posDto.CdbLon * 1e6):D10}\t");//超短站经度