|
@@ -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;
|
|
|
double temptime = 0;
|
|
|
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);
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
if (survivalTime * 3600 > time)
|
|
|
{
|
|
|
Success = true;
|