mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#
This commit is contained in:
parent
c80f128b0f
commit
f1445cdbdd
@ -4169,7 +4169,7 @@ function OPSGROUP:onbeforeTaskExecute(From, Event, To, Task)
|
|||||||
if self:IsWaiting() then
|
if self:IsWaiting() then
|
||||||
-- Group is already waiting
|
-- Group is already waiting
|
||||||
else
|
else
|
||||||
-- Wait indefinately.
|
-- Wait indefinitely.
|
||||||
local alt=Mission.missionAltitude and UTILS.MetersToFeet(Mission.missionAltitude) or nil
|
local alt=Mission.missionAltitude and UTILS.MetersToFeet(Mission.missionAltitude) or nil
|
||||||
self:Wait(nil, alt)
|
self:Wait(nil, alt)
|
||||||
end
|
end
|
||||||
@ -6121,7 +6121,7 @@ function OPSGROUP:RouteToMission(mission, delay)
|
|||||||
|
|
||||||
local ingresscoord = mission:GetMissionIngressCoord()
|
local ingresscoord = mission:GetMissionIngressCoord()
|
||||||
|
|
||||||
if ingresscoord then
|
if ingresscoord and not self:IsWaiting() then
|
||||||
waypoint=FLIGHTGROUP.AddWaypoint(self, ingresscoord, SpeedToMission, uid, UTILS.MetersToFeet(ingresscoord.y or self.altitudeCruise), false)
|
waypoint=FLIGHTGROUP.AddWaypoint(self, ingresscoord, SpeedToMission, uid, UTILS.MetersToFeet(ingresscoord.y or self.altitudeCruise), false)
|
||||||
uid=waypoint.uid
|
uid=waypoint.uid
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user