mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'develop' into FF/OpsDev
This commit is contained in:
@@ -1331,6 +1331,12 @@ ENUMS.Storage.weapons.OH58.Smk_Grenade_Yellow = {4,5,9,491}
|
||||
-- Apache
|
||||
ENUMS.Storage.weapons.AH64D.AN_APG78 = {4,15,44,2114}
|
||||
ENUMS.Storage.weapons.AH64D.Internal_Aux_FuelTank = {1,3,43,1700}
|
||||
-- Other - but cannot set or track those. Harrier stuff?
|
||||
ENUMS.Storage.weapons.droptanks.FuelTank_610gal = {1,3,43,10}
|
||||
ENUMS.Storage.weapons.droptanks.FuelTank_370gal = {1,3,43,11}
|
||||
ENUMS.Storage.weapons.containers.AV8BNA_GAU_12_AP_M79 = {4,15,46,824}
|
||||
ENUMS.Storage.weapons.containers.AV8BNA_GAU_12_HE_M792 = {4,15,46,825}
|
||||
ENUMS.Storage.weapons.containers.AV8BNA_GAU_12_SAPHEI_T = {4,15,46,300}
|
||||
|
||||
---
|
||||
-- @type ENUMS.FARPType
|
||||
|
||||
@@ -58,6 +58,7 @@ BIGSMOKEPRESET = {
|
||||
-- @field #string Kola Kola map.
|
||||
-- @field #string Afghanistan Afghanistan map
|
||||
-- @field #string Iraq Iraq map
|
||||
-- @field #string GermanyCW Germany Cold War map
|
||||
DCSMAP = {
|
||||
Caucasus="Caucasus",
|
||||
NTTR="Nevada",
|
||||
@@ -70,7 +71,8 @@ DCSMAP = {
|
||||
Sinai="SinaiMap",
|
||||
Kola="Kola",
|
||||
Afghanistan="Afghanistan",
|
||||
Iraq="Iraq"
|
||||
Iraq="Iraq",
|
||||
GermanyCW="GermanyCW",
|
||||
}
|
||||
|
||||
|
||||
@@ -1834,7 +1836,9 @@ end
|
||||
-- * 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
|
||||
-- * 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.
|
||||
function UTILS.GetMagneticDeclination(map)
|
||||
|
||||
@@ -1866,6 +1870,8 @@ function UTILS.GetMagneticDeclination(map)
|
||||
declination=3
|
||||
elseif map==DCSMAP.Iraq then
|
||||
declination=4.4
|
||||
elseif map==DCSMAP.GermanyCW then
|
||||
declination=0.1
|
||||
else
|
||||
declination=0
|
||||
end
|
||||
@@ -2099,6 +2105,10 @@ function UTILS.GMTToLocalTimeDifference()
|
||||
return 3 -- Currently map is +2 but should be +3 (DCS bug?)
|
||||
elseif theatre==DCSMAP.Afghanistan then
|
||||
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
|
||||
BASE:E(string.format("ERROR: Unknown Map %s in UTILS.GMTToLocal function. Returning 0", tostring(theatre)))
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user