mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#AIRBOSS, #UTILS
* Alitude to Altitude * Deck height Nimitz class to 18.30m
This commit is contained in:
commit
9780a65f09
@ -2766,9 +2766,9 @@ function AIRBOSS:SetRefuelAI( LowFuelThreshold )
|
||||
return self
|
||||
end
|
||||
|
||||
--- Set max alitude to register flights in the initial zone. Aircraft above this altitude will not be registerered.
|
||||
--- Set max altitude to register flights in the initial zone. Aircraft above this altitude will not be registerered.
|
||||
-- @param #AIRBOSS self
|
||||
-- @param #number MaxAltitude Max alitude in feet. Default 1300 ft.
|
||||
-- @param #number MaxAltitude Max altitude in feet. Default 1300 ft.
|
||||
-- @return #AIRBOSS self
|
||||
function AIRBOSS:SetInitialMaxAlt( MaxAltitude )
|
||||
self.initialmaxalt = UTILS.FeetToMeters( MaxAltitude or 1300 )
|
||||
@ -4268,7 +4268,7 @@ function AIRBOSS:_InitStennis()
|
||||
|
||||
-- Carrier Parameters.
|
||||
self.carrierparam.sterndist = -153
|
||||
self.carrierparam.deckheight = 19.06
|
||||
self.carrierparam.deckheight = 18.30
|
||||
|
||||
-- Total size of the carrier (approx as rectangle).
|
||||
self.carrierparam.totlength = 310 -- Wiki says 332.8 meters overall length.
|
||||
@ -5913,7 +5913,7 @@ function AIRBOSS:_WaitAI( flight, respawn )
|
||||
-- Heading from carrier to flight group
|
||||
local hdgto = cv:HeadingTo( fc )
|
||||
|
||||
-- Holding alitude between angels 6 and 10 (random).
|
||||
-- Holding altitude between angels 6 and 10 (random).
|
||||
local angels = math.random( 6, 10 )
|
||||
local altitude = UTILS.FeetToMeters( angels * 1000 )
|
||||
|
||||
@ -8913,7 +8913,7 @@ function AIRBOSS:_Initial( playerData )
|
||||
-- Relative heading to carrier direction.
|
||||
local relheading = self:_GetRelativeHeading( playerData.unit, false )
|
||||
|
||||
-- Alitude of player in feet.
|
||||
-- altitude of player in feet.
|
||||
local altitude = playerData.unit:GetAltitude()
|
||||
|
||||
-- Check if player is in zone and flying roughly in the right direction.
|
||||
@ -11112,7 +11112,7 @@ function AIRBOSS:_Lineup( unit, runway )
|
||||
return lineup
|
||||
end
|
||||
|
||||
--- Get alitude of aircraft wrt carrier deck. Should give zero when the aircraft touched down.
|
||||
--- Get altitude of aircraft wrt carrier deck. Should give zero when the aircraft touched down.
|
||||
-- @param #AIRBOSS self
|
||||
-- @param Wrapper.Unit#UNIT unit Aircraft unit.
|
||||
-- @return #number Altitude in meters wrt carrier height.
|
||||
@ -14103,7 +14103,7 @@ end
|
||||
|
||||
--- Convert altitude from meters to angels (thousands of feet).
|
||||
-- @param #AIRBOSS self
|
||||
-- @param alt Alitude in meters.
|
||||
-- @param alt altitude in meters.
|
||||
-- @return #number Altitude in Anglels = thousands of feet using math.floor().
|
||||
function AIRBOSS:_GetAngels( alt )
|
||||
|
||||
@ -15415,7 +15415,7 @@ function AIRBOSS:_MarshalCallNewFinalBearing( FB )
|
||||
|
||||
end
|
||||
|
||||
--- Compile a radio call when Marshal tells a flight the holding alitude.
|
||||
--- Compile a radio call when Marshal tells a flight the holding altitude.
|
||||
-- @param #AIRBOSS self
|
||||
-- @param #number hdg Heading in degrees.
|
||||
function AIRBOSS:_MarshalCallCarrierTurnTo( hdg )
|
||||
@ -15438,7 +15438,7 @@ function AIRBOSS:_MarshalCallCarrierTurnTo( hdg )
|
||||
|
||||
end
|
||||
|
||||
--- Compile a radio call when Marshal tells a flight the holding alitude.
|
||||
--- Compile a radio call when Marshal tells a flight the holding altitude.
|
||||
-- @param #AIRBOSS self
|
||||
-- @param #string modex Tail number.
|
||||
-- @param #number nwaiting Number of flights already waiting.
|
||||
@ -15464,7 +15464,7 @@ function AIRBOSS:_MarshalCallStackFull( modex, nwaiting )
|
||||
self:RadioTransmission( self.MarshalRadio, call, nil, nil, nil, true )
|
||||
end
|
||||
|
||||
--- Compile a radio call when Marshal tells a flight the holding alitude.
|
||||
--- Compile a radio call when Marshal tells a flight the holding altitude.
|
||||
-- @param #AIRBOSS self
|
||||
function AIRBOSS:_MarshalCallRecoveryStart( case )
|
||||
|
||||
@ -15504,12 +15504,12 @@ function AIRBOSS:_MarshalCallRecoveryStart( case )
|
||||
|
||||
end
|
||||
|
||||
--- Compile a radio call when Marshal tells a flight the holding alitude.
|
||||
--- Compile a radio call when Marshal tells a flight the holding altitude.
|
||||
-- @param #AIRBOSS self
|
||||
-- @param #string modex Tail number.
|
||||
-- @param #number case Recovery case.
|
||||
-- @param #number brc Base recovery course.
|
||||
-- @param #number altitude Holding alitude.
|
||||
-- @param #number altitude Holding altitude.
|
||||
-- @param #string charlie Charlie Time estimate.
|
||||
-- @param #number qfe Alitmeter inHg.
|
||||
function AIRBOSS:_MarshalCallArrived( modex, case, brc, altitude, charlie, qfe )
|
||||
@ -17362,7 +17362,7 @@ function AIRBOSS:_MarkMarshalZone( _unitName, flare )
|
||||
-- Get Case I commence zone at three position.
|
||||
local zoneThree = self:_GetZoneCommence( case, stack )
|
||||
|
||||
-- Pattern alitude.
|
||||
-- Pattern altitude.
|
||||
local patternalt = self:_GetMarshalAltitude( stack, case )
|
||||
|
||||
-- Flare and smoke at the ground.
|
||||
|
||||
@ -489,7 +489,7 @@ UTILS.hPa2inHg = function( hPa )
|
||||
return hPa * 0.0295299830714
|
||||
end
|
||||
|
||||
--- Convert knots to alitude corrected KIAS, e.g. for tankers.
|
||||
--- Convert knots to altitude corrected KIAS, e.g. for tankers.
|
||||
-- @param #number knots Speed in knots.
|
||||
-- @param #number altitude Altitude in feet
|
||||
-- @return #number Corrected KIAS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user