mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-18 13:16:03 +00:00
FG
- SetTask --> PushTask to keep enroute tasks alive.
This commit is contained in:
@@ -3981,7 +3981,7 @@ end
|
|||||||
-- @param #WAREHOUSE.Assetitem asset The asset that has just been added.
|
-- @param #WAREHOUSE.Assetitem asset The asset that has just been added.
|
||||||
-- @param #string assignment The (optional) assignment for the asset.
|
-- @param #string assignment The (optional) assignment for the asset.
|
||||||
function WAREHOUSE:onafterNewAsset(From, Event, To, asset, assignment)
|
function WAREHOUSE:onafterNewAsset(From, Event, To, asset, assignment)
|
||||||
self:I(self.lid..string.format("New asset %s id=%d with assignment %s.", tostring(asset.templatename), asset.uid, tostring(assignment)))
|
self:T(self.lid..string.format("New asset %s id=%d with assignment %s.", tostring(asset.templatename), asset.uid, tostring(assignment)))
|
||||||
end
|
end
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -2354,7 +2354,7 @@ function FLIGHTGROUP:onafterPassingWaypoint(From, Event, To, n, N)
|
|||||||
|
|
||||||
-- Execute waypoint tasks.
|
-- Execute waypoint tasks.
|
||||||
if #taskswp>0 then
|
if #taskswp>0 then
|
||||||
self:SetTask(self.group:TaskCombo(taskswp))
|
self:PushTask(self.group:TaskCombo(taskswp))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -2954,7 +2954,7 @@ function FLIGHTGROUP:onafterTaskExecute(From, Event, To, Task)
|
|||||||
local TaskFinal=self.group:TaskCombo({TaskControlled, TaskDone})
|
local TaskFinal=self.group:TaskCombo({TaskControlled, TaskDone})
|
||||||
|
|
||||||
-- Set task for group.
|
-- Set task for group.
|
||||||
self:SetTask(TaskFinal, 1)
|
self:PushTask(TaskFinal, 1)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user