From df2a6a6902eb790516cb0fe8e2b395e1c61f82e8 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 29 Nov 2022 17:53:41 +0100 Subject: [PATCH] #ATIS * Added `ATIS:GetSRSText()` --- Moose Development/Moose/Ops/ATIS.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/ATIS.lua b/Moose Development/Moose/Ops/ATIS.lua index 9cdf60ec3..d4c20f948 100644 --- a/Moose Development/Moose/Ops/ATIS.lua +++ b/Moose Development/Moose/Ops/ATIS.lua @@ -93,6 +93,7 @@ -- @field #number dTQueueCheck Time interval to check the radio queue. Default 5 sec or 90 sec if SRS is used. -- @field #boolean ReportmBar Report mBar/hpa even if not metric, i.e. for Mirage flights -- @field #boolean TransmitOnlyWithPlayers For SRS - If true, only transmit if there are alive Players. +-- @field #string SRSText Text of the complete SRS message (if done at least once, else nil) -- @extends Core.Fsm#FSM --- *It is a very sad thing that nowadays there is so little useless information.* - Oscar Wilde @@ -592,7 +593,7 @@ _ATIS = {} --- ATIS class version. -- @field #string version -ATIS.version = "0.9.11" +ATIS.version = "0.9.12" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- TODO list @@ -880,6 +881,13 @@ function ATIS:SetMapMarks( switch ) return self end +--- Return the complete SRS Text block, if at least generated once. Else nil. +-- @param #ATIS self +-- @return #string SRSText +function ATIS:GetSRSText() + return self.SRSText +end + --- Set magnetic runway headings as depicted on the runway, *e.g.* "13" for 130° or "25L" for the left runway with magnetic heading 250°. -- @param #ATIS self -- @param #table headings Magnetic headings. Inverse (-180°) headings are added automatically. You only need to specify one heading per runway direction. "L"eft and "R" right can also be appended. @@ -2402,7 +2410,8 @@ function ATIS:onafterReport( From, Event, To, Text ) local duration = STTS.getSpeechTime(text,0.95) self.msrsQ:NewTransmission(text,duration,self.msrs,nil,2) --self.msrs:PlayText( text ) - + self.SRSText = text + end end