|
@@ -101,10 +101,10 @@ public class AircraftSJ : AircraftEntity
|
|
|
|
|
|
//漂移轨迹
|
|
|
List<double[]> trajectory = SeaSJ.CalculateDriftTrajectory(nCread, initialPosition, dt, totalTime, text_ReadNC.times, text_ReadNC.latitudes, text_ReadNC.longitudes, text_ReadNC.times1, text_ReadNC.latitudes1, text_ReadNC.longitudes1, text_ReadNC.times2, text_ReadNC.latitudes2, text_ReadNC.longitudes2, text_ReadNC.times3, text_ReadNC.latitudes3, text_ReadNC.longitudes3, Days, Hour, text_ReadNC.initlatitudes, text_ReadNC.initlongitudes);
|
|
|
- foreach ( var trajectoryItem in trajectory)
|
|
|
- {
|
|
|
- Console.WriteLine("trajectory:" + trajectoryItem[0] + "_" + trajectoryItem[1]);
|
|
|
- }
|
|
|
+ //foreach ( var trajectoryItem in trajectory)
|
|
|
+ //{
|
|
|
+ // Console.WriteLine("trajectory:" + trajectoryItem[0] + "_" + trajectoryItem[1]);
|
|
|
+ //}
|
|
|
|
|
|
// 生成任务终点
|
|
|
MissionEndPoint = new MissionEndPoint
|
|
@@ -123,10 +123,10 @@ public class AircraftSJ : AircraftEntity
|
|
|
{
|
|
|
points.Add(new Point(item[0], item[1]));
|
|
|
}
|
|
|
- foreach (var item in points)
|
|
|
- {
|
|
|
- Console.WriteLine("item:" + item.lat + "-" + item.lon);
|
|
|
- }
|
|
|
+ //foreach (var item in points)
|
|
|
+ //{
|
|
|
+ // Console.WriteLine("item:" + item.lat + "-" + item.lon);
|
|
|
+ //}
|
|
|
Point basePoint = new Point(FlightPlanEditor.originbase.BaseLatitude,
|
|
|
FlightPlanEditor.originbase.BaseLongitude);
|
|
|
List<Point> waypoints = new List<Point>();
|
|
@@ -225,10 +225,10 @@ public class AircraftSJ : AircraftEntity
|
|
|
FXJHGenerate.SeaSouJiu(FlightPlanEditor, ref TurningPoints);
|
|
|
FXJHGenerate.FXJHTPDiedai(FlightPlanEditor, ref TurningPoints, Velocitys, FuelConsumptions);
|
|
|
|
|
|
- foreach (var item in TurningPoints)
|
|
|
- {
|
|
|
- Console.WriteLine("TurningPointLatitude:" + item.TurningPointLatitude + "_" + "TurningPointLongitude:" + item.TurningPointLongitude);
|
|
|
- }
|
|
|
+ //foreach (var item in TurningPoints)
|
|
|
+ //{
|
|
|
+ // Console.WriteLine("TurningPointLatitude:" + item.TurningPointLatitude + "_" + "TurningPointLongitude:" + item.TurningPointLongitude);
|
|
|
+ //}
|
|
|
|
|
|
double time = 0; // 第一次 搜寻结束
|
|
|
for (int i = 0; i < TurningPoints.Count - 2; i++)
|