mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
RAT v2
This commit is contained in:
@@ -468,7 +468,7 @@ RAT.id="RAT | "
|
|||||||
|
|
||||||
--- RAT version.
|
--- RAT version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
RAT.version="1.0.0"
|
RAT.version="2.0.0"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@@ -754,9 +754,9 @@ function RAT:_CheckConsistency()
|
|||||||
|
|
||||||
-- What can go wrong?
|
-- What can go wrong?
|
||||||
-- Only zones but not takeoff air == > Enable takeoff air.
|
-- Only zones but not takeoff air == > Enable takeoff air.
|
||||||
if self.Ndeparture_Airports==0 and self.takeoff~=RAT.wp.air then
|
if self.Ndeparture_Zones>0 and self.takeoff~=RAT.wp.air then
|
||||||
self.takeoff=RAT.wp.air
|
self.takeoff=RAT.wp.air
|
||||||
env.error(RAT.id.."Only zones (no airports) defined as departure and takeoff is NOT set to air. Enabling air start!")
|
env.error(RAT.id.."At least one zone defined as departure and takeoff is NOT set to air. Enabling air start!")
|
||||||
end
|
end
|
||||||
-- No airport and no zone specified.
|
-- No airport and no zone specified.
|
||||||
if self.Ndeparture_Airports==0 and self.Ndeparture_Zone==0 then
|
if self.Ndeparture_Airports==0 and self.Ndeparture_Zone==0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user