This commit is contained in:
Frank
2019-09-05 09:49:27 +02:00
parent 36e923cac7
commit 553f14d2ea
2 changed files with 6 additions and 1 deletions
@@ -130,7 +130,7 @@ FLIGHTCONTROL.FlightState={
--- FlightControl class version.
-- @field #string version
FLIGHTCONTROL.version="0.0.3"
FLIGHTCONTROL.version="0.0.4"
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list
@@ -39,6 +39,7 @@
-- @field #number fuelcriticalthresh Critical fuel threshold in percent.
-- @field #boolean fuelcriticalrtb RTB on critical fuel switch.
-- @field Ops.Squadron#SQUADRON squadron The squadron the flight group belongs to.
-- @field Ops.FlightControl#FLIGHTCONTROL flightcontrol The flightcontrol handling this group.
-- @extends Core.Fsm#FSM
--- Be surprised!
@@ -79,6 +80,7 @@ FLIGHTGROUP = {
fuelcriticalthresh = nil,
fuelcriticalrtb = false,
squadron = nil,
flightcontrol = nil,
}
@@ -316,6 +318,9 @@ function FLIGHTGROUP:New(groupname)
-- Init task counter.
self.taskcurrent=0
self.taskcounter=0
-- Add to data base.
_DATABASE:AddFlightGroup(self)
-- Autostart.
self:Start()