Update Airbase.lua

https://github.com/FlightControl-Master/MOOSE/issues/1279
I dont know if anything else needs to be done apart from this.
This commit is contained in:
Pikes 2020-02-22 16:35:18 +00:00 committed by GitHub
parent 042cc7a85f
commit fedee49eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,14 @@ AIRBASE.Normandy = {
["Funtington"] = "Funtington", ["Funtington"] = "Funtington",
["Tangmere"] = "Tangmere", ["Tangmere"] = "Tangmere",
["Ford"] = "Ford", ["Ford"] = "Ford",
} ["Goulet"] = "Goulet",
["Argentan"] = "Argentan",
["Vrigny"] = "Vrigny",
["Essay"] = "Essay",
["Hauterive"] = "Hauterive",
["Barville"] = "Barville",
["Conches"] = "Conches",
}
--- These are all airbases of the Persion Gulf Map: --- These are all airbases of the Persion Gulf Map:
-- --
@ -329,7 +336,7 @@ AIRBASE.TerminalType = {
--- Runway data. --- Runway data.
-- @type AIRBASE.Runway -- @type AIRBASE.Runway
-- @field #number heading Heading of the runway in degrees. -- @field #number heading Heading of the runway in degrees.
-- @field #string idx Runway ID: heading 070° ==> idx="07". -- @field #string idx Runway ID: heading 070° ==> idx="07".
-- @field #number length Length of runway in meters. -- @field #number length Length of runway in meters.
-- @field Core.Point#COORDINATE position Position of runway start. -- @field Core.Point#COORDINATE position Position of runway start.
-- @field Core.Point#COORDINATE endpoint End point of runway. -- @field Core.Point#COORDINATE endpoint End point of runway.
@ -1107,7 +1114,7 @@ function AIRBASE:GetRunwayData(magvar, mark)
-- Heading of runway. -- Heading of runway.
local hdg=c1:HeadingTo(c2) local hdg=c1:HeadingTo(c2)
-- Runway ID: heading=070° ==> idx="07" -- Runway ID: heading=070° ==> idx="07"
local idx=string.format("%02d", UTILS.Round((hdg-magvar)/10, 0)) local idx=string.format("%02d", UTILS.Round((hdg-magvar)/10, 0))
-- Runway table. -- Runway table.
@ -1217,7 +1224,7 @@ function AIRBASE:GetActiveRunway(magvar)
local dot=UTILS.VecDot(Vwind, Vrunway) local dot=UTILS.VecDot(Vwind, Vrunway)
-- Debug. -- Debug.
--env.info(string.format("runway=%03d° dot=%.3f", runway.heading, dot)) --env.info(string.format("runway=%03d° dot=%.3f", runway.heading, dot))
-- New min? -- New min?
if dotmin==nil or dot<dotmin then if dotmin==nil or dot<dotmin then