mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Merge pull request #2284 from FlightControl-Master/FF/MasterDevel
Germany CW map
This commit is contained in:
commit
5da899138b
@ -501,6 +501,7 @@ ATIS.Alphabet = {
|
|||||||
-- @field #number Kola +15° (East).
|
-- @field #number Kola +15° (East).
|
||||||
-- @field #number Afghanistan +3° (East).
|
-- @field #number Afghanistan +3° (East).
|
||||||
-- @field #number Iraq +4.4° (East).
|
-- @field #number Iraq +4.4° (East).
|
||||||
|
-- @field #number GermanyCW +0.1° (East).
|
||||||
ATIS.RunwayM2T = {
|
ATIS.RunwayM2T = {
|
||||||
Caucasus = 0,
|
Caucasus = 0,
|
||||||
Nevada = 12,
|
Nevada = 12,
|
||||||
@ -513,7 +514,8 @@ ATIS.RunwayM2T = {
|
|||||||
SinaiMap = 5,
|
SinaiMap = 5,
|
||||||
Kola = 15,
|
Kola = 15,
|
||||||
Afghanistan = 3,
|
Afghanistan = 3,
|
||||||
Iraq=4.4
|
Iraq=4.4,
|
||||||
|
GermanyCW=0.1,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Whether ICAO phraseology is used for ATIS broadcasts.
|
--- Whether ICAO phraseology is used for ATIS broadcasts.
|
||||||
@ -530,6 +532,7 @@ ATIS.RunwayM2T = {
|
|||||||
-- @field #boolean Kola true.
|
-- @field #boolean Kola true.
|
||||||
-- @field #boolean Afghanistan true.
|
-- @field #boolean Afghanistan true.
|
||||||
-- @field #boolean Iraq true.
|
-- @field #boolean Iraq true.
|
||||||
|
-- @field #boolean GermanyCW true.
|
||||||
ATIS.ICAOPhraseology = {
|
ATIS.ICAOPhraseology = {
|
||||||
Caucasus = true,
|
Caucasus = true,
|
||||||
Nevada = false,
|
Nevada = false,
|
||||||
@ -543,6 +546,7 @@ ATIS.ICAOPhraseology = {
|
|||||||
Kola = true,
|
Kola = true,
|
||||||
Afghanistan = true,
|
Afghanistan = true,
|
||||||
Iraq = true,
|
Iraq = true,
|
||||||
|
GermanyCW = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Nav point data.
|
--- Nav point data.
|
||||||
|
|||||||
@ -58,6 +58,7 @@ BIGSMOKEPRESET = {
|
|||||||
-- @field #string Kola Kola map.
|
-- @field #string Kola Kola map.
|
||||||
-- @field #string Afghanistan Afghanistan map
|
-- @field #string Afghanistan Afghanistan map
|
||||||
-- @field #string Iraq Iraq map
|
-- @field #string Iraq Iraq map
|
||||||
|
-- @field #string GermanyCW Germany Cold War map
|
||||||
DCSMAP = {
|
DCSMAP = {
|
||||||
Caucasus="Caucasus",
|
Caucasus="Caucasus",
|
||||||
NTTR="Nevada",
|
NTTR="Nevada",
|
||||||
@ -70,7 +71,8 @@ DCSMAP = {
|
|||||||
Sinai="SinaiMap",
|
Sinai="SinaiMap",
|
||||||
Kola="Kola",
|
Kola="Kola",
|
||||||
Afghanistan="Afghanistan",
|
Afghanistan="Afghanistan",
|
||||||
Iraq="Iraq"
|
Iraq="Iraq",
|
||||||
|
GermanyCW="GermanyCW",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1759,7 +1761,9 @@ end
|
|||||||
-- * Sinai +4.8 (East)
|
-- * Sinai +4.8 (East)
|
||||||
-- * Kola +15 (East) - note there is a lot of deviation across the map (-1° to +24°), as we are close to the North pole
|
-- * Kola +15 (East) - note there is a lot of deviation across the map (-1° to +24°), as we are close to the North pole
|
||||||
-- * Afghanistan +3 (East) - actually +3.6 (NW) to +2.3 (SE)
|
-- * Afghanistan +3 (East) - actually +3.6 (NW) to +2.3 (SE)
|
||||||
-- @param #string map (Optional) Map for which the declination is returned. Default is from env.mission.theatre
|
-- * Iraq +4.4 (East)
|
||||||
|
-- * Germany Cold War +0.1 (East) - near Fulda
|
||||||
|
-- @param #string map (Optional) Map for which the declination is returned. Default is from `env.mission.theatre`.
|
||||||
-- @return #number Declination in degrees.
|
-- @return #number Declination in degrees.
|
||||||
function UTILS.GetMagneticDeclination(map)
|
function UTILS.GetMagneticDeclination(map)
|
||||||
|
|
||||||
@ -1791,6 +1795,8 @@ function UTILS.GetMagneticDeclination(map)
|
|||||||
declination=3
|
declination=3
|
||||||
elseif map==DCSMAP.Iraq then
|
elseif map==DCSMAP.Iraq then
|
||||||
declination=4.4
|
declination=4.4
|
||||||
|
elseif map==DCSMAP.GermanyCW then
|
||||||
|
declination=0.1
|
||||||
else
|
else
|
||||||
declination=0
|
declination=0
|
||||||
end
|
end
|
||||||
@ -2024,6 +2030,10 @@ function UTILS.GMTToLocalTimeDifference()
|
|||||||
return 3 -- Currently map is +2 but should be +3 (DCS bug?)
|
return 3 -- Currently map is +2 but should be +3 (DCS bug?)
|
||||||
elseif theatre==DCSMAP.Afghanistan then
|
elseif theatre==DCSMAP.Afghanistan then
|
||||||
return 4.5 -- UTC +4:30
|
return 4.5 -- UTC +4:30
|
||||||
|
elseif theatre==DCSMAP.Iraq then
|
||||||
|
return 3.0 -- UTC +3
|
||||||
|
elseif theatre==DCSMAP.GermanyCW then
|
||||||
|
return 1.0 -- UTC +1 Central European Time (not summer time)
|
||||||
else
|
else
|
||||||
BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre)))
|
BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre)))
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user