mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#ATIS
* Added honor Stop() functionality
This commit is contained in:
parent
d4a06089c9
commit
782cfd1fd0
@ -590,7 +590,7 @@ _ATIS = {}
|
|||||||
|
|
||||||
--- ATIS class version.
|
--- ATIS class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
ATIS.version = "0.9.10"
|
ATIS.version = "0.9.11"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- TODO list
|
-- TODO list
|
||||||
@ -1319,8 +1319,10 @@ function ATIS:onafterStatus( From, Event, To )
|
|||||||
text = text .. string.format( ", Relay unit=%s (alive=%s)", tostring( self.relayunitname ), relayunitstatus )
|
text = text .. string.format( ", Relay unit=%s (alive=%s)", tostring( self.relayunitname ), relayunitstatus )
|
||||||
end
|
end
|
||||||
self:T( self.lid .. text )
|
self:T( self.lid .. text )
|
||||||
|
|
||||||
self:__Status( -60 )
|
if not self:Is("Stopped") then
|
||||||
|
self:__Status( -60 )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@ -1348,9 +1350,11 @@ function ATIS:onafterCheckQueue( From, Event, To )
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Check back in 5 seconds.
|
if not self:Is("Stopped") then
|
||||||
self:__CheckQueue( -math.abs( self.dTQueueCheck ) )
|
-- Check back in 5 seconds.
|
||||||
|
self:__CheckQueue( -math.abs( self.dTQueueCheck ) )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Broadcast ATIS radio message.
|
--- Broadcast ATIS radio message.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user