mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-10 17:59:24 +00:00
FC
This commit is contained in:
@@ -756,6 +756,11 @@ function FLIGHTCONTROL:_RemoveFlightFromQueue(queue, flight, queuename)
|
|||||||
if qflight.groupname==flight.groupname then
|
if qflight.groupname==flight.groupname then
|
||||||
self:I(self.lid..string.format("Removing flight group %s from %s queue.", flight.groupname, queuename))
|
self:I(self.lid..string.format("Removing flight group %s from %s queue.", flight.groupname, queuename))
|
||||||
table.remove(queue, i)
|
table.remove(queue, i)
|
||||||
|
|
||||||
|
if not flight.ai then
|
||||||
|
flight:_UpdateMenu()
|
||||||
|
end
|
||||||
|
|
||||||
return true, i
|
return true, i
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -508,6 +508,17 @@ function FLIGHTGROUP:GetSquadron()
|
|||||||
return self.squadron
|
return self.squadron
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Define parking spots to be used by the flight group.
|
||||||
|
-- This is valid only for the specified airbase.
|
||||||
|
-- @param #FLIGHTGROUP self
|
||||||
|
-- @param #string airbasename Name of the airbase.
|
||||||
|
-- @param #table Table of parking spot numbers.
|
||||||
|
-- @return #FLIGHTGROUP self
|
||||||
|
function FLIGHTGROUP:SetParkingSpots(airbase, spots)
|
||||||
|
self.parkingspots[airbase]=spots
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- Set the FLIGHTCONTROL controlling this flight group.
|
--- Set the FLIGHTCONTROL controlling this flight group.
|
||||||
-- @param #FLIGHTGROUP self
|
-- @param #FLIGHTGROUP self
|
||||||
-- @param Ops.FlightControl#FLIGHTCONTROL flightcontrol The FLIGHTCONTROL object.
|
-- @param Ops.FlightControl#FLIGHTCONTROL flightcontrol The FLIGHTCONTROL object.
|
||||||
@@ -3643,6 +3654,7 @@ end
|
|||||||
--- Get the proper terminal type based on generalized attribute of the group.
|
--- Get the proper terminal type based on generalized attribute of the group.
|
||||||
--@param #FLIGHTGROUP self
|
--@param #FLIGHTGROUP self
|
||||||
function FLIGHTGROUP:_UpdateMenu()
|
function FLIGHTGROUP:_UpdateMenu()
|
||||||
|
env.info("FF updating menu")
|
||||||
|
|
||||||
local position=self.group:GetCoordinate()
|
local position=self.group:GetCoordinate()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user