mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-12 04:31:09 +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 #string assignment The (optional) assignment for the asset.
|
||||
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
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -2354,7 +2354,7 @@ function FLIGHTGROUP:onafterPassingWaypoint(From, Event, To, n, N)
|
||||
|
||||
-- Execute waypoint tasks.
|
||||
if #taskswp>0 then
|
||||
self:SetTask(self.group:TaskCombo(taskswp))
|
||||
self:PushTask(self.group:TaskCombo(taskswp))
|
||||
end
|
||||
|
||||
end
|
||||
@@ -2954,7 +2954,7 @@ function FLIGHTGROUP:onafterTaskExecute(From, Event, To, Task)
|
||||
local TaskFinal=self.group:TaskCombo({TaskControlled, TaskDone})
|
||||
|
||||
-- Set task for group.
|
||||
self:SetTask(TaskFinal, 1)
|
||||
self:PushTask(TaskFinal, 1)
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user