Banner Image

Module Ops.ATIS

Global(s)

Global ATIS

It is a very sad thing that nowadays there is so little useless information. - Oscar Wilde


Banner Image

The ATIS Concept

Automatic terminal information service, or ATIS, is a continuous broadcast of recorded aeronautical information in busier terminal areas, i.e. airports and their immediate surroundings.

#ATIS ATIS

It is a very sad thing that nowadays there is so little useless information. - Oscar Wilde


Banner Image

The ATIS Concept

Automatic terminal information service, or ATIS, is a continuous broadcast of recorded aeronautical information in busier terminal areas, i.e. airports and their immediate surroundings.

ATIS broadcasts contain essential information, such as current weather information, active runways, and any other information required by the pilots.

DCS Limitations

Unfortunately, the DCS API only allow to get the temperature, pressure as well as wind direction and speed. Therefore, some other information such as cloud coverage, base and ceiling are not available when dynamic weather is used.

Scripting

The lua script to create an ATIS at an airport is pretty easy:

-- ATIS at Batumi Airport on 143.00 MHz AM.
atisBatumi=ATIS:New("Batumi", 143.00)
atisBatumi:Start()

The ATIS.New(airbasename, frequency) creates a new ATIS object. The parameter airbasename is the name of the airbase or airport. Note that this has to be spelled exactly as in the DCS mission editor. The parameter frequency is the frequency the ATIS broadcasts in MHz.

Broadcasting is started via the ATIS.Start() function. The start can be delayed by using ATIS.__Start(delay), where delay is the delay in seconds.

Subtitles

Note Subtitles are not displayed when using SRS. The DCS mechanic to show subtitles (top left screen), is via the function call that plays a sound file from a UNIT, hence this doesn't work here.

Currently, DCS allows for displaying subtitles of radio transmissions only from airborne units, i.e. airplanes and helicopters. Therefore, if you want to have subtitles, it is necessary to place an additional aircraft on the ATIS airport and set it to uncontrolled. This unit can then function as a radio relay to transmit messages with subtitles. These subtitles will only be displayed, if the player has tuned in the correct ATIS frequency.

Radio transmissions via an airborne unit can be set via the ATIS.SetRadioRelayUnitName(unitname) function, where the parameter unitname is the name of the unit passed as string, e.g.

atisBatumi:SetRadioRelayUnitName("Radio Relay Batumi")

With a unit set in the mission editor with name "Radio Relay Batumi".

Note that you should use a different relay unit for each ATIS!

By default, subtitles are displayed for 10 seconds. This can be changed using ATIS.SetSubtitleDuration(duration) with duration being the duration in seconds. Setting a duration of 0 will completely disable all subtitles.

Active Runway

By default, the currently active runway is determined automatically by analyzing the wind direction. Therefore, you should obviously set the wind speed to be greater zero in your mission.

Note however, there are a few special cases, where automatic detection does not yield the correct or desired result. For example, there are airports with more than one runway facing in the same direction (usually denoted left and right). In this case, there is obviously no unique result depending on the wind vector.

If the automatic runway detection fails, the active runway can be specified manually in the script via the ATIS.SetActiveRunway(runway) function. The parameter runway is a string which can be used to specify the runway heading and, if applicable, whether the left or right runway is in use.

For example, setting runway 21L would be

atisNellis:SetActiveRunway("21L")

The script will examine the string and search for the characters "L" (left) and "R" (right).

If only left or right should be set and the direction determined by the wind vector, the runway heading can be left out, e.g.

atisAbuDhabi:SetActiveRunway("L")

The first two digits of the runway are determined by converting the true runway heading into its magnetic heading. The magnetic declination (or variation) is assumed to be constant on the given map. An explicit correction factor can be set via ATIS.SetRunwayCorrectionMagnetic2True.

Tower Frequencies

The tower frequency (or frequencies) can also be included in the ATIS information. However, there is no way to get these automatically. Therefore, it is necessary to manually specify them in the script via the ATIS.SetTowerFrequencies(frequencies) function. The parameter frequencies can be a plain number if only one frequency is necessary or it can be a table of frequencies.

Nav Aids

Frequencies or channels of navigation aids can be specified by the user and are then provided as additional information. Unfortunately, it is not possible to acquire this information via the DCS API we have access to.

As they say, all road lead to Rome but (for me) the easiest way to obtain the available nav aids data of an airport, is to start a mission and click on an airport symbol.

For example, the AIRDROME DATA for Batumi reads:

Banner Image

And the AIRDROME DATA for Kobuleti reads:

Banner Image

TACAN

The TACtical Air Navigation system (TACAN) channel can be set via the ATIS.SetTACAN(channel) function, where channel is the TACAN channel. Band is always assumed to be X-ray.

VOR

The Very high frequency Omni-directional Range (VOR) frequency can be set via the ATIS.SetVOR(frequency) function, where frequency is the VOR frequency.

ILS

The Instrument Landing System (ILS) frequency can be set via the ATIS.AddILS(frequency, runway) function, where frequency is the ILS frequency and runway the two letter string of the corresponding runway, e.g. "31". If the parameter runway is omitted (nil) then the frequency is supposed to be valid for all runways of the airport.

NDB

Inner and outer Non-Directional (radio) Beacons NDBs can be set via the ATIS.AddNDBinner(frequency, runway) and ATIS.AddNDBouter(frequency, runway) functions, respectively.

In both cases, the parameter frequency is the NDB frequency and runway the two letter string of the corresponding runway, e.g. "31". If the parameter runway is omitted (nil) then the frequency is supposed to be valid for all runways of the airport.

RSBN

The RSBN channel can be set via the ATIS.SetRSBN(channel) function.

PRMG

The PRMG channel can be set via the ATIS.AddPRMG(channel, runway) function for each runway.

Unit System

By default, information is given in imperial units, i.e. wind speed in knots, pressure in inches of mercury, visibility in Nautical miles, etc.

If you prefer metric units, you can enable this via the ATIS.SetMetricUnits() function,

atisBatumi:SetMetricUnits()

With this, wind speed is given in meters per second, pressure in hectopascal (hPa, which is the same as millibar - mbar), visibility in kilometers etc.

Sound Files

More than 180 individual sound files have been created using a text-to-speech program. All ATIS information is given with en-US accent. You can find the sound files here. Also check out the pinned messages in the Moose discord #ops-atis channel.

To include the files, open the mission (.miz) file with, e.g., 7-zip. Then just drag-n-drop the file into the miz.

Banner Image

Note that the default folder name is ATIS Soundfiles/. If you want to change it, you can use the ATIS.SetSoundfilesPath(path), where path is the path of the directory. This must end with a slash "/"!

Marks on the F10 Map

You can place marks on the F10 map via the ATIS.SetMapMarks() function. These will contain info about the ATIS frequency, the currently active runway and some basic info about the weather (wind, pressure and temperature).

Text-To-Speech

You can enable text-to-speech ATIS information with the ATIS.SetSRS() function. This uses SRS (Version >= 1.9.6.0) for broadcasting. Advantages are that no sound files or radio relay units are necessary. Also the issue that FC3 aircraft hear all transmissions will be circumvented.

