mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
This commit is contained in:
@@ -1478,7 +1478,7 @@ end
|
||||
-- @param #DATABASE self
|
||||
-- @param Ops.OpsGroup#OPSGROUP opsgroup The OPS group added to the DB.
|
||||
function DATABASE:AddOpsGroup(opsgroup)
|
||||
env.info("Adding OPSGROUP "..tostring(opsgroup.groupname))
|
||||
--env.info("Adding OPSGROUP "..tostring(opsgroup.groupname))
|
||||
self.FLIGHTGROUPS[opsgroup.groupname]=opsgroup
|
||||
end
|
||||
|
||||
@@ -1494,7 +1494,7 @@ function DATABASE:GetOpsGroup(groupname)
|
||||
groupname=groupname:GetName()
|
||||
end
|
||||
|
||||
env.info("Getting OPSGROUP "..tostring(groupname))
|
||||
--env.info("Getting OPSGROUP "..tostring(groupname))
|
||||
return self.FLIGHTGROUPS[groupname]
|
||||
end
|
||||
|
||||
@@ -1510,7 +1510,7 @@ function DATABASE:FindOpsGroup(groupname)
|
||||
groupname=groupname:GetName()
|
||||
end
|
||||
|
||||
env.info("Getting OPSGROUP "..tostring(groupname))
|
||||
--env.info("Getting OPSGROUP "..tostring(groupname))
|
||||
return self.FLIGHTGROUPS[groupname]
|
||||
end
|
||||
|
||||
|
||||
@@ -647,7 +647,8 @@ do -- COORDINATE
|
||||
local y=X*math.sin(phi)+Y*math.cos(phi)
|
||||
|
||||
-- Coordinate assignment looks bit strange but is correct.
|
||||
return COORDINATE:NewFromVec3({x=y, y=self.y, z=x})
|
||||
local coord=COORDINATE:NewFromVec3({x=y, y=self.y, z=x})
|
||||
return coord
|
||||
end
|
||||
|
||||
--- Return a random Vec2 within an Outer Radius and optionally NOT within an Inner Radius of the COORDINATE.
|
||||
@@ -690,7 +691,8 @@ do -- COORDINATE
|
||||
function COORDINATE:GetRandomCoordinateInRadius( OuterRadius, InnerRadius )
|
||||
self:F2( { OuterRadius, InnerRadius } )
|
||||
|
||||
return COORDINATE:NewFromVec2( self:GetRandomVec2InRadius( OuterRadius, InnerRadius ) )
|
||||
local coord=COORDINATE:NewFromVec2( self:GetRandomVec2InRadius( OuterRadius, InnerRadius ) )
|
||||
return coord
|
||||
end
|
||||
|
||||
|
||||
|
||||
@@ -6112,7 +6112,7 @@ do -- SET_OPSGROUP
|
||||
-- @param Core.Base#BASE Object The object itself.
|
||||
-- @return Core.Base#BASE The added BASE Object.
|
||||
function SET_OPSGROUP:Add(ObjectName, Object)
|
||||
self:I( { ObjectName = ObjectName, Object = Object } )
|
||||
self:T( { ObjectName = ObjectName, Object = Object } )
|
||||
|
||||
-- Ensure that the existing element is removed from the Set before a new one is inserted to the Set
|
||||
if self.Set[ObjectName] then
|
||||
|
||||
Reference in New Issue
Block a user