Module Functional.Mantis

MANTIS System

  • MANTIS - Moose derived M odular, A utomatic and N etwork capable T argeting and I nterception S ystem

MANTIS - Moose derived Modular, Automatic and Network capable Targeting and Interception System Controls a network of SAM sites.

Use detection to switch on the AA site closest to the enemy Leverage evasiveness from SEAD Leverage attack range setup added by DCS in 11/20


Authors : *applevangelist *

Global(s)

Global MANTIS

The worst thing that can happen to a good cause is, not to be skillfully attacked, but to be ineptly defended. - Frédéric Bastiat

Simple Class for a more intelligent Air Defense System

MANTIS

Moose derived Modular, Automatic and Network capable Targeting and Interception System.

#MANTIS MANTIS

The worst thing that can happen to a good cause is, not to be skillfully attacked, but to be ineptly defended. - Frédéric Bastiat

Simple Class for a more intelligent Air Defense System

MANTIS

Moose derived Modular, Automatic and Network capable Targeting and Interception System.

Controls a network of SAM sites. Use detection to switch on the AA site closest to the enemy. Leverage evasiveness from Functional.Sead#SEAD. Leverage attack range setup added by DCS in 11/20.

Usage:

Set up your SAM sites in the mission editor. Name the groups with common prefix like "Red SAM".
Set up your EWR system in the mission editor. Name the groups with common prefix like "Red EWR". Can be e.g. AWACS or a combination of AWACS and Search Radars like e.g. EWR 1L13 etc.
[optional] Set up your HQ. Can be any group, e.g. a command vehicle.

Start up your MANTIS

`myredmantis = MANTIS:New("myredmantis","Red SAM","Red EWR",nil,"red",false)`
[optional] Use `MANTIS:SetEWRGrouping(radius)`, `MANTIS:SetEWRRange(radius)`, `MANTIS:SetSAMRadius(radius)`, `MANTIS:SetDetectInterval(interval)` to fine-tune your setup.

`myredmantis:Start()`

Global _MANTISdetection

_MANTISdetection

group detected objects to 5000m zones

Global groupset

groupset

start detection

Global m

m

Global text

text

samgroup:OptionROEWeaponFree() samgroup:SetAIOn()

Type(s)

Fields and Methods inherited from MANTIS Description

MANTIS:CheckObjectInZone(dectset, samcoordinate)

Function to check if no object is in the given SAM zone

MANTIS.Coalition

MANTIS:Debug(onoff)

Function to set switch-on/off the debug state

MANTIS.Detection

MANTIS.EWR_Group

MANTIS.EWR_Templates_Prefix

MANTIS.MantisTimer

MANTIS:New(name, samprefix, ewrprefix, hq, coaltion, dynamic)

Function instantiate new class

MANTIS.SAM_Group

MANTIS.SAM_Table

MANTIS.SAM_Templates_Prefix

MANTIS.SEAD_CC

MANTIS.SEAD_Template_CC

MANTIS:SetDetectInterval(interval)

Function to set the detection interval

MANTIS:SetEWRGrouping(radius)

Function to set the grouping radius of the detection in meters

MANTIS:SetEWRRange(radius)

Function to set the detection radius of the EWR in meters

MANTIS:SetSAMRadius(radius)

Function to set switch-on/off zone for the SAM sites in meters

MANTIS:SetSAMStartState()

Function to set the SAM start state

MANTIS:Start()

Function to set the SAM start state

MANTIS:StartDetection()

Function to start the detection via EWR groups

MANTIS:Stop()

Function to stop MANTIS

MANTIS:_GetSAMTable()

[internal] Function to get the self.SAM_Table

MANTIS:_SetSAMTable(table)

[internal] Function to set the self.SAM_Table

MANTIS.acceptrange

MANTIS.checkradius

MANTIS.debug

MANTIS.detectinterval

MANTIS.dynamic

MANTIS.grouping

MANTIS.lid

MANTIS.name

MANTIS.version

Field(s)

MANTIS.EWR_Group

get EWR SET_GROUP

MANTIS.SAM_Group

get SAM SET_GROUP

#number MANTIS.grouping
MANTIS.lid

Set some string id for output to DCS.log file.

#string MANTIS.version

@field #string version

Function(s)

Function to check if no object is in the given SAM zone

Defined in:

MANTIS

Parameters:

#table dectset

Table of coordinates of detected items

samcoordinate

Core.Point#COORDINATE Coordinate object.

Return value:

#boolean:

True if in any zone, else false

Function to set switch-on/off the debug state

Defined in:

MANTIS

Parameter:

#boolean onoff

Set true to switch on

Function instantiate new class

Defined in:

MANTIS

Parameters:

#string name

Name of this MANTIS for reporting

#string samprefix

Prefixes for the SAM groups from the ME, e.g. all groups starting with "Red Sam..."

#string ewrprefix

Prefixes for the EWR and AWACS groups from the ME, e.g. all groups starting with "Red EWR..."

#string hq

Group name of your HQ (optional)

#string coaltion

Coalition side of your setup, e.g. "blue", "red" or "neutral"

#boolean dynamic

Use constant (true) filtering or just filer once (false, default)

Return value:

self

Function to set the detection interval

Defined in:

MANTIS

Parameter:

#number interval

The interval in seconds

Function to set the grouping radius of the detection in meters

Defined in:

MANTIS

Parameter:

#number radius

Radius upon which detected objects will be grouped

Function to set the detection radius of the EWR in meters

Defined in:

MANTIS

Parameter:

#number radius

Radius of the EWR detection zone

Function to set switch-on/off zone for the SAM sites in meters

Defined in:

MANTIS

Parameter:

#number radius

Radius of the firing zone

Function to set the SAM start state

Defined in:

MANTIS

Return value:

self

Function to set the SAM start state

Defined in:

MANTIS

Return value:

self

Function to start the detection via EWR groups

Defined in:

MANTIS

Return value:

The running detection set

Function to stop MANTIS

Defined in:

MANTIS

Return value:

self

[internal] Function to get the self.SAM_Table

Defined in:

MANTIS

Return value:

#table:

table

[internal] Function to set the self.SAM_Table

Defined in:

MANTIS

Parameter:

table

Return value:

self