The ATIS.SetSRS() requires you to specify the path to the SRS install directory or more specifically the path to the DCS-SR-ExternalAudio.exe file.

Unfortunately, it is not possible to determine the duration of the complete transmission. So once the transmission is finished, there might be some radio silence before the next iteration begins. You can fine tune the time interval between transmissions with the ATIS.SetQueueUpdateTime() function. The default interval is 90 seconds.

An SRS Setup-Guide can be found here: Moose TTS Setup Guide

Examples

Caucasus: Batumi

-- ATIS Batumi Airport on 143.00 MHz AM.
atisBatumi=ATIS:New(AIRBASE.Caucasus.Batumi, 143.00)
atisBatumi:SetRadioRelayUnitName("Radio Relay Batumi")
atisBatumi:Start()

Nevada: Nellis AFB

-- ATIS Nellis AFB on 270.10 MHz AM.
atisNellis=ATIS:New(AIRBASE.Nevada.Nellis, 270.1)
atisNellis:SetRadioRelayUnitName("Radio Relay Nellis")
atisNellis:SetActiveRunway("21L")
atisNellis:SetTowerFrequencies({327.000, 132.550})
atisNellis:SetTACAN(12)
atisNellis:AddILS(109.1, "21")
atisNellis:Start()

Persian Gulf: Abu Dhabi International Airport

-- ATIS Abu Dhabi International on 125.1 MHz AM.
atisAbuDhabi=ATIS:New(AIRBASE.PersianGulf.Abu_Dhabi_Intl, 125.1)
atisAbuDhabi:SetRadioRelayUnitName("Radio Relay Abu Dhabi International Airport")
atisAbuDhabi:SetMetricUnits()
atisAbuDhabi:SetActiveRunway("L")
atisAbuDhabi:SetTowerFrequencies({250.5, 119.2})
atisAbuDhabi:SetVOR(114.25)
atisAbuDhabi:Start()

SRS

atis=ATIS:New("Batumi", 305, radio.modulation.AM)
atis:SetSRS("D:\\DCS\\_SRS\\", "male", "en-US")
atis:Start()

This uses a male voice with US accent. It requires SRS to be installed in the `D:\DCS_SRS` directory. Note that backslashes need to be escaped or simply use slashes (as in linux).

SRS can use multiple frequencies:

atis=ATIS:New("Batumi", {305,103.85}, {radio.modulation.AM,radio.modulation.FM})
atis:SetSRS("D:\\DCS\\_SRS\\", "male", "en-US")
atis:Start()

SRS Localization

You can localize the SRS output, all you need is to provide a table of translations and set the locale of your instance. You need to provide the translations in your script before you instantiate your ATIS. The German localization (already provided in the code) e.g. looks like follows:

     ATIS.Messages.DE =
       {
         HOURS = "Uhr",
         TIME = "Zeit",
         NOCLOUDINFO = "Informationen über Wolken nicht verfuegbar",
         OVERCAST = "Geschlossene Wolkendecke",
         BROKEN = "Stark bewoelkt",
         SCATTERED = "Bewoelkt",
         FEWCLOUDS = "Leicht bewoelkt",
         NOCLOUDS = "Klar",
         AIRPORT = "Flughafen",
         INFORMATION ="Information",
         SUNRISEAT = "Sonnenaufgang um %s lokaler Zeit",
         SUNSETAT = "Sonnenuntergang um %s lokaler Zeit",
         WINDFROMMS = "Wind aus %s mit %s m/s",
         WINDFROMKNOTS = "Wind aus %s mit %s Knoten",
         GUSTING = "boeig",
         VISIKM = "Sichtweite %s km",
         VISISM = "Sichtweite %s Meilen",
         RAIN = "Regen",
         TSTORM = "Gewitter",
         SNOW = "Schnee",
         SSTROM = "Schneesturm",
         FOG = "Nebel",
         DUST = "Staub",
         PHENOMENA = "Wetter Phaenomene",
         CLOUDBASEM = "Wolkendecke von %s bis %s Meter",
         CLOUDBASEFT = "Wolkendecke von %s bis %s Fuß",
         TEMPERATURE = "Temperatur",
         DEWPOINT = "Taupunkt",
         ALTIMETER = "Hoehenmesser",
         ACTIVERUN = "Aktive Startbahn",
         ACTIVELANDING = "Aktive Landebahn",
         LEFT = "Links",
         RIGHT = "Rechts",
         RWYLENGTH = "Startbahn",
         METERS = "Meter",
         FEET = "Fuß",
         ELEVATION = "Hoehe",
         TOWERFREQ = "Kontrollturm Frequenz",
         ILSFREQ = "ILS Frequenz",
         OUTERNDB = "Aeussere NDB Frequenz",
         INNERNDB = "Innere NDB Frequenz",
         VORFREQ = "VOR Frequenz",
         VORFREQTTS = "V O R Frequenz",
         TACANCH = "TACAN Kanal %d Xaver",
         RSBNCH = "RSBN Kanal",
         PRMGCH = "PRMG Kanal",
         ADVISE = "Hinweis bei Erstkontakt, Sie haben Informationen",
         STATUTE = "englische Meilen",
         DEGREES = "Grad Celsius",
         FAHRENHEIT = "Grad Fahrenheit",
         INCHHG = "Inches H G",
         MMHG = "Millimeter H G",
         HECTO = "Hektopascal",
         METERSPER = "Meter pro Sekunde",
         TACAN = "Tackan",
         FARP = "Farp",
         DELIMITER = "Komma", -- decimal delimiter
       }

Then set up your ATIS and set the locale:

     atis=ATIS:New("Batumi", 305, radio.modulation.AM)
     atis:SetSRS("D:\\DCS\\_SRS\\", "female", "de_DE")
     atis:SetLocale("de") -- available locales from source are "en", "de" and "es"
     atis:Start()

FARPS

ATIS is working with FARPS, but this requires the usage of SRS. The airbase name for the New()-method is the UNIT name of the FARP:

 atis = ATIS:New("FARP Gold",119,radio.modulation.AM)
 atis:SetMetricUnits()
 atis:SetTransmitOnlyWithPlayers(true)
 atis:SetReportmBar(true)
 atis:SetTowerFrequencies(127.50)
 atis:SetSRS("D:\\DCS\\_SRS\\", "male", "en-US",nil,5002)
 atis:SetAdditionalInformation("Welcome to the Jungle!")
 atis:__Start(3)

Global _ATIS

ATIS table containing all defined ATISes.

#table _ATIS

ATIS table containing all defined ATISes.

Type(s)

ATIS , extends Core.Fsm#FSM
Fields and Methods inherited from ATIS Description

ATIS.ATISforFARPs

Will be set to true if the base given is a FARP/Helipad

ATIS:AddILS(frequency, runway)

Add ILS station.

ATIS:AddNDBinner(frequency, runway)

Add inner NDB.

ATIS:AddNDBouter(frequency, runway)

Add outer NDB.

ATIS:AddPRMG(channel, runway)

Add PRMG channel.

ATIS.AdditionalInformation

ATIS.Alphabet

