Skip to content

Commit 98ed7d5

Browse files
#EASYGCICAP
* Added `SetDefaultINTERCEPTAlt()`
1 parent 626b12f commit 98ed7d5

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

Moose Development/Moose/Ops/EasyGCICAP.lua

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@
191191
-- * @{#EASYGCICAP.SetDefaultResurrection}: Set how many seconds the AirWing stays inoperable after the AirWing STATIC HQ ist destroyed, default 900 secs.
192192
-- * @{#EASYGCICAP.SetDefaultCAPSpeed}: Set how many knots the CAP flights should do (will be altitude corrected), default 300 kn.
193193
-- * @{#EASYGCICAP.SetDefaultCAPAlt}: Set at which altitude (ASL) the CAP planes will fly, default 25,000 ft.
194+
-- * @{#EASYGCICAP.SetDefaultINTERCEPTAlt}: Set at which altitude (ASL) the Intercept planes will fly, default 25,000 ft.
194195
-- * @{#EASYGCICAP.SetDefaultCAPDirection}: Set the initial direction from the CAP point the planes will fly in degrees, default is 90°.
195196
-- * @{#EASYGCICAP.SetDefaultCAPLeg}: Set the length of the CAP leg, default is 15 NM.
196-
-- * @{#EASYGCICAP.SetDefaultCAPGrouping}: Set how many planes will be spawned per mission (CVAP/GCI), defaults to 2.
197+
-- * @{#EASYGCICAP.SetDefaultCAPGrouping}: Set how many planes will be spawned per mission (CAP/GCI), defaults to 2.
197198
-- * @{#EASYGCICAP.SetDefaultMissionRange}: Set how many NM the planes can go from the home base, defaults to 100.
198199
-- * @{#EASYGCICAP.SetDefaultNumberAlert5Standby}: Set how many planes will be spawned on cold standby (Alert5), default 2.
199200
-- * @{#EASYGCICAP.SetDefaultEngageRange}: Set max engage range for CAP flights if they detect intruders, defaults to 50.
@@ -287,7 +288,7 @@ EASYGCICAP = {
287288

288289
--- EASYGCICAP class version.
289290
-- @field #string version
290-
EASYGCICAP.version="0.1.37"
291+
EASYGCICAP.version="0.1.38"
291292

292293
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
293294
--
@@ -588,6 +589,17 @@ function EASYGCICAP:SetDefaultCAPAlt(Altitude)
588589
return self
589590
end
590591

592+
--- Set default INTERCEPT Altitude in feet
593+
-- @param #EASYGCICAP self
594+
-- @param #number Altitude (Optional) Altitude defaults to 25000
595+
-- @return #EASYGCICAP self
596+
function EASYGCICAP:SetDefaultINTERCEPTAlt(Altitude)
597+
self:T(self.lid.."SetDefaultINTERCEPTAlt")
598+
self.interceptalt = Altitude or 25000
599+
return self
600+
end
601+
--
602+
591603
--- Set default CAP lieg initial direction in degrees
592604
-- @param #EASYGCICAP self
593605
-- @param #number Direction (Optional) Direction defaults to 90 (East)
@@ -1519,6 +1531,7 @@ function EASYGCICAP:_AssignIntercept(Cluster)
15191531
local overhead = self.overhead
15201532
local capspeed = self.capspeed + 100
15211533
local capalt = self.capalt
1534+
local interalt = self.interceptalt or self.capalt
15221535
local maxsize = self.maxinterceptsize
15231536
local repeatsonfailure = self.repeatsonfailure
15241537

@@ -1606,6 +1619,7 @@ function EASYGCICAP:_AssignIntercept(Cluster)
16061619
:SetRepeatOnFailure(repeats)
16071620
:SetMissionSpeed(UTILS.KnotsToAltKIAS(capspeed,capalt))
16081621
:SetMissionAltitude(capalt)
1622+
:SetEngageAltitude(interalt)
16091623

16101624
if nogozoneset:Count() > 0 then
16111625
InterceptAuftrag:AddConditionSuccess(

0 commit comments

Comments
 (0)