123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using DevExpress.Charts.Native;
- using DevExpress.Internal.WinApi.Windows.UI.Notifications;
- using DevExpress.XtraPrinting;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.IO;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- using XdCxRhDW.App.DTO;
- using static DevExpress.XtraCharts.GLGraphics.Platform.EGL;
- using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock;
- namespace XzXdDw.App.Api.低轨GDOP误差椭圆
- {
- /// <summary>
- /// Gdop误差分布计算帮助类.该类调用了GdopCore.exe进程
- /// 每种GDOP算法提供了两个接口,这两种接口是完全等价的,一种传入双行根,一种直接传入卫星状态x、y、z等
- /// </summary>
- public static class GdopHelper
- {
- private const string GDOPDll = @"Api\低轨GDOP误差椭圆\GDOP\DLL_GDOP_Analysis.dll";
- /// <summary>
- /// 低轨双星误差椭圆
- /// </summary>
- /// <param name="main_eph">主星位置 长度6</param>
- /// <param name="neigh_eph">邻星位置 长度6</param>
- /// <param name="ref_pos">参考位置 长度3</param>
- /// <param name="Select_Point">定位点长度3</param>
- /// <param name="dto_err">时差误差(s)</param>
- /// <param name="dfo_err">频差误差(Hz)</param>
- /// <param name="eph_pos_err"></param>
- /// <param name="eph_vel_err"></param>
- /// <param name="fu"></param>
- /// <param name="Pe">0.5</param>
- /// <param name="LOP_Len"></param>
- /// <returns></returns>
- [DllImport(GDOPDll, EntryPoint = "Error_Ellipse_DTFO", CallingConvention = CallingConvention.Cdecl)]
- public extern static IntPtr Error_Ellipse_DTFO(double[] main_eph, double[] neigh_eph, double[] ref_pos, double[] Select_Point, double dto_err, double dfo_err,
- double eph_pos_err, double eph_vel_err, double fu, double Pe, ref int LOP_Len);
- [DllImport(GDOPDll, CallingConvention = CallingConvention.Cdecl)]
- public static extern void freeBuff(IntPtr buf);
-
- }
-
- }
|