ATIS:Broadcast()

Triggers the FSM event "Broadcast".

ATIS:CheckQueue()

Triggers the FSM event "CheckQueue".

ATIS.ClassName

Name of the class.

ATIS:GetActiveRunway(Takeoff)

Get active runway runway.

ATIS:GetCoalition()

Get the coalition of the associated airbase.

ATIS:GetMagneticRunway(windfrom)

Get runway from user supplied magnetic heading.

ATIS:GetMissionWeather()

Get weather of this mission from env.mission.weather variable.

ATIS:GetNavPoint(navpoints, runway, left)

Get nav aid data.

ATIS:GetRunwayLR(runway)

Get info if left or right runway is active.

ATIS:GetRunwayWithoutLR(runway)

Get runway heading without left or right info.

ATIS:GetSRSText()

Return the complete SRS Text block, if at least generated once.

ATIS.ICAOPhraseology

ATIS:MarkRunways(markall)

Place marks with runway data on the F10 map.

ATIS.Messages

ATIS:New(AirbaseName, Frequency, Modulation)

Create a new ATIS class object for a specific airbase.

ATIS:OnAfterReport(From, Event, To, Text)

On after "Report" event user function.

ATIS:OnEventBaseCaptured(EventData)

Base captured

ATIS.PmmHg

If true, give pressure in millimeters of Mercury. Default is inHg for imperial and hectopascal (hPa, which is the same as millibar - mbar) for metric units.

ATIS:Report(Text)

Triggers the FSM event "Report".

ATIS:ReportQNHOnly()

Suppresses QFE readout.

ATIS:ReportZuluTimeOnly()

Suppresses local time, sunrise, and sunset.

ATIS.ReportmBar

Report mBar/hpa even if not metric, i.e. for Mirage flights

ATIS.RunwayM2T

ATIS.SRSText

Text of the complete SRS message (if done at least once, else nil)

ATIS:SetActiveRunway(runway)

Set active runway for landing operations.

ATIS:SetActiveRunwayLanding(runway, preferleft)

Set the active runway for landing.

ATIS:SetActiveRunwayTakeoff(runway, preferleft)

Set the active runway for take-off.

ATIS:SetAdditionalInformation(text)

Additionally report free text, only working with SRS(!)

ATIS:SetAltimeterQNH(switch)

Report altimeter QNH.

ATIS:SetElevation()

Give information on airfield elevation

ATIS:SetImperialUnits()

Set unit system to imperial units.

ATIS:SetLocale(locale)

Set locale for localized text-to-sound output via SRS, defaults to "en".

ATIS:SetMagneticDeclination(magvar)

Set magnetic declination/variation at the airport.

ATIS:SetMapMarks(switch)

Use F10 map mark points.

ATIS:SetMetricUnits()

Set unit system to metric units.

ATIS:SetPressureMillimetersMercury()

Set pressure unit to millimeters of mercury (mmHg).

ATIS:SetQueueUpdateTime(TimeInterval)

Set the time interval between radio queue updates.

ATIS:SetRSBN(channel)

Set RSBN channel.

ATIS:SetRadioPower(power)

Set radio power.

ATIS:SetRadioRelayUnitName(unitname)

Set airborne unit (airplane or helicopter), used to transmit radio messages including subtitles.

ATIS:SetRelativeHumidity(Humidity)

Set relative humidity.

ATIS:SetReportWindTrue()

Set wind direction (from) to be reported as true heading.

ATIS:SetReportmBar(switch)

Additionally report altimeter QNH/QFE in hPa, even if not set to metric.

ATIS:SetRunwayCorrectionMagnetic2True(correction)

Explicitly set correction of magnetic to true heading for runways.

ATIS:SetRunwayHeadingsMagnetic(headings)

Set magnetic runway headings as depicted on the runway, e.g. "13" for 130° or "25L" for the left runway with magnetic heading 250°.

ATIS:SetRunwayLength()

Give information on runway length.

ATIS:SetSRS(PathToSRS, Gender, Culture, Voice, Port, GoogleKey)

Use SRS Simple-Text-To-Speech for transmissions.

ATIS:SetSRSProvider(Provider)

Set an alternative provider to the one set in your MSRS configuration file.

ATIS:SetSoundfilesInfo(csvfile)

Set the path to the csv file that contains information about the used sound files.

ATIS:SetSoundfilesPath(pathMain, pathAirports, pathNato)

Set sound files folder within miz file (not your local hard drive!).

ATIS:SetSubtitleDuration(duration)

Set duration how long subtitles are displayed.

ATIS:SetTACAN(channel)

Set TACAN channel.

ATIS:SetTemperatureFahrenheit()

Set temperature to be given in degrees Fahrenheit.

ATIS:SetTowerFrequencies(freqs)

Set tower frequencies.

ATIS:SetTransmitOnlyWithPlayers(Switch)

For SRS - Switch to only transmit if there are players on the server.

ATIS:SetVOR(frequency)

Set VOR station.

ATIS:SetZuluTimeDifference(delta)

Set time local difference with respect to Zulu time.

ATIS.Sound

ATIS:SoundCheck()

Play all audio files.

ATIS:Start()

Triggers the FSM event "Start".

ATIS:Status()

Triggers the FSM event "Status".

ATIS:Stop()

Triggers the FSM event "Stop".

ATIS.TDegF

If true, give temperature in degrees Fahrenheit. Default is in degrees Celsius independent of chosen unit system.

ATIS:Transmission(sound, interval, subtitle, path)

Transmission via RADIOQUEUE.

ATIS.TransmitOnlyWithPlayers

For SRS - If true, only transmit if there are alive Players.

ATIS:UpdateMarker(information, runact, wind, altimeter, temperature)

Update F10 map marker.

ATIS:_GetThousandsAndHundreds(n)

Get thousands of a number.

ATIS:_InitLocalization()

[Internal] Init localization

ATIS:__Broadcast(delay)

Triggers the FSM event "Broadcast" after a delay.

ATIS:__CheckQueue(delay)

Triggers the FSM event "CheckQueue" after a delay.

ATIS:__Report(delay, Text)

Triggers the FSM event "Report" after a delay.

ATIS:__Start(delay)

Triggers the FSM event "Start" after a delay.

ATIS:__Status(delay)

Triggers the FSM event "Status" after a delay.

ATIS:__Stop(delay)

Triggers the FSM event "Stop" after a delay.

ATIS.activerunway

The active runway specified by the user.

ATIS.airbase

The airbase object.

ATIS.airbasename

The name of the airbase.

ATIS.altimeterQNH

Report altimeter QNH.

ATIS.dTQueueCheck

Time interval to check the radio queue. Default 5 sec or 90 sec if SRS is used.

ATIS.elevation

If true, give info on airfield elevation.

ATIS.frequency

Radio frequency in MHz.

ATIS.gettext

Gettext for localization

ATIS.ils

Table of ILS frequencies (can be runway specific).

ATIS.lid

Class id string for output to DCS log file.

ATIS.locale

Current locale

ATIS.magvar

Magnetic declination/variation at the airport in degrees.

ATIS.markerid

Numerical ID of the F10 map mark point.

