|
@@ -167,14 +167,14 @@ public class AircraftSJ : AircraftEntity
|
|
|
double time = 0;
|
|
|
for (int i = 0; i < TurningPoints.Count - 2; i++)
|
|
|
{
|
|
|
- time += TurningPoints[i].SegmentFlightTime;
|
|
|
+ time += TurningPoints[i].SegmentFlightTime;
|
|
|
}
|
|
|
|
|
|
double3 targetPoint = new double3(FlightPlanEditor.targetpoint[0].TargetPointLongitude,
|
|
|
FlightPlanEditor.targetpoint[0].TargetPointLatitude,
|
|
|
FlightPlanEditor.targetpoint[0].TargetPointHeight);
|
|
|
|
|
|
- string cityName = helper.getCityName(targetPoint.x,targetPoint.y);
|
|
|
+ string cityName = helper.getCityName(targetPoint.x, targetPoint.y);
|
|
|
var vis = helper.getVisibility(cityName, DateTime.Now.ToString("yyyy-MM-dd HH"));
|
|
|
|
|
|
getNCData = new GetNCData();
|
|
@@ -195,16 +195,16 @@ public class AircraftSJ : AircraftEntity
|
|
|
{
|
|
|
FXJHGenerate.SeaSouJiu(FlightPlanEditor, ref TurningPoints);
|
|
|
FXJHGenerate.FXJHTPDiedai(FlightPlanEditor, ref TurningPoints, Velocitys, FuelConsumptions);
|
|
|
-
|
|
|
+
|
|
|
time = 0;
|
|
|
for (int i = 0; i < TurningPoints.Count - 2; i++)
|
|
|
{
|
|
|
- time += TurningPoints[i].SegmentFlightTime;
|
|
|
+ time += TurningPoints[i].SegmentFlightTime;
|
|
|
}
|
|
|
- Log.Info($"+++++++++++搜寻结束 TurningPoints Count: { TurningPoints.Count } 下次结束的时间 { time }++++++++++++++++");
|
|
|
+ Log.Info($"+++++++++++搜寻结束 TurningPoints Count: {TurningPoints.Count} 下次结束的时间 {time}++++++++++++++++");
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
(currentLocation, _) =
|
|
|
FXJHGenerate.GetAllCurrentLocation(TurningPoints, temptime);
|
|
|
double3 aricraftPoint = new double3(currentLocation.CurrentLon, currentLocation.CurrentLat,
|
|
@@ -235,11 +235,11 @@ public class AircraftSJ : AircraftEntity
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
Log.Info(
|
|
|
- $"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},最终概率:{1 - finalProbability},是否看到落水人员:{isseePerson}");
|
|
|
- double randomValue = random.NextInt64(9000,10000);
|
|
|
+ $"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},是否看到落水人员:{isseePerson}");
|
|
|
+ double randomValue = random.NextInt64(9000, 10000);
|
|
|
randomValue /= 10000;
|
|
|
if (randomValue < probability)
|
|
|
{
|
|
@@ -252,7 +252,7 @@ public class AircraftSJ : AircraftEntity
|
|
|
{
|
|
|
isseePerson = false;
|
|
|
}
|
|
|
- if(temptime >= taskContent.missionInformation.TaskEndConditions.TaskTime)
|
|
|
+ if (temptime >= taskContent.missionInformation.TaskEndConditions.TaskTime)
|
|
|
{
|
|
|
IsOver = true;
|
|
|
isseePerson = false;
|
|
@@ -261,12 +261,12 @@ public class AircraftSJ : AircraftEntity
|
|
|
} while (!isseePerson && IsOver == false);
|
|
|
if (isseePerson)
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
for (int i = 0; i < TurningPoints.Count - 1; i++)
|
|
|
{
|
|
|
TotalTime += TurningPoints[i].SegmentFlightTime;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
double time = TotalTime;
|
|
|
|
|
|
double latitude = FlightPlanEditor.targetpoint[0].TargetPointLatitude;
|
|
@@ -285,12 +285,12 @@ public class AircraftSJ : AircraftEntity
|
|
|
Log.Info("TotalTime:" + TotalTime);
|
|
|
Log.Info("幸存时间:" + survivalTime);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
Log.Info(
|
|
|
- $"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},最终概率:{1 - finalProbability},是否看到落水人员:{isseePerson},人员是否幸存:{Success}");
|
|
|
+ $"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},是否看到落水人员:{isseePerson},人员是否幸存:{Success}");
|
|
|
|
|
|
|
|
|
|
|
@@ -344,7 +344,7 @@ public class AircraftSJ : AircraftEntity
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|