AIRBOSS v0.3.3w

This commit is contained in:
funkyfranky
2018-11-23 16:30:32 +01:00
parent 9269e1e943
commit 8133ef2036
2 changed files with 257 additions and 72 deletions

View File

@@ -744,8 +744,34 @@ function UTILS.TACANToFrequency(TACANChannel, TACANMode)
end
--- Returns the DCS map/theatre as optained by env.mission.theatre.
-- @return #string DCS map string.
--- Returns the DCS map/theatre as optained by env.mission.theatre
-- @return #string DCS map name .
function UTILS.GetDCSMap()
return env.mission.theatre
end
--- Returns the magnetic declination of the map.
-- Returned values for the current maps are:
--
-- * Caucasus +6
-- * NTTR ?
-- * Normandy ?
-- * Persion Gulf ?
-- @param #string map (Optional) Map for which the declination is returned. Default is from env.mission.theatre
-- @return #string Declination in degrees.
function UTILS.GetMagneticDeclination(map)
-- Map.
map=map or UTILS.GetDCSMap()
local declination=0
if map=="Caucasus" then
declination=6
else
declination=0
end
return declination
end