ATIS.metric

If true, use metric units. If false, use imperial (default).

ATIS.modulation

Radio modulation 0=AM or 1=FM.

ATIS.msrs

Moose SRS object.

ATIS.msrsQ

ATIS.ndbinner

Table of inner NDB frequencies (can be runway specific).

ATIS.ndbouter

Table of outer NDB frequencies (can be runway specific).

ATIS:onafterBroadcast(From, Event, To)

Broadcast ATIS radio message.

ATIS:onafterCheckQueue(From, Event, To)

Check if radio queue is empty.

ATIS:onafterReport(From, Event, To, Text)

Text report of ATIS information.

ATIS:onafterStart(From, Event, To)

Start ATIS FSM.

ATIS:onafterStatus(From, Event, To)

Update status.

ATIS.power

Radio power in Watts. Default 100 W.

ATIS.prmg

PRMG channels (can be runway specific).

ATIS.qnhonly

If true, suppresses reporting QFE. Default is to report both QNH and QFE.

ATIS.radioqueue

Radio queue for broadcasing messages.

ATIS.relHumidity

Relative humidity (used to approximately calculate the dew point).

ATIS.relayunitname

Name of the radio relay unit.

ATIS.rsbn

RSBN channel.

ATIS.runwaym2t

Optional correction for magnetic to true runway heading conversion (and vice versa) in degrees.

ATIS.runwaymag

Table of magnetic runway headings.

ATIS.rwylength

If true, give info on runway length.

ATIS.soundpath

Path to sound files.

ATIS.soundpathAirports

Path to airport names sound files.

ATIS.soundpathNato

Path to NATO alphabet sound files.

ATIS.subduration

Duration how long subtitles are displayed in seconds.

ATIS.tacan

TACAN channel.

ATIS.theatre

DCS map name.

ATIS.towerfrequency

Table with tower frequencies.

ATIS.useSRS

If true, use SRS for transmission.

ATIS.usemarker

Use mark on the F10 map.

ATIS.version

ATIS class version.

ATIS.vor

VOR frequency.

ATIS.windtrue

Report true (from) heading of wind. Default is magnetic.

ATIS.zuludiff

Time difference local vs. zulu in hours.

ATIS.zulutimeonly

If true, suppresses report of local time, sunrise, and sunset.

Fields and Methods inherited from FSM Description

ATIS:AddEndState(State)

Adds an End state.

ATIS:AddProcess(From, Event, Process, ReturnEvents)

Set the default #FSM_PROCESS template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task.

ATIS:AddScore(State, ScoreText, Score)

Adds a score for the FSM to be achieved.

ATIS:AddScoreProcess(From, Event, State, ScoreText, Score)

Adds a score for the FSM_PROCESS to be achieved.

ATIS:AddTransition(From, Event, To)

Add a new transition rule to the FSM.

ATIS.CallScheduler

ATIS.Events

ATIS:GetCurrentState()

Get current state.

ATIS:GetEndStates()

Returns the End states.

ATIS:GetProcess(From, Event)

ATIS:GetProcesses()

Returns a table of the SubFSM rules defined within the FSM.

ATIS:GetScores()

Returns a table with the scores defined.

ATIS:GetStartState()

Returns the start state of the FSM.

ATIS:GetState()

Get current state.

ATIS:GetSubs()

Returns a table with the Subs defined.

ATIS:GetTransitions()

Returns a table of the transition rules defined within the FSM.

ATIS:Is(State)

Check if FSM is in state.

ATIS:LoadCallBacks(CallBackTable)

Load call backs.

ATIS:New()

Creates a new FSM object.

ATIS.Scores

ATIS:SetProcess(From, Event, Fsm)

ATIS:SetStartState(State)

Sets the start state of the FSM.

ATIS._EndStates

ATIS._EventSchedules

ATIS._Processes

ATIS._Scores

ATIS._StartState

ATIS._Transitions

ATIS:_add_to_map(Map, Event)

Add to map.

ATIS:_call_handler(step, trigger, params, EventName)

Call handler.

ATIS:_create_transition(EventName)

Create transition.

ATIS:_delayed_transition(EventName)

Delayed transition.

ATIS:_eventmap(Events, EventStructure)

Event map.

ATIS:_gosub(ParentFrom, ParentEvent)

Go sub.

ATIS:_handler(EventName, ...)

Handler.

ATIS:_isendstate(Current)

Is end state.

ATIS:_submap(subs, sub, name)

Sub maps.

ATIS:can(e)

Check if can do an event.

ATIS:cannot(e)

Check if cannot do an event.

ATIS.current

ATIS.endstates

ATIS:is(State, state)

Check if FSM is in state.

ATIS.options

ATIS.subs

Fields and Methods inherited from ATIS.NavPoint Description

ATIS.NavPoint.frequency

Nav point frequency.

ATIS.NavPoint.leftright

If true, runway has left "L" and right "R" runways.

ATIS.NavPoint.runway

Runway, e.g. "21".

Fields and Methods inherited from ATIS.RunwayM2T Description

ATIS.RunwayM2T.Caucasus

0° (East).

ATIS.RunwayM2T.Falklands

ATIS.RunwayM2T.MarianaIslands

+2° (East).

ATIS.RunwayM2T.Nevada

+12° (East).

ATIS.RunwayM2T.Normandy

-10° (West).

ATIS.RunwayM2T.PersianGulf

+2° (East).

ATIS.RunwayM2T.SinaiMap

+5° (East).

ATIS.RunwayM2T.Syria

+5° (East).

ATIS.RunwayM2T.TheChannel

-10° (West).

Fields and Methods inherited from ATIS.Sound Description

ATIS.Sound.ActiveRunway

ATIS.Sound.ActiveRunwayArrival

ATIS.Sound.ActiveRunwayDeparture

ATIS.Sound.AdviceOnInitial

ATIS.Sound.Airport

ATIS.Sound.Altimeter

ATIS.Sound.At

ATIS.Sound.CloudBase

ATIS.Sound.CloudCeiling

ATIS.Sound.CloudsBroken

ATIS.Sound.CloudsFew

ATIS.Sound.CloudsNo

ATIS.Sound.CloudsNotAvailable

ATIS.Sound.CloudsOvercast

ATIS.Sound.CloudsScattered

ATIS.Sound.Decimal

ATIS.Sound.DegreesCelsius

ATIS.Sound.DegreesFahrenheit

ATIS.Sound.DewPoint

ATIS.Sound.Dust

ATIS.Sound.Elevation

ATIS.Sound.EndOfInformation

ATIS.Sound.Feet

ATIS.Sound.Fog

ATIS.Sound.Gusting

ATIS.Sound.HectoPascal

ATIS.Sound.Hundred

ATIS.Sound.ILSFrequency

ATIS.Sound.InchesOfMercury

ATIS.Sound.Information

ATIS.Sound.InnerNDBFrequency

ATIS.Sound.Kilometers

ATIS.Sound.Knots

ATIS.Sound.Left

ATIS.Sound.MegaHertz

ATIS.Sound.Meters

ATIS.Sound.MetersPerSecond

ATIS.Sound.Miles

