mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Auftrag.lua
This commit is contained in:
parent
4cc1db1365
commit
c279ab6311
@ -1296,11 +1296,7 @@ end
|
|||||||
function AUFTRAG:NewCAP(ZoneCAP, Altitude, Speed, Coordinate, Heading, Leg, TargetTypes)
|
function AUFTRAG:NewCAP(ZoneCAP, Altitude, Speed, Coordinate, Heading, Leg, TargetTypes)
|
||||||
|
|
||||||
-- Ensure given TargetTypes parameter is a table.
|
-- Ensure given TargetTypes parameter is a table.
|
||||||
if TargetTypes then
|
TargetTypes=UTILS.EnsureTable(TargetTypes, true)
|
||||||
if type(TargetTypes)~="table" then
|
|
||||||
TargetTypes={TargetTypes}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Create ORBIT first.
|
-- Create ORBIT first.
|
||||||
local mission=AUFTRAG:NewORBIT(Coordinate or ZoneCAP:GetCoordinate(), Altitude or 10000, Speed or 350, Heading, Leg)
|
local mission=AUFTRAG:NewORBIT(Coordinate or ZoneCAP:GetCoordinate(), Altitude or 10000, Speed or 350, Heading, Leg)
|
||||||
@ -1342,11 +1338,8 @@ end
|
|||||||
function AUFTRAG:NewCAPGROUP(Grp, Altitude, Speed, RelHeading, Leg, OffsetDist, OffsetAngle, UpdateDistance, TargetTypes, EngageRange)
|
function AUFTRAG:NewCAPGROUP(Grp, Altitude, Speed, RelHeading, Leg, OffsetDist, OffsetAngle, UpdateDistance, TargetTypes, EngageRange)
|
||||||
|
|
||||||
-- Ensure given TargetTypes parameter is a table.
|
-- Ensure given TargetTypes parameter is a table.
|
||||||
if TargetTypes then
|
TargetTypes=UTILS.EnsureTable(TargetTypes, true)
|
||||||
if type(TargetTypes)~="table" then
|
|
||||||
TargetTypes={TargetTypes}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
-- Six NM astern.
|
-- Six NM astern.
|
||||||
local OffsetVec2={r=OffsetDist or 6, phi=OffsetAngle or 180}
|
local OffsetVec2={r=OffsetDist or 6, phi=OffsetAngle or 180}
|
||||||
|
|
||||||
@ -1395,11 +1388,7 @@ end
|
|||||||
function AUFTRAG:NewCAS(ZoneCAS, Altitude, Speed, Coordinate, Heading, Leg, TargetTypes)
|
function AUFTRAG:NewCAS(ZoneCAS, Altitude, Speed, Coordinate, Heading, Leg, TargetTypes)
|
||||||
|
|
||||||
-- Ensure given TargetTypes parameter is a table.
|
-- Ensure given TargetTypes parameter is a table.
|
||||||
if TargetTypes then
|
TargetTypes=UTILS.EnsureTable(TargetTypes, true)
|
||||||
if type(TargetTypes)~="table" then
|
|
||||||
TargetTypes={TargetTypes}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Create ORBIT first.
|
-- Create ORBIT first.
|
||||||
local mission=AUFTRAG:NewORBIT(Coordinate or ZoneCAS:GetCoordinate(), Altitude or 10000, Speed, Heading, Leg)
|
local mission=AUFTRAG:NewORBIT(Coordinate or ZoneCAS:GetCoordinate(), Altitude or 10000, Speed, Heading, Leg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user