using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using XdCxRhDW.Entity;
namespace XdCxRhDW.Api.AddIns
{
///
/// 频差值推算接口
///
public static class DfoCalcAPI
{
//频差推算算法(用于频差预测调用)
private const string dfoDll = @"AddIns\频差推算\DLL_DTF.dll";
///
/// 频差预测
///
/// 目标位置(3)
/// 星历位置(6)
/// 上行频点(Hz)
///
[DllImport(dfoDll, EntryPoint = "CFO_Comput", CallingConvention = CallingConvention.Cdecl)]//频差预测
private extern static double CFO_Comput(double[] target_llh, double[] main_sat, double fu);
///
/// 频差预测
///
///
///
///
///
public static double DfoCalc(double[] targetPos, double[] satEph, double fuHz)
{
return CFO_Comput(targetPos, satEph, fuHz);
}
}
}