ATIS.Sound.MillimetersOfMercury

ATIS.Sound.Minus

ATIS.Sound.N0

ATIS.Sound.N1

ATIS.Sound.N2

ATIS.Sound.N3

ATIS.Sound.N4

ATIS.Sound.N5

ATIS.Sound.N6

ATIS.Sound.N7

ATIS.Sound.N8

ATIS.Sound.N9

ATIS.Sound.NauticalMiles

ATIS.Sound.None

ATIS.Sound.OuterNDBFrequency

ATIS.Sound.PRMGChannel

ATIS.Sound.QFE

ATIS.Sound.QNH

ATIS.Sound.RSBNChannel

ATIS.Sound.Rain

ATIS.Sound.Right

ATIS.Sound.RunwayLength

ATIS.Sound.Snow

ATIS.Sound.SnowStorm

ATIS.Sound.StatuteMiles

ATIS.Sound.SunriseAt

ATIS.Sound.SunsetAt

ATIS.Sound.TACANChannel

ATIS.Sound.Temperature

ATIS.Sound.Thousand

ATIS.Sound.ThunderStorm

ATIS.Sound.TimeLocal

ATIS.Sound.TimeZulu

ATIS.Sound.TowerFrequency

ATIS.Sound.VORFrequency

ATIS.Sound.Visibilty

ATIS.Sound.WeatherPhenomena

ATIS.Sound.WindFrom

ATIS.Sound.Zulu

Fields and Methods inherited from ATIS.Soundfile Description

ATIS.Soundfile.duration

Duration in seconds.

ATIS.Soundfile.filename

Name of the file

ATIS class.

Field(s)

#boolean ATIS.ATISforFARPs

Will be set to true if the base given is a FARP/Helipad

#string ATIS.ClassName

Name of the class.

#table ATIS.Messages
#boolean ATIS.PmmHg

If true, give pressure in millimeters of Mercury. Default is inHg for imperial and hectopascal (hPa, which is the same as millibar - mbar) for metric units.

#boolean ATIS.ReportmBar

Report mBar/hpa even if not metric, i.e. for Mirage flights

#string ATIS.SRSText

Text of the complete SRS message (if done at least once, else nil)

#boolean ATIS.TDegF

If true, give temperature in degrees Fahrenheit. Default is in degrees Celsius independent of chosen unit system.

#boolean ATIS.TransmitOnlyWithPlayers

For SRS - If true, only transmit if there are alive Players.

#string ATIS.activerunway

The active runway specified by the user.

#string ATIS.airbasename

The name of the airbase.

#boolean ATIS.altimeterQNH

Report altimeter QNH.

#number ATIS.dTQueueCheck

Time interval to check the radio queue. Default 5 sec or 90 sec if SRS is used.

#boolean ATIS.elevation

If true, give info on airfield elevation.

#number ATIS.frequency

Radio frequency in MHz.

Core.TextAndSound#TEXTANDSOUND ATIS.gettext

Gettext for localization

#table ATIS.ils

Table of ILS frequencies (can be runway specific).

#string ATIS.lid

Class id string for output to DCS log file.

#string ATIS.locale

Current locale

#number ATIS.magvar

Magnetic declination/variation at the airport in degrees.

#number ATIS.markerid

Numerical ID of the F10 map mark point.

#boolean ATIS.metric

If true, use metric units. If false, use imperial (default).

#number ATIS.modulation

Radio modulation 0=AM or 1=FM.

Sound.SRS#MSRS ATIS.msrs

Moose SRS object.

#table ATIS.ndbinner

Table of inner NDB frequencies (can be runway specific).

#table ATIS.ndbouter

Table of outer NDB frequencies (can be runway specific).

#number ATIS.power

Radio power in Watts. Default 100 W.

#table ATIS.prmg

PRMG channels (can be runway specific).

#boolean ATIS.qnhonly

If true, suppresses reporting QFE. Default is to report both QNH and QFE.

Sound.RadioQueue#RADIOQUEUE ATIS.radioqueue

Radio queue for broadcasing messages.

#number ATIS.relHumidity

Relative humidity (used to approximately calculate the dew point).

#string ATIS.relayunitname

Name of the radio relay unit.

#number ATIS.rsbn

RSBN channel.

#number ATIS.runwaym2t

Optional correction for magnetic to true runway heading conversion (and vice versa) in degrees.

#table ATIS.runwaymag

Table of magnetic runway headings.

#boolean ATIS.rwylength

If true, give info on runway length.

#string ATIS.soundpath

Path to sound files.

#string ATIS.soundpathAirports

Path to airport names sound files.

#string ATIS.soundpathNato

Path to NATO alphabet sound files.

#number ATIS.subduration

Duration how long subtitles are displayed in seconds.

#number ATIS.tacan

TACAN channel.

#string ATIS.theatre

DCS map name.

#table ATIS.towerfrequency

Table with tower frequencies.

#boolean ATIS.useSRS

If true, use SRS for transmission.

#boolean ATIS.usemarker

Use mark on the F10 map.

#string ATIS.version

ATIS class version.

#number ATIS.vor

VOR frequency.

#boolean ATIS.windtrue

Report true (from) heading of wind. Default is magnetic.

#number ATIS.zuludiff

Time difference local vs. zulu in hours.

#boolean ATIS.zulutimeonly

If true, suppresses report of local time, sunrise, and sunset.

Function(s)

Add ILS station.

Note that this can be runway specific.

Defined in:

ATIS

Parameters:

#number frequency

ILS frequency in MHz.

#string runway

(Optional) Runway for which the given ILS frequency applies. Default all (nil).

Return value:

self

Add inner NDB.

Note that this can be runway specific.

Defined in:

ATIS

Parameters:

#number frequency

NDB frequency in MHz.

#string runway

(Optional) Runway for which the given NDB frequency applies. Default all (nil).

Return value:

self

Add outer NDB.

Note that this can be runway specific.

Defined in:

ATIS

Parameters:

#number frequency

NDB frequency in MHz.

#string runway

(Optional) Runway for which the given NDB frequency applies. Default all (nil).

Return value:

self

Add PRMG channel.

Note that this can be runway specific.

Defined in:

ATIS

Parameters:

#number channel

PRMG channel.

#string runway

(Optional) Runway for which the given PRMG channel applies. Default all (nil).

Return value:

self

Triggers the FSM event "Broadcast".

Defined in:

ATIS

Triggers the FSM event "CheckQueue".

Defined in:

ATIS

Get active runway runway.

Defined in:

ATIS

Parameter:

#boolean Takeoff

If true, get runway for takeoff. Default is for landing.

Return values:

#string:

Active runway, e.g. "31" for 310 deg.

#boolean:

Use Left=true, Right=false, or nil.

Get the coalition of the associated airbase.

Defined in:

ATIS

Return value:

#number:

Coalition of the associated airbase.

Get runway from user supplied magnetic heading.

Defined in:

ATIS

Parameter:

#number windfrom

Wind direction (from) in degrees.

Return value:

#string:

Runway magnetic heading divided by ten (and rounded). Eg, "13" for 130°.

Get weather of this mission from env.mission.weather variable.

Defined in:

