Browse Source

时差线接口

zhangzhiming 1 year ago
parent
commit
32e7419cb6
3 changed files with 26 additions and 0 deletions
  1. 25 0
      XzXdDw.App/Api/PosApi.cs
  2. BIN
      XzXdDw.App/DLL_GZDW.dll
  3. 1 0
      XzXdDw.App/XzXdDw.App.csproj

+ 25 - 0
XzXdDw.App/Api/PosApi.cs

@@ -18,6 +18,31 @@ namespace XzXdDw.App.Api
         [DllImport(X2D1, EntryPoint = "SC_2X1D_DW", CallingConvention = CallingConvention.Cdecl)]//两星一地
         private extern static void X2D1_POS_Core(double[] mainSat, double[] adjaSat, double[] cdbStation, double[] satStation1, double[] satStation2, double[] satStation3, double[] satStation4,
              double[] satStation5, double[] refStation, double[] zone, double tarSxDto, double tarXdDto, double samp_main_dto, double samp_neigh_dto, double[] res);
+
+
+        private const string gzdw = @"AddIns\DLL_GZDW.dll";
+
+        [DllImport(gzdw, EntryPoint = "TwoStar_DTFO_DW", CallingConvention = CallingConvention.Cdecl)]//两星一地
+        private extern static void TwoStar_DTFO_DW(double[] main_sat, double[] neigh_sat, double[] Ref_Station_LLH
+            , double[] Zone, double target_dto, double target_dfo,
+        double ref_dto, double ref_dfo, double fu1, double fu2, double[] target_llh);
+
+        [DllImport(gzdw, EntryPoint = "SingleStar_DFO_DW", CallingConvention = CallingConvention.Cdecl)]//两星一地
+        private extern static void SingleStar_DFO_DW(double[] main_sat, double[] neigh_sat1, double[] neigh_sat2
+            , double[] Zone, double target_dfo1, double target_dfo2, double fu, double[] target_llh);
+
+
+        [DllImport(gzdw, EntryPoint = "TwoStar_SCX", CallingConvention = CallingConvention.Cdecl)]//两星一地
+        private extern static void TwoStar_SCX(double[] main_sat_pos, double[] neigh_sat_pos, double[] ref_pos, double[] Zone,
+        double target_dto, double ref_dto, IntPtr LOP_Value, int[] LOP_Len);
+
+        [DllImport(gzdw, EntryPoint = "TwoStar_PCX", CallingConvention = CallingConvention.Cdecl)]//两星一地
+        private extern static void TwoStar_PCX(double[] main_sat, double[] neigh_sat, double[] ref_pos,
+        double[] Zone, double target_dfo, double ref_dfo, double fu1, double fu2, IntPtr LOP_Value, int[] LOP_Len);
+
+        [DllImport(gzdw, EntryPoint = "SingleStar_PCX", CallingConvention = CallingConvention.Cdecl)]//两星一地
+        private extern static void SingleStar_PCX(double[] main_sat, double[] neigh_sat
+            , double[] Zone, double target_dfo, double fu, IntPtr LOP_Value, int[] LOP_Len);
         #endregion
 
         /// <summary>

BIN
XzXdDw.App/DLL_GZDW.dll


+ 1 - 0
XzXdDw.App/XzXdDw.App.csproj

@@ -484,6 +484,7 @@
     <None Include="Image\初值预估.svg">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
+    <Content Include="DLL_GZDW.dll" />
     <Content Include="定位.ico" />
   </ItemGroup>
   <ItemGroup />