mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
Good version solving a few bugs and adding some new stuff.
This commit is contained in:
@@ -83,7 +83,7 @@ ARMYGROUP.version="0.7.0"
|
||||
-- @param Wrapper.Group#GROUP group The GROUP object. Can also be given by its group name as `#string`.
|
||||
-- @return #ARMYGROUP self
|
||||
function ARMYGROUP:New(group)
|
||||
|
||||
|
||||
-- First check if we already have an OPS group for this group.
|
||||
local og=_DATABASE:GetOpsGroup(group)
|
||||
if og then
|
||||
@@ -91,6 +91,9 @@ function ARMYGROUP:New(group)
|
||||
return og
|
||||
end
|
||||
|
||||
-- First set ARMYGROUP.
|
||||
self.isArmygroup=true
|
||||
|
||||
-- Inherit everything from FSM class.
|
||||
local self=BASE:Inherit(self, OPSGROUP:New(group)) -- #ARMYGROUP
|
||||
|
||||
@@ -98,7 +101,6 @@ function ARMYGROUP:New(group)
|
||||
self.lid=string.format("ARMYGROUP %s | ", self.groupname)
|
||||
|
||||
-- Defaults
|
||||
self.isArmygroup=true
|
||||
self:SetDefaultROE()
|
||||
self:SetDefaultAlarmstate()
|
||||
self:SetDetection()
|
||||
|
||||
Reference in New Issue
Block a user