ATIS

Return values:

#table:

Clouds table which has entries "thickness", "density", "base", "iprecptns".

#number:

Visibility distance in meters.

#number:

Ground turbulence in m/s.

#table:

Fog table, which has entries "thickness", "visibility" or nil if fog is disabled in the mission.

#number:

Dust density or nil if dust is disabled in the mission.

#boolean:

static If true, static weather is used. If false, dynamic weather is used.

Get nav aid data.

Defined in:

ATIS

Parameters:

#table navpoints

Nav points data table.

#string runway

(Active) runway, e.g. "31".

#boolean left

If true, left runway, if *false, right, else does not matter.

Return value:

Nav point data table.

Get info if left or right runway is active.

Defined in:

ATIS

Parameter:

#string runway

Runway heading, e.g. "31L".

Return value:

#boolean:

If true, left runway is active. If false, right runway. If nil, neither applies.

Get runway heading without left or right info.

Defined in:

ATIS

Parameter:

#string runway

Runway heading, e.g. "31L".

Return value:

#string:

Runway heading without left or right, e.g. "31".

Return the complete SRS Text block, if at least generated once.

Else nil.

Defined in:

ATIS

Return value:

#string:

SRSText

Place marks with runway data on the F10 map.

Defined in:

ATIS

Parameter:

#boolean markall

If true, mark all runways of the map. By default only the current ATIS runways are marked.

Create a new ATIS class object for a specific airbase.

Defined in:

ATIS

Parameters:

#string AirbaseName

Name of the airbase.

#number Frequency

Radio frequency in MHz. Default 143.00 MHz. When using SRS this can be passed as a table of multiple frequencies.

#number Modulation

Radio modulation: 0=AM, 1=FM. Default 0=AM. See radio.modulation.AM and radio.modulation.FM enumerators. When using SRS this can be passed as a table of multiple modulations.

Return value:

self

On after "Report" event user function.

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

#string Text

Report text.

Base captured

Defined in:

ATIS

Parameter:

Event data.

Triggers the FSM event "Report".

Defined in:

ATIS

Parameter:

#string Text

Report text.

Suppresses QFE readout.

Default is to report both QNH and QFE.

Defined in:

ATIS

Return value:

self

Suppresses local time, sunrise, and sunset.

Default is to report all these times.

Defined in:

ATIS

Return value:

self

Set active runway for landing operations.

This can be used if the automatic runway determination via the wind direction gives incorrect results. For example, use this if there are two runways with the same directions.

Defined in:

ATIS

Parameter:

#string runway

Active runway, e.g. "31L".

Return value:

self

Set the active runway for landing.

Defined in:

ATIS

Parameters:

#string runway

: Name of the runway, e.g. "31" or "02L" or "90R". If not given, the runway is determined from the wind direction.

#boolean preferleft

: If true, perfer the left runway. If false, prefer the right runway. If nil (default), do not care about left or right.

Return value:

self

Set the active runway for take-off.

Defined in:

ATIS

Parameters:

#string runway

: Name of the runway, e.g. "31" or "02L" or "90R". If not given, the runway is determined from the wind direction.

#boolean preferleft

: If true, perfer the left runway. If false, prefer the right runway. If nil (default), do not care about left or right.

Return value:

self

Additionally report free text, only working with SRS(!)

Defined in:

ATIS

Parameter:

#string text

The text to report at the end of the ATIS message, e.g. runway closure, warnings, etc.

Return value:

self

Report altimeter QNH.

Defined in:

ATIS

Parameter:

#boolean switch

If true or nil, report altimeter QHN. If false, report QFF.

Return value:

self

Give information on airfield elevation

Defined in:

ATIS

Return value:

self

Set unit system to imperial units.

Defined in:

ATIS

Return value:

self

Set locale for localized text-to-sound output via SRS, defaults to "en".

Defined in:

ATIS

Parameter:

#string locale

Locale for localized text-to-sound output via SRS, defaults to "en".

Return value:

self

Set magnetic declination/variation at the airport.

Default is per map:

  • Caucasus +6 (East), year ~ 2011
  • NTTR +12 (East), year ~ 2011
  • Normandy -10 (West), year ~ 1944
  • Persian Gulf +2 (East), year ~ 2011

To get true from magnetic heading one has to add easterly or substract westerly variation, e.g

A magnetic heading of 180° corresponds to a true heading of

  • 186° on the Caucaus map
  • 192° on the Nevada map
  • 170° on the Normandy map
  • 182° on the Persian Gulf map

Likewise, to convert true into magnetic heading, one has to substract easterly and add westerly variation.

Or you make your life simple and just include the sign so you don't have to bother about East/West.

Defined in:

ATIS

Parameter:

#number magvar

Magnetic variation in degrees. Positive for easterly and negative for westerly variation. Default is magnatic declinaton of the used map, c.f. Utilities.Utils#UTILS.GetMagneticDeclination.

Return value:

self

Use F10 map mark points.

Defined in:

ATIS

Parameter:

#boolean switch

If true or nil, marks are placed on F10 map. If false this feature is set to off (default).

Return value:

self

Set unit system to metric units.

Defined in:

ATIS

Return value:

self

Set pressure unit to millimeters of mercury (mmHg).

Default is inHg for imperial and hPa (=mBar) for metric units.

Defined in:

ATIS

Return value:

self

Set the time interval between radio queue updates.

Defined in:

ATIS

Parameter:

#number TimeInterval

Interval in seconds. Default 5 sec.

Return value:

self

Set RSBN channel.

Defined in:

ATIS

Parameter:

#number channel

RSBN channel.

Return value:

self

Set radio power.

Note that this only applies if no relay unit is used.

Defined in:

ATIS

Parameter:

#number power

Radio power in Watts. Default 100 W.

Return value:

self

Set airborne unit (airplane or helicopter), used to transmit radio messages including subtitles.

Best is to place the unit on a parking spot of the airbase and set it to uncontrolled in the mission editor.

Defined in:

ATIS

Parameter:

#string unitname

Name of the unit.

Return value:

self

Set relative humidity.

This is used to approximately calculate the dew point. Note that the dew point is only an artificial information as DCS does not have an atmospheric model that includes humidity (yet).

Defined in:

ATIS

Parameter:

#number Humidity

Relative Humidity, i.e. a number between 0 and 100 %. Default is 50 %.

Return value:

self

Set wind direction (from) to be reported as true heading.

Default is magnetic.

Defined in:

ATIS

Return value:

self

Additionally report altimeter QNH/QFE in hPa, even if not set to metric.

Defined in:

ATIS

Parameter:

#boolean switch

If true or nil, report mBar/hPa in addition.

Return value:

self

Explicitly set correction of magnetic to true heading for runways.

Defined in:

ATIS

Parameter:

#number correction

Correction of magnetic to true heading for runways in degrees.

Return value:

self

Set magnetic runway headings as depicted on the runway, e.g. "13" for 130° or "25L" for the left runway with magnetic heading 250°.

Defined in:

ATIS

Parameter:

#table headings

Magnetic headings. Inverse (-180°) headings are added automatically. You only need to specify one heading per runway direction. "L"eft and "R" right can also be appended.

