|
@@ -74,6 +74,8 @@ public class AircraftKTKS : AircraftEntity
|
|
|
Hour = Convert.ToInt32(taskContent.missionInformation.StartTime.Split("时")[0]);
|
|
|
Days = GetDaysInYear(Year, Month, Day);
|
|
|
Text_readNC text_ReadNC = new Text_readNC();
|
|
|
+ text_ReadNC.initlatitudes = rescueDemandInfo.TargetPointLatitude;
|
|
|
+ text_ReadNC.initlongitudes = rescueDemandInfo.TargetPointLongitude;
|
|
|
text_ReadNC.GetNCData();
|
|
|
var nCread = text_ReadNC.windNCread;
|
|
|
|
|
@@ -85,7 +87,7 @@ public class AircraftKTKS : AircraftEntity
|
|
|
List<double> KTresultPostion = new List<double>();
|
|
|
|
|
|
double KTheight;
|
|
|
- if(taskParameter.isParachute) //空投空送任务文件读取
|
|
|
+ if (taskParameter.isParachute) //空投空送任务文件读取
|
|
|
{
|
|
|
KTheight = 200;
|
|
|
// 空投迎风面积 = 1.5 空投空送任务文件读取 50 = 空投重量 空投空送任务文件读取
|
|
@@ -96,13 +98,21 @@ public class AircraftKTKS : AircraftEntity
|
|
|
double resultX = inix + 33 * Math.Cos(alpha) * KTiniposition[2];
|
|
|
double resultY = iniy + 33 * Math.Sin(alpha) * KTiniposition[2];
|
|
|
|
|
|
- KTresultPostion[0] = ReMokatuo_lat(resultY);
|
|
|
- KTresultPostion[1] = ReMokatuo_lon(resultX);
|
|
|
+ KTresultPostion.Add(ReMokatuo_lat(resultY));
|
|
|
+ KTresultPostion.Add(ReMokatuo_lon(resultX));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
KTheight = 20;
|
|
|
KTiniposition = getPositionWithoutUmbrella(FlightPlanEditor.missionpoint.MissionPointLongitude, FlightPlanEditor.missionpoint.MissionPointLatitude, KTheight, windSpeed, 22, alpha, theta);
|
|
|
+ double inix = Mokatuo_lon(KTiniposition[1]);
|
|
|
+ double iniy = Mokatuo_lat(KTiniposition[0]);
|
|
|
+
|
|
|
+ double resultX = inix + 22 * Math.Cos(alpha) * KTiniposition[2];
|
|
|
+ double resultY = iniy + 22 * Math.Sin(alpha) * KTiniposition[2];
|
|
|
+
|
|
|
+ KTresultPostion.Add(ReMokatuo_lat(resultY));
|
|
|
+ KTresultPostion.Add(ReMokatuo_lon(resultX));
|
|
|
}
|
|
|
|
|
|
TurningPoints.RemoveAt(2);
|
|
@@ -127,8 +137,8 @@ public class AircraftKTKS : AircraftEntity
|
|
|
for (int i = 0; i < TurningPoints.Count; i++) // 总飞行时间
|
|
|
{
|
|
|
TotalTime += TurningPoints[i].SegmentFlightTime; // 总时间 //仿真轮次1 数值1
|
|
|
- //Console.WriteLine("TotalTime:" + TotalTime);
|
|
|
}
|
|
|
+ Console.WriteLine("TotalTime:" + TotalTime);
|
|
|
IsOver = true;
|
|
|
Success = true; //需要判断
|
|
|
End();
|
|
@@ -288,7 +298,7 @@ public class AircraftKTKS : AircraftEntity
|
|
|
double lat = ReMokatuo_lat(y_new);
|
|
|
double lon = ReMokatuo_lon(x_new);
|
|
|
List<double> result = new List<double>()
|
|
|
- {lat, lon};
|
|
|
+ {lat, lon,time};
|
|
|
Console.WriteLine(y_new);
|
|
|
Console.WriteLine(y);
|
|
|
return result; //投放空投的位置
|