mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-24 20:15:30 +00:00
FG merge
This commit is contained in:
@@ -456,7 +456,7 @@ function FLIGHTGROUP:onafterFlightStatus(From, Event, To)
|
||||
local fsmstate=self:GetState()
|
||||
|
||||
-- Short info.
|
||||
local text=string.format("Flight group status %s.", fsmstate)
|
||||
local text=string.format("Flight group status %s. Task=%d", fsmstate, self.taskcurrent)
|
||||
self:I(self.sid..text)
|
||||
|
||||
-- Element status.
|
||||
@@ -935,7 +935,7 @@ function FLIGHTGROUP:GetTask()
|
||||
-- Look for first task that is not accomplished.
|
||||
for _,_task in pairs(self.taskqueue) do
|
||||
local task=_task --#FLIGHTGROUP.Task
|
||||
if task.status~=FLIGHTGROUP.TaskStatus.ACCOMPLISHED and task.time>=time then
|
||||
if task.status~=FLIGHTGROUP.TaskStatus.ACCOMPLISHED and time>=task.time then
|
||||
return task
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user