Return value:

self

Give information on runway length.

Defined in:

ATIS

Return value:

self

Use SRS Simple-Text-To-Speech for transmissions.

No sound files necessary.SetSRS() will try to use as many attributes configured with Sound.SRS#MSRS.LoadConfigFile() as possible.

Defined in:

ATIS

Parameters:

#string PathToSRS

Path to SRS directory (only necessary if SRS exe backend is used).

#string Gender

Gender: "male" or "female" (default).

#string Culture

Culture, e.g. "en-GB" (default).

#string Voice

Specific voice. Overrides Gender and Culture.

#number Port

SRS port. Default 5002.

#string GoogleKey

Path to Google JSON-Key (SRS exe backend) or Google API key (DCS-gRPC backend).

Return value:

self

Set an alternative provider to the one set in your MSRS configuration file.

Defined in:

ATIS

Parameter:

#string Provider

The provider to use. Known providers are: MSRS.Provider.WINDOWS and MSRS.Provider.GOOGLE

Return value:

self

Set the path to the csv file that contains information about the used sound files.

The parameter file has to be located on your local disk (not inside the miz file).

Defined in:

ATIS

Parameter:

#string csvfile

Full path to the csv file on your local disk.

Return value:

self

Set sound files folder within miz file (not your local hard drive!).

Defined in:

ATIS

Parameters:

#string pathMain

Path to folder containing main sound files. Default "ATIS Soundfiles/". Mind the slash "/" at the end!

#string pathAirports

Path folder containing the airport names sound files. Default is "ATIS Soundfiles/<Map Name>", e.g. "ATIS Soundfiles/Caucasus/".

#string pathNato

Path folder containing the NATO alphabet sound files. Default is "ATIS Soundfiles/NATO Alphabet/".

Return value:

self

Set duration how long subtitles are displayed.

Defined in:

ATIS

Parameter:

#number duration

Duration in seconds. Default 10 seconds.

Return value:

self

Set TACAN channel.

Defined in:

ATIS

Parameter:

#number channel

TACAN channel.

Return value:

self

Set temperature to be given in degrees Fahrenheit.

Defined in:

ATIS

Return value:

self

Set tower frequencies.

Defined in:

ATIS

Parameter:

#table freqs

Table of frequencies in MHz. A single frequency can be given as a plain number (i.e. must not be table).

Return value:

self

For SRS - Switch to only transmit if there are players on the server.

Defined in:

ATIS

Parameter:

#boolean Switch

If true, only send SRS if there are alive Players.

Return value:

self

Set VOR station.

Defined in:

ATIS

Parameter:

#number frequency

VOR frequency.

Return value:

self

Set time local difference with respect to Zulu time.

Default is per map:

  • Caucasus +4
  • Nevada -8
  • Normandy 0
  • Persian Gulf +4
  • The Channel +2 (should be 0)

Defined in:

ATIS

Parameter:

#number delta

Time difference in hours.

Return value:

self

Play all audio files.

Defined in:

ATIS

Triggers the FSM event "Start".

Starts the ATIS.

Defined in:

ATIS

Triggers the FSM event "Status".

Defined in:

ATIS

Triggers the FSM event "Stop".

Stops the ATIS.

Defined in:

ATIS

Transmission via RADIOQUEUE.

Defined in:

ATIS

Parameters:

ATIS sound object.

#number interval

Interval in seconds after the last transmission finished.

#string subtitle

Subtitle of the transmission.

#string path

Path to sound file. Default self.soundpath.

Update F10 map marker.

Defined in:

ATIS

Parameters:

#string information

Information tag text.

#string runact

Active runway text.

#string wind

Wind text.

#string altimeter

Altimeter text.

#string temperature

Temperature text.

Return value:

#number:

Marker ID.

Get thousands of a number.

Defined in:

ATIS

Parameter:

#number n

Number, e.g. 4359.

Return values:

#string:

Thousands of n, e.g. "4" for 4359.

#string:

Hundreds of n, e.g. "4" for 4359 because its rounded.

[Internal] Init localization

Defined in:

ATIS

Return value:

self

Triggers the FSM event "Broadcast" after a delay.

Defined in:

ATIS

Parameter:

#number delay

Delay in seconds.

Triggers the FSM event "CheckQueue" after a delay.

Defined in:

ATIS

Parameter:

#number delay

Delay in seconds.

Triggers the FSM event "Report" after a delay.

Defined in:

ATIS

Parameters:

#number delay

Delay in seconds.

#string Text

Report text.

Triggers the FSM event "Start" after a delay.

Defined in:

ATIS

Parameter:

#number delay

Delay in seconds.

Triggers the FSM event "Status" after a delay.

Defined in:

ATIS

Parameter:

#number delay

Delay in seconds.

Triggers the FSM event "Stop" after a delay.

Defined in:

ATIS

Parameter:

#number delay

Delay in seconds.

Broadcast ATIS radio message.

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

Check if radio queue is empty.

If so, start broadcasting the message again.

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

Text report of ATIS information.

Information delimitor is a semicolon ";" and a line break "\n".

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

#string Text

Report text.

Start ATIS FSM.

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

Update status.

Defined in:

ATIS

Parameters:

#string From

From state.

#string Event

Event.

#string To

To state.

Field(s)

#boolean ATIS.ATISforFARPs

Will be set to true if the base given is a FARP/Helipad

#string ATIS.ClassName

Name of the class.

#table ATIS.Messages
#boolean ATIS.PmmHg

If true, give pressure in millimeters of Mercury. Default is inHg for imperial and hectopascal (hPa, which is the same as millibar - mbar) for metric units.

#boolean ATIS.ReportmBar

Report mBar/hpa even if not metric, i.e. for Mirage flights

#string ATIS.SRSText

Text of the complete SRS message (if done at least once, else nil)

#boolean ATIS.TDegF

If true, give temperature in degrees Fahrenheit. Default is in degrees Celsius independent of chosen unit system.

#boolean ATIS.TransmitOnlyWithPlayers

For SRS - If true, only transmit if there are alive Players.

#string ATIS.activerunway

The active runway specified by the user.

#string ATIS.airbasename

The name of the airbase.

#boolean ATIS.altimeterQNH

Report altimeter QNH.

#number ATIS.dTQueueCheck

Time interval to check the radio queue. Default 5 sec or 90 sec if SRS is used.

#boolean ATIS.elevation

If true, give info on airfield elevation.

#number ATIS.frequency

Radio frequency in MHz.

Core.TextAndSound#TEXTANDSOUND ATIS.gettext

Gettext for localization

#table ATIS.ils

Table of ILS frequencies (can be runway specific).

#string ATIS.lid

Class id string for output to DCS log file.

#string ATIS.locale

Current locale

#number ATIS.magvar

Magnetic declination/variation at the airport in degrees.

#number ATIS.markerid

Numerical ID of the F10 map mark point.

#boolean ATIS.metric

If true, use metric units. If false, use imperial (default).

#number ATIS.modulation

Radio modulation 0=AM or 1=FM.

Sound.SRS#MSRS ATIS.msrs

Moose SRS object.

