mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#AIRBASE, #ATIS
* Additions
This commit is contained in:
parent
6481f66e27
commit
46258492bd
@ -419,6 +419,8 @@ ATIS.RunwayM2T = {
|
|||||||
TheChannel = -10,
|
TheChannel = -10,
|
||||||
Syria = 5,
|
Syria = 5,
|
||||||
MarianaIslands = 2,
|
MarianaIslands = 2,
|
||||||
|
Falklands = 12,
|
||||||
|
Sinai = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Whether ICAO phraseology is used for ATIS broadcasts.
|
--- Whether ICAO phraseology is used for ATIS broadcasts.
|
||||||
@ -430,6 +432,8 @@ ATIS.RunwayM2T = {
|
|||||||
-- @field #boolean TheChannel true.
|
-- @field #boolean TheChannel true.
|
||||||
-- @field #boolean Syria true.
|
-- @field #boolean Syria true.
|
||||||
-- @field #boolean MarianaIslands true.
|
-- @field #boolean MarianaIslands true.
|
||||||
|
-- @field #boolean Falklands true.
|
||||||
|
-- @field #boolean Sinai true.
|
||||||
ATIS.ICAOPhraseology = {
|
ATIS.ICAOPhraseology = {
|
||||||
Caucasus = true,
|
Caucasus = true,
|
||||||
Nevada = false,
|
Nevada = false,
|
||||||
@ -437,7 +441,9 @@ ATIS.ICAOPhraseology = {
|
|||||||
PersianGulf = true,
|
PersianGulf = true,
|
||||||
TheChannel = true,
|
TheChannel = true,
|
||||||
Syria = true,
|
Syria = true,
|
||||||
MarianaIslands = true
|
MarianaIslands = true,
|
||||||
|
Falklands = true,
|
||||||
|
Sinai = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Nav point data.
|
--- Nav point data.
|
||||||
@ -1272,6 +1278,7 @@ end
|
|||||||
-- @param #string Event Event.
|
-- @param #string Event Event.
|
||||||
-- @param #string To To state.
|
-- @param #string To To state.
|
||||||
function ATIS:onafterStart( From, Event, To )
|
function ATIS:onafterStart( From, Event, To )
|
||||||
|
self:I("Airbase category is "..self.airbase:GetAirbaseCategory())
|
||||||
|
|
||||||
-- Check that this is an airdrome.
|
-- Check that this is an airdrome.
|
||||||
if self.airbase:GetAirbaseCategory() == Airbase.Category.SHIP then
|
if self.airbase:GetAirbaseCategory() == Airbase.Category.SHIP then
|
||||||
@ -1823,7 +1830,10 @@ function ATIS:onafterBroadcast( From, Event, To )
|
|||||||
|
|
||||||
-- Airbase name
|
-- Airbase name
|
||||||
subtitle = string.format( "%s", self.airbasename )
|
subtitle = string.format( "%s", self.airbasename )
|
||||||
if (not self.ATISforFARPs) and self.airbasename:find( "AFB" ) == nil and self.airbasename:find( "Airport" ) == nil and self.airbasename:find( "Airstrip" ) == nil and self.airbasename:find( "airfield" ) == nil and self.airbasename:find( "AB" ) == nil then
|
if (not self.ATISforFARPs) and self.airbasename:find( "AFB" ) == nil and self.airbasename:find( "Airport" ) == nil
|
||||||
|
and self.airbasename:find( "Airstrip" ) == nil and self.airbasename:find( "airfield" ) == nil and self.airbasename:find( "AB" ) == nil
|
||||||
|
and self.airbasename:find( "Field" ) == nil
|
||||||
|
then
|
||||||
subtitle = subtitle .. " Airport"
|
subtitle = subtitle .. " Airport"
|
||||||
end
|
end
|
||||||
if not self.useSRS then
|
if not self.useSRS then
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
-- @module Wrapper.Airbase
|
-- @module Wrapper.Airbase
|
||||||
-- @image Wrapper_Airbase.JPG
|
-- @image Wrapper_Airbase.JPG
|
||||||
|
|
||||||
|
---
|
||||||
-- @type AIRBASE
|
-- @type AIRBASE
|
||||||
-- @field #string ClassName Name of the class, i.e. "AIRBASE".
|
-- @field #string ClassName Name of the class, i.e. "AIRBASE".
|
||||||
-- @field #table CategoryName Names of airbase categories.
|
-- @field #table CategoryName Names of airbase categories.
|
||||||
@ -548,6 +548,8 @@ AIRBASE.Syria={
|
|||||||
-- * AIRBASE.MarianaIslands.Saipan_Intl
|
-- * AIRBASE.MarianaIslands.Saipan_Intl
|
||||||
-- * AIRBASE.MarianaIslands.Tinian_Intl
|
-- * AIRBASE.MarianaIslands.Tinian_Intl
|
||||||
-- * AIRBASE.MarianaIslands.Olf_Orote
|
-- * AIRBASE.MarianaIslands.Olf_Orote
|
||||||
|
-- * AIRBASE.MarianaIslands.Pagan_Airstrip
|
||||||
|
-- * AIRBASE.MarianaIslands.North_West_Field
|
||||||
--
|
--
|
||||||
-- @field MarianaIslands
|
-- @field MarianaIslands
|
||||||
AIRBASE.MarianaIslands = {
|
AIRBASE.MarianaIslands = {
|
||||||
@ -557,6 +559,8 @@ AIRBASE.MarianaIslands = {
|
|||||||
["Saipan_Intl"] = "Saipan Intl",
|
["Saipan_Intl"] = "Saipan Intl",
|
||||||
["Tinian_Intl"] = "Tinian Intl",
|
["Tinian_Intl"] = "Tinian Intl",
|
||||||
["Olf_Orote"] = "Olf Orote",
|
["Olf_Orote"] = "Olf Orote",
|
||||||
|
["Pagan_Airstrip"] = "Pagan Airstrip",
|
||||||
|
["North_West_Field"] = "North West Field",
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Airbases of the South Atlantic map:
|
--- Airbases of the South Atlantic map:
|
||||||
@ -788,6 +792,12 @@ function AIRBASE:Register(AirbaseName)
|
|||||||
-- Category.
|
-- Category.
|
||||||
self.category=self.descriptors and self.descriptors.category or Airbase.Category.AIRDROME
|
self.category=self.descriptors and self.descriptors.category or Airbase.Category.AIRDROME
|
||||||
|
|
||||||
|
-- H2 is bugged
|
||||||
|
--if self.AirbaseName == "H4" and self.descriptors == nil then
|
||||||
|
--self:E("***** H4 on Syria map is currently bugged!")
|
||||||
|
--return nil
|
||||||
|
--end
|
||||||
|
|
||||||
-- Set category.
|
-- Set category.
|
||||||
if self.category==Airbase.Category.AIRDROME then
|
if self.category==Airbase.Category.AIRDROME then
|
||||||
self.isAirdrome=true
|
self.isAirdrome=true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user