|
@@ -2,6 +2,7 @@
|
|
|
using Model;
|
|
|
using MongoDB.Bson;
|
|
|
using MuShiApp;
|
|
|
+using Org.BouncyCastle.Asn1.Pkcs;
|
|
|
using SimulationCommon;
|
|
|
using SimulationSingleServer.Utils;
|
|
|
using Unity.Mathematics;
|
|
@@ -218,7 +219,7 @@ public class AircraftSJ : AircraftEntity
|
|
|
|
|
|
Task.Run(() =>
|
|
|
{
|
|
|
- bool isseePerson = false;
|
|
|
+ bool isseePerson = false; // 没看到人是0 看到人调用下面方法 //人员存活率 读取Editor人数
|
|
|
double temptime = 0; // 自增时间,每次增加1s
|
|
|
CurrentLocation currentLocation = new CurrentLocation();
|
|
|
double probability = 0;
|
|
@@ -312,7 +313,7 @@ public class AircraftSJ : AircraftEntity
|
|
|
if (isseePerson)
|
|
|
{
|
|
|
|
|
|
- for (int i = 0; i < TurningPoints.Count - 1; i++)
|
|
|
+ for (int i = 0; i < TurningPoints.Count - 1; i++) // 总飞行时间
|
|
|
{
|
|
|
TotalTime += TurningPoints[i].SegmentFlightTime; // 总时间
|
|
|
}
|
|
@@ -323,7 +324,8 @@ public class AircraftSJ : AircraftEntity
|
|
|
double longitude = FlightPlanEditor.targetpoint[0].TargetPointLongitude; //落水人员经度,数据测试用
|
|
|
|
|
|
double survivalTime = SurvivalTimeModel.SurvivalTime(getNCData.tempreadNC, latitude, longitude, time, text_ReadNC.times, text_ReadNC.latitudes, text_ReadNC.longitudes, Days, Hour); //幸存时间
|
|
|
-
|
|
|
+ // SHJParameter.person_number = Eidtor里读取 SHJParameter.windspeed Nc/Editor
|
|
|
+ //double resulttime = get_result_time_rope(30, SHJParameter.person_number, SHJParameter.windspeed, SHJParameter.vis, 0.75, 1.38).time;//索滑降模型输出的索滑降时间
|
|
|
if (survivalTime * 3600 > time)
|
|
|
{
|
|
|
Success = true;
|