mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
commit
d31db1351a
@ -1444,7 +1444,7 @@ function AUFTRAG:NewCASENHANCED(CasZone, Altitude, Speed, RangeMax, NoEngageZone
|
|||||||
mission.optionROE=ENUMS.ROE.OpenFire
|
mission.optionROE=ENUMS.ROE.OpenFire
|
||||||
mission.optionROT=ENUMS.ROT.EvadeFire
|
mission.optionROT=ENUMS.ROT.EvadeFire
|
||||||
|
|
||||||
mission.missionFraction=1.0
|
mission.missionFraction=0.5
|
||||||
mission.missionSpeed=Speed and UTILS.KnotsToKmph(Speed) or nil
|
mission.missionSpeed=Speed and UTILS.KnotsToKmph(Speed) or nil
|
||||||
mission.missionAltitude=Altitude and UTILS.FeetToMeters(Altitude) or nil
|
mission.missionAltitude=Altitude and UTILS.FeetToMeters(Altitude) or nil
|
||||||
|
|
||||||
|
|||||||
@ -5943,13 +5943,12 @@ function OPSGROUP:RouteToMission(mission, delay)
|
|||||||
-- Random coordinate.
|
-- Random coordinate.
|
||||||
waypointcoord=targetzone:GetRandomCoordinate(nil , nil, surfacetypes)
|
waypointcoord=targetzone:GetRandomCoordinate(nil , nil, surfacetypes)
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
---
|
---
|
||||||
-- Default case
|
-- Default case
|
||||||
---
|
---
|
||||||
|
|
||||||
waypointcoord=mission:GetMissionWaypointCoord(self.group, randomradius, surfacetypes)
|
waypointcoord=mission:GetMissionWaypointCoord(self.group, randomradius, surfacetypes)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add enroute tasks.
|
-- Add enroute tasks.
|
||||||
@ -6039,7 +6038,7 @@ function OPSGROUP:RouteToMission(mission, delay)
|
|||||||
local d=currentcoord:Get2DDistance(waypointcoord)
|
local d=currentcoord:Get2DDistance(waypointcoord)
|
||||||
|
|
||||||
-- Debug info.
|
-- Debug info.
|
||||||
self:T(self.lid..string.format("Distance to ingress waypoint=%.1f m", d))
|
self:T(self.lid..string.format("Distance to ingress waypoint=%.1f m", d))
|
||||||
|
|
||||||
-- Add mission execution (ingress) waypoint.
|
-- Add mission execution (ingress) waypoint.
|
||||||
local waypoint=nil --#OPSGROUP.Waypoint
|
local waypoint=nil --#OPSGROUP.Waypoint
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user