mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fixed bug in Scheduler (a real nasty one) and SET_UNIT
This commit is contained in:
@@ -33,14 +33,15 @@ function PROCESS:New( ProcessName, Task, ProcessUnit )
|
||||
self.Task = Task
|
||||
self.ProcessName = ProcessName
|
||||
|
||||
self.ProcessScheduler = SCHEDULER:New( self.Fsm, self.NextEvent )
|
||||
self.ProcessScheduler = SCHEDULER:New()
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
--- @param #PROCESS self
|
||||
function PROCESS:NextEvent( NextEvent, ... )
|
||||
self.ProcessScheduler:Schedule( arg, 1 ) -- This schedules the next event, but only if scheduling is activated.
|
||||
self:F(self.ProcessName)
|
||||
self.ProcessScheduler:Schedule( self.Fsm, NextEvent, arg, 1 ) -- This schedules the next event, but only if scheduling is activated.
|
||||
end
|
||||
|
||||
--- @param #PROCESS self
|
||||
|
||||
Reference in New Issue
Block a user