mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#Fixes
This commit is contained in:
parent
a2d3205701
commit
c7a66e0f99
@ -609,15 +609,16 @@ _ATIS = {}
|
|||||||
|
|
||||||
--- ATIS class version.
|
--- ATIS class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
ATIS.version = "0.9.14"
|
ATIS.version = "0.9.15"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- TODO list
|
-- TODO list
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- TODO: Add new Normandy airfields.
|
|
||||||
-- TODO: Zulu time --> Zulu in output.
|
|
||||||
-- TODO: Correct fog for elevation.
|
-- TODO: Correct fog for elevation.
|
||||||
|
-- DONE: Zulu time --> Zulu in output.
|
||||||
|
-- DONE: Fix for AB not having a runway - Helopost like Naqoura
|
||||||
|
-- DONE: Add new Normandy airfields.
|
||||||
-- DONE: Use new AIRBASE system to set start/landing runway
|
-- DONE: Use new AIRBASE system to set start/landing runway
|
||||||
-- DONE: SetILS doesn't work
|
-- DONE: SetILS doesn't work
|
||||||
-- DONE: Visibility reported twice over SRS
|
-- DONE: Visibility reported twice over SRS
|
||||||
@ -2145,12 +2146,14 @@ function ATIS:onafterBroadcast( From, Event, To )
|
|||||||
|
|
||||||
if not self.ATISforFARPs then
|
if not self.ATISforFARPs then
|
||||||
-- Active runway.
|
-- Active runway.
|
||||||
|
if runwayLanding then
|
||||||
local subtitle=string.format("Active runway %s", runwayLanding)
|
local subtitle=string.format("Active runway %s", runwayLanding)
|
||||||
if rwyLandingLeft==true then
|
if rwyLandingLeft==true then
|
||||||
subtitle=subtitle.." Left"
|
subtitle=subtitle.." Left"
|
||||||
elseif rwyLandingLeft==false then
|
elseif rwyLandingLeft==false then
|
||||||
subtitle=subtitle.." Right"
|
subtitle=subtitle.." Right"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
_RUNACT = subtitle
|
_RUNACT = subtitle
|
||||||
if not self.useSRS then
|
if not self.useSRS then
|
||||||
self:Transmission(ATIS.Sound.ActiveRunway, 1.0, subtitle)
|
self:Transmission(ATIS.Sound.ActiveRunway, 1.0, subtitle)
|
||||||
@ -2512,8 +2515,11 @@ function ATIS:GetActiveRunway(Takeoff)
|
|||||||
else
|
else
|
||||||
runway=self.airbase:GetActiveRunwayLanding()
|
runway=self.airbase:GetActiveRunwayLanding()
|
||||||
end
|
end
|
||||||
|
if runway then -- some ABs have NO runways, e.g. Syria Naqoura
|
||||||
return runway.name, runway.isLeft
|
return runway.name, runway.isLeft
|
||||||
|
else
|
||||||
|
return nil, nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get runway from user supplied magnetic heading.
|
--- Get runway from user supplied magnetic heading.
|
||||||
|
|||||||
@ -1504,7 +1504,9 @@ function AIRBASE:FindFreeParkingSpotForAircraft(group, terminaltype, scanradius,
|
|||||||
local _aircraftsize, ax,ay,az
|
local _aircraftsize, ax,ay,az
|
||||||
if group and group.ClassName == "GROUP" then
|
if group and group.ClassName == "GROUP" then
|
||||||
aircraft=group:GetUnit(1)
|
aircraft=group:GetUnit(1)
|
||||||
|
if aircraft then
|
||||||
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
|
_aircraftsize, ax,ay,az=aircraft:GetObjectSize()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
-- SU27 dimensions
|
-- SU27 dimensions
|
||||||
_aircraftsize = 23
|
_aircraftsize = 23
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user