|
@@ -29,17 +29,16 @@ public class AircraftDY : AircraftEntity
|
|
|
public override void Start()
|
|
|
{
|
|
|
int hour = Convert.ToInt32(taskContent.missionInformation.StartTime.Split("时")[0]);
|
|
|
- Console.WriteLine("hour:" + hour);
|
|
|
+
|
|
|
double windSpeed = Convert.ToDouble(TargetQiXiangInfoSave("风速", hour));
|
|
|
- Console.WriteLine("windSpeed:" + windSpeed);
|
|
|
+
|
|
|
double vis = Convert.ToDouble(TargetQiXiangInfoSave("能见度", hour));
|
|
|
- Console.WriteLine("vis:" + vis);
|
|
|
+
|
|
|
|
|
|
-
|
|
|
- FlightPlanEditor.missionpoint.MissionPointLatitude = taskParameter.MissionPoints_KZDY[0].MissionPointLatitude;
|
|
|
- FlightPlanEditor.missionpoint.MissionPointLongitude = taskParameter.MissionPoints_KZDY[0].MissionPointLongitude;
|
|
|
- FlightPlanEditor.missionpoint.MissionPointHeight = taskParameter.MissionPoints_KZDY[0].MissionPointHeight;
|
|
|
- Console.WriteLine("Latitude:" + FlightPlanEditor.missionpoint.MissionPointLatitude + "_" + "Longitude:" + FlightPlanEditor.missionpoint.MissionPointLongitude + "_" + "Height:" + FlightPlanEditor.missionpoint.MissionPointHeight);
|
|
|
+ FlightPlanEditor.missionpoint.MissionPointLatitude = FlightPlanEditor.targetpoint[0].TargetPointLatitude;
|
|
|
+ FlightPlanEditor.missionpoint.MissionPointLongitude = FlightPlanEditor.targetpoint[0].TargetPointLongitude;
|
|
|
+ FlightPlanEditor.missionpoint.MissionPointHeight = FlightPlanEditor.targetpoint[0].TargetPointHeight;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -47,9 +46,9 @@ public class AircraftDY : AircraftEntity
|
|
|
FXJHGenerate.FromStartToMission(FlightPlanEditor, ref TurningPoints);
|
|
|
|
|
|
double resulttime = get_result_time_rope(taskParameter.Height, taskParameter.liftPersonnel, windSpeed, vis, taskParameter.liftUpSpeed, taskParameter.liftDownSpeed).time;
|
|
|
- FXJHGenerate.SuoHuaJiang(resulttime, FlightPlanEditor, ref TurningPoints);
|
|
|
+ FXJHGenerate.SuoHuaJiang(resulttime, FlightPlanEditor, ref TurningPoints);
|
|
|
|
|
|
- FXJHGenerate.FromMissionToEnd(FlightPlanEditor, FXJHGenerate.SuoHuaJiangMissionEndPoint(FlightPlanEditor), ref TurningPoints);
|
|
|
+ FXJHGenerate.FromMissionToEnd(FlightPlanEditor, FXJHGenerate.SuoHuaJiangMissionEndPoint(FlightPlanEditor), ref TurningPoints);
|
|
|
FXJHGenerate.FXJHTPDiedai(FlightPlanEditor, ref TurningPoints, Velocitys, FuelConsumptions);
|
|
|
|
|
|
for (int i = 0; i < TurningPoints.Count; i++)
|