mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Ops
This commit is contained in:
@@ -2452,7 +2452,7 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
---
|
||||
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
self:__FlightParking(-0.5)
|
||||
self:__Parking(-0.5)
|
||||
end
|
||||
|
||||
elseif newstatus==OPSGROUP.ElementStatus.ENGINEON then
|
||||
@@ -2468,7 +2468,7 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
---
|
||||
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
self:__FlightTaxiing(-0.5)
|
||||
self:__Taxiing(-0.5)
|
||||
end
|
||||
|
||||
elseif newstatus==OPSGROUP.ElementStatus.TAKEOFF then
|
||||
@@ -2478,7 +2478,7 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
-- Trigger takeoff event. Also triggers airborne event.
|
||||
self:__FlightTakeoff(-0.5, airbase)
|
||||
self:__Takeoff(-0.5, airbase)
|
||||
end
|
||||
|
||||
elseif newstatus==OPSGROUP.ElementStatus.AIRBORNE then
|
||||
@@ -2487,7 +2487,7 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
---
|
||||
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
self:__FlightAirborne(-0.5)
|
||||
self:__Airborne(-0.5)
|
||||
end
|
||||
|
||||
elseif newstatus==OPSGROUP.ElementStatus.LANDED then
|
||||
@@ -2496,7 +2496,7 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
---
|
||||
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
self:FlightLanded(airbase)
|
||||
self:Landed(airbase)
|
||||
end
|
||||
|
||||
elseif newstatus==OPSGROUP.ElementStatus.ARRIVED then
|
||||
@@ -2507,10 +2507,10 @@ function OPSGROUP:_UpdateStatus(element, newstatus, airbase)
|
||||
if self:_AllSimilarStatus(newstatus) then
|
||||
|
||||
if self:IsLanded() then
|
||||
self:FlightArrived()
|
||||
self:Arrived()
|
||||
elseif self:IsAirborne() then
|
||||
self:FlightLanded()
|
||||
self:FlightArrived()
|
||||
self:Landed()
|
||||
self:Arrived()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user