#table ATIS.ndbinner

Table of inner NDB frequencies (can be runway specific).

#table ATIS.ndbouter

Table of outer NDB frequencies (can be runway specific).

#number ATIS.power

Radio power in Watts. Default 100 W.

#table ATIS.prmg

PRMG channels (can be runway specific).

#boolean ATIS.qnhonly

If true, suppresses reporting QFE. Default is to report both QNH and QFE.

Sound.RadioQueue#RADIOQUEUE ATIS.radioqueue

Radio queue for broadcasing messages.

#number ATIS.relHumidity

Relative humidity (used to approximately calculate the dew point).

#string ATIS.relayunitname

Name of the radio relay unit.

#number ATIS.rsbn

RSBN channel.

#number ATIS.runwaym2t

Optional correction for magnetic to true runway heading conversion (and vice versa) in degrees.

#table ATIS.runwaymag

Table of magnetic runway headings.

#boolean ATIS.rwylength

If true, give info on runway length.

#string ATIS.soundpath

Path to sound files.

#string ATIS.soundpathAirports

Path to airport names sound files.

#string ATIS.soundpathNato

Path to NATO alphabet sound files.

#number ATIS.subduration

Duration how long subtitles are displayed in seconds.

#number ATIS.tacan

TACAN channel.

#string ATIS.theatre

DCS map name.

#table ATIS.towerfrequency

Table with tower frequencies.

#boolean ATIS.useSRS

If true, use SRS for transmission.

#boolean ATIS.usemarker

Use mark on the F10 map.

#string ATIS.version

ATIS class version.

#number ATIS.vor

VOR frequency.

#boolean ATIS.windtrue

Report true (from) heading of wind. Default is magnetic.

#number ATIS.zuludiff

Time difference local vs. zulu in hours.

#boolean ATIS.zulutimeonly

If true, suppresses report of local time, sunrise, and sunset.

Function(s)

Adds an End state.

Defined in:

Parameter:

#string State

The FSM state.

Set the default #FSM_PROCESS template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task.

Defined in:

Parameters:

#table From

Can contain a string indicating the From state or a table of strings containing multiple From states.

#string Event

The Event name.

An sub-process FSM.

#table ReturnEvents

A table indicating for which returned events of the SubFSM which Event must be triggered in the FSM.

Return value:

The SubFSM.

Adds a score for the FSM to be achieved.

Defined in:

Parameters:

#string State

is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).

#string ScoreText

is a text describing the score that is given according the status.

#number Score

is a number providing the score of the status.

Return value:

#FSM:

self

Adds a score for the FSM_PROCESS to be achieved.

Defined in:

Parameters:

#string From

is the From State of the main process.

#string Event

is the Event of the main process.

#string State

is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).

#string ScoreText

is a text describing the score that is given according the status.

#number Score

is a number providing the score of the status.

Return value:

#FSM:

self

Add a new transition rule to the FSM.

A transition rule defines when and if the FSM can transition from a state towards another state upon a triggered event.

Defined in:

Parameters:

#table From

Can contain a string indicating the From state or a table of strings containing multiple From states.

#string Event

The Event name.

#string To

The To state.

Get current state.

Defined in:

Return value:

#string:

Current FSM state.

Returns the End states.

Defined in:

Return value:

#table:

End states.

Defined in:

Parameters:

From

Event

Returns a table of the SubFSM rules defined within the FSM.

Defined in:

Return value:

#table:

Sub processes.

Returns a table with the scores defined.

Defined in:

Return value:

#table:

Scores.

Returns the start state of the FSM.

Defined in:

Return value:

#string:

A string containing the start state.

Get current state.

Defined in:

Return value:

#string:

Current FSM state.

Returns a table with the Subs defined.

Defined in:

Return value:

#table:

Sub processes.

Returns a table of the transition rules defined within the FSM.

Defined in:

Return value:

#table:

Transitions.

Check if FSM is in state.

Defined in:

Parameter:

#string State

State name.

Return value:

#boolean:

If true, FSM is in this state.

Load call backs.

Defined in:

Parameter:

#table CallBackTable

Table of call backs.

Creates a new FSM object.

Defined in:

Return value:

#FSM:

Defined in:

Parameters:

From

Event

Fsm

Sets the start state of the FSM.

Defined in:

Parameter:

#string State

A string defining the start state.

Add to map.

Defined in:

Parameters:

#table Map

Map.

#table Event

Event table.

Call handler.

Defined in:

Parameters:

#string step

Step "onafter", "onbefore", "onenter", "onleave".

#string trigger

Trigger.

#table params

Parameters.

#string EventName

Event name.

Return value:

Value.

Create transition.

Defined in:

Parameter:

#string EventName

Event name.

Return value:

#function:

Function.

Delayed transition.

Defined in:

Parameter:

#string EventName

Event name.

Return value:

#function:

Function.

Event map.

Defined in:

Parameters:

#table Events

Events.

#table EventStructure

Event structure.

Go sub.

Defined in:

Parameters:

#string ParentFrom

Parent from state.

#string ParentEvent

Parent event name.

Return value:

#table:

Subs.

Handler.

Defined in:

Parameters:

#string EventName

Event name.

...

Arguments.

Is end state.

Defined in:

Parameter:

#string Current

Current state name.

Return values:

#table:

FSM parent.

#string:

Event name.

Sub maps.

Defined in:

Parameters:

#table subs

Subs.

#table sub

Sub.

#string name

Name.

Check if can do an event.

Defined in:

Parameter:

#string e

Event name.

Return values:

#boolean:

If true, FSM can do the event.

#string:

To state.

Check if cannot do an event.

Defined in:

Parameter:

#string e

Event name.

Return value:

#boolean:

If true, FSM cannot do the event.

Check if FSM is in state.

Defined in:

Parameters:

#string State

State name.

state

Return value:

#boolean:

If true, FSM is in this state.

Whether ICAO phraseology is used for ATIS broadcasts.

Field(s)

#boolean ATIS.ICAOPhraseology.Nevada

false.

Function(s)

Nav point data.

Field(s)

#number ATIS.NavPoint.frequency

Nav point frequency.

#boolean ATIS.NavPoint.leftright

If true, runway has left "L" and right "R" runways.

#string ATIS.NavPoint.runway

Runway, e.g. "21".

Function(s)

Runway correction for converting true to magnetic heading.

Field(s)

#number ATIS.RunwayM2T.Caucasus

0° (East).

#number ATIS.RunwayM2T.MarianaIslands

+2° (East).

#number ATIS.RunwayM2T.Nevada

+12° (East).

#number ATIS.RunwayM2T.Normandy

-10° (West).

#number ATIS.RunwayM2T.PersianGulf

+2° (East).

#number ATIS.RunwayM2T.SinaiMap

+5° (East).

#number ATIS.RunwayM2T.Syria

+5° (East).

#number ATIS.RunwayM2T.TheChannel

-10° (West).

Function(s)

Sound files.

Field(s)

Function(s)

Sound file data.

Field(s)

#number ATIS.Soundfile.duration

Duration in seconds.

#string ATIS.Soundfile.filename

Name of the file

Function(s)