mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
RAT
- FLIGHTCONTROL - RAT ATC
This commit is contained in:
parent
879ea847e9
commit
ef8c71d27c
File diff suppressed because it is too large
Load Diff
@ -1063,9 +1063,10 @@ function FLIGHTCONTROL:onafterStatusUpdate()
|
|||||||
-- Check if runway was repaired.
|
-- Check if runway was repaired.
|
||||||
if self:IsRunwayOperational()==false then
|
if self:IsRunwayOperational()==false then
|
||||||
local Trepair=self:GetRunwayRepairtime()
|
local Trepair=self:GetRunwayRepairtime()
|
||||||
self:I(self.lid..string.format("Runway still destroyed! Will be repaired in %d sec", Trepair))
|
|
||||||
if Trepair==0 then
|
if Trepair==0 then
|
||||||
self:RunwayRepaired()
|
self:RunwayRepaired()
|
||||||
|
else
|
||||||
|
self:I(self.lid..string.format("Runway still destroyed! Will be repaired in %d sec", Trepair))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1835,7 +1836,7 @@ function FLIGHTCONTROL:_GetNextFightParking()
|
|||||||
local text="Parking flights:"
|
local text="Parking flights:"
|
||||||
for i,_flight in pairs(Qparking) do
|
for i,_flight in pairs(Qparking) do
|
||||||
local flight=_flight --Ops.FlightGroup#FLIGHTGROUP
|
local flight=_flight --Ops.FlightGroup#FLIGHTGROUP
|
||||||
text=text..string.format("\n[%d] %s [%s], state=%s [%s]: Tparking=%.1f sec", i, flight.groupname, flight.actype, flight:GetState(), self:GetFlightStatus(flight), flight:GetParkingTime())
|
text=text..string.format("\n[%d] %s [%s], state=%s [%s]: Tparking=%.1f sec", i, flight.groupname, tostring(flight.actype), flight:GetState(), self:GetFlightStatus(flight), flight:GetParkingTime())
|
||||||
end
|
end
|
||||||
self:I(self.lid..text)
|
self:I(self.lid..text)
|
||||||
end
|
end
|
||||||
@ -2131,7 +2132,7 @@ function FLIGHTCONTROL:_InitParkingSpots()
|
|||||||
|
|
||||||
local isalive=unit:IsAlive()
|
local isalive=unit:IsAlive()
|
||||||
|
|
||||||
--env.info(string.format("FF parking spot %d is occupied by unit %s alive=%s", spot.TerminalID, unitname, tostring(isalive)))
|
self:T2(self.lid..string.format("FF parking spot %d is occupied by unit %s alive=%s", spot.TerminalID, unitname, tostring(isalive)))
|
||||||
|
|
||||||
if isalive then
|
if isalive then
|
||||||
|
|
||||||
|
|||||||
@ -786,6 +786,7 @@ function FLIGHTGROUP:SetReadyForTakeoff(ReadyTO, Delay)
|
|||||||
if Delay and Delay>0 then
|
if Delay and Delay>0 then
|
||||||
self:ScheduleOnce(Delay, FLIGHTGROUP.SetReadyForTakeoff, self, ReadyTO, 0)
|
self:ScheduleOnce(Delay, FLIGHTGROUP.SetReadyForTakeoff, self, ReadyTO, 0)
|
||||||
else
|
else
|
||||||
|
self:T(self.lid.."Set Ready for Takeoff switch for flightcontrol")
|
||||||
self.isReadyTO=ReadyTO
|
self.isReadyTO=ReadyTO
|
||||||
end
|
end
|
||||||
return self
|
return self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user