ATIS v0.5.0

This commit is contained in:
Frank
2019-10-21 22:29:45 +02:00
parent 9b6994749b
commit fe2ef11f8d
2 changed files with 22 additions and 9 deletions

View File

@@ -452,7 +452,7 @@ ATIS.Sound = {
DegreesCelsius={filename="DegreesCelsius.ogg", duration=1.27},
DegreesFahrenheit={filename="DegreesFahrenheit.ogg", duration=1.23},
Dust={filename="Dust.ogg", duration=0.54},
Elevation={filename="Elevation.ogg", duration=0.50},
Elevation={filename="Elevation.ogg", duration=0.78},
EndOfInformation={filename="EndOfInformation.ogg", duration=1.15},
Feet={filename="Feet.ogg", duration=0.45},
Fog={filename="Fog.ogg", duration=0.47},
@@ -513,7 +513,7 @@ _ATIS={}
--- ATIS class version.
-- @field #string version
ATIS.version="0.4.2"
ATIS.version="0.5.0"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list
@@ -1699,13 +1699,13 @@ function ATIS:GetNavPoint(navpoints, runway, left)
local rwyy=tonumber(self:GetRunwayWithoutLR(runway))*10
local navL=self:GetRunwayLR(nav.runway)
local hdgD=UTILS.HdgDiff(navy,rwyy)
if UTILS.HdgDiff(navy,rwyy)<=15 then --We allow an error of +-15° here.
if navL==nil or navL==left then
if hdgD<=15 then --We allow an error of +-15° here.
if navL==nil or (navL==true and left==true) or (navL==false and left==false) then
return nav
end
end
end
end