mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
FLIGHTGROUP
- Increased dealy before Route to base to 1.0 sec. Previous delay of 0.1 sec was apparently too short for the stop flag to take effect and the task was not called done. Hence the mission was also not done.
This commit is contained in:
@@ -4898,7 +4898,7 @@ function OPSGROUP:RemoveMission(Mission)
|
||||
return self
|
||||
end
|
||||
|
||||
--- Cancel all missions in mission queue.
|
||||
--- Cancel all missions in mission queue that are not already done or cancelled.
|
||||
-- @param #OPSGROUP self
|
||||
function OPSGROUP:CancelAllMissions()
|
||||
self:T(self.lid.."Cancelling ALL missions!")
|
||||
@@ -4906,7 +4906,13 @@ function OPSGROUP:CancelAllMissions()
|
||||
-- Cancel all missions.
|
||||
for _,_mission in pairs(self.missionqueue) do
|
||||
local mission=_mission --Ops.Auftrag#AUFTRAG
|
||||
if mission:IsNotOver() then
|
||||
|
||||
-- Current group status.
|
||||
local mystatus=mission:GetGroupStatus(self)
|
||||
|
||||
-- Check if mission is already over!
|
||||
if not (mystatus==AUFTRAG.GroupStatus.DONE or mystatus==AUFTRAG.GroupStatus.CANCELLED) then
|
||||
--if mission:IsNotOver() then
|
||||
self:T(self.lid.."Cancelling mission "..tostring(mission:GetName()))
|
||||
self:MissionCancel(mission)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user