From 9fa16c6385792834efaa04691807c9d5f242cdf7 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 18 Sep 2023 16:52:13 +0200 Subject: [PATCH] Update FlightControl.lua --- Moose Development/Moose/Ops/FlightControl.lua | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Moose Development/Moose/Ops/FlightControl.lua b/Moose Development/Moose/Ops/FlightControl.lua index 072aff744..26db608ab 100644 --- a/Moose Development/Moose/Ops/FlightControl.lua +++ b/Moose Development/Moose/Ops/FlightControl.lua @@ -1492,6 +1492,8 @@ function FLIGHTCONTROL:_CheckQueues() text=text..string.format("hold short of runway %s.", runway) + flight.taxipath=taxipath + if self:GetFlightStatus(flight)==FLIGHTCONTROL.FlightStatus.READYTO then text=string.format("%s, %s, cleared for take-off, runway %s", callsign, self.alias, runway) end @@ -4605,6 +4607,25 @@ function FLIGHTCONTROL:_CleanText(Text) return text end +--- Clean text. Remove control sequences. +-- @param #FLIGHTCONTROL self +-- @param Core.Pathline#PATHLINE taxipath Taxi path. +-- @param #string Cleaned text. +function FLIGHTCONTROL:_GetTaxiwayText(taxipath) + + local taxiroute="" + for i,_point in pairs(taxipath.points) do + local p=_point --Core.Pathline#PATHLINE.Point + local name=UTILS.Split(p.name, " ") + local name=name[#name] + local tw=name + if string.len(name)==1 then + name=ENUMS.Phonetic[name] + end + taxiroute=taxiroute..string.format("%s, ", name) + end +end + ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Misc Functions -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------