|
@@ -175,7 +175,7 @@ public class AircraftSJ : AircraftEntity
|
|
FlightPlanEditor.targetpoint[0].TargetPointHeight);
|
|
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"));
|
|
|
|
|
|
+ var vis = 10; //helper.getVisibility(cityName, DateTime.Now.ToString("yyyy-MM-dd HH"));
|
|
|
|
|
|
getNCData = new GetNCData();
|
|
getNCData = new GetNCData();
|
|
getNCData.GetData();
|
|
getNCData.GetData();
|
|
@@ -239,7 +239,7 @@ public class AircraftSJ : AircraftEntity
|
|
// 到搜寻航路点的最后一个点 (?)
|
|
// 到搜寻航路点的最后一个点 (?)
|
|
Log.Info(
|
|
Log.Info(
|
|
$"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},是否看到落水人员:{isseePerson}");
|
|
$"海上任务:{taskContent.missionInformation.MissionName} 机型: {AircraftId} 当前时间:{temptime},当前位置:{currentLocation.CurrentLon},{currentLocation.CurrentLat},{currentLocation.CurrentHei},概率:{probability},是否看到落水人员:{isseePerson}");
|
|
- double randomValue = random.NextInt64(9000, 10000); // 生成随机数比较概率 //0.03 第一个参数越高概率越低
|
|
|
|
|
|
+ double randomValue = random.NextInt64(9015 , 10000); // 生成随机数比较概率 //0.03 第一个参数越高概率越低 8985 0.212 100 9000 0 100 8995 0.14 100 8997 0.25 20 8998 0.3 20
|
|
randomValue /= 10000;
|
|
randomValue /= 10000;
|
|
if (randomValue < probability) // 1 - finalProbability
|
|
if (randomValue < probability) // 1 - finalProbability
|
|
{
|
|
{
|