#AIRBOSS, #UTILS

* Alitude to Altitude
* Deck height Nimitz class to 18.30m
This commit is contained in:
Applevangelist 2022-09-22 15:51:28 +02:00
commit 9780a65f09
2 changed files with 14 additions and 14 deletions

View File

@ -2766,9 +2766,9 @@ function AIRBOSS:SetRefuelAI( LowFuelThreshold )
return self return self
end 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 #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 -- @return #AIRBOSS self
function AIRBOSS:SetInitialMaxAlt( MaxAltitude ) function AIRBOSS:SetInitialMaxAlt( MaxAltitude )
self.initialmaxalt = UTILS.FeetToMeters( MaxAltitude or 1300 ) self.initialmaxalt = UTILS.FeetToMeters( MaxAltitude or 1300 )
@ -4268,7 +4268,7 @@ function AIRBOSS:_InitStennis()
-- Carrier Parameters. -- Carrier Parameters.
self.carrierparam.sterndist = -153 self.carrierparam.sterndist = -153
self.carrierparam.deckheight = 19.06 self.carrierparam.deckheight = 18.30
-- Total size of the carrier (approx as rectangle). -- Total size of the carrier (approx as rectangle).
self.carrierparam.totlength = 310 -- Wiki says 332.8 meters overall length. 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 -- Heading from carrier to flight group
local hdgto = cv:HeadingTo( fc ) 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 angels = math.random( 6, 10 )
local altitude = UTILS.FeetToMeters( angels * 1000 ) local altitude = UTILS.FeetToMeters( angels * 1000 )
@ -8913,7 +8913,7 @@ function AIRBOSS:_Initial( playerData )
-- Relative heading to carrier direction. -- Relative heading to carrier direction.
local relheading = self:_GetRelativeHeading( playerData.unit, false ) local relheading = self:_GetRelativeHeading( playerData.unit, false )
-- Alitude of player in feet. -- altitude of player in feet.
local altitude = playerData.unit:GetAltitude() local altitude = playerData.unit:GetAltitude()
-- Check if player is in zone and flying roughly in the right direction. -- Check if player is in zone and flying roughly in the right direction.
@ -11112,7 +11112,7 @@ function AIRBOSS:_Lineup( unit, runway )
return lineup return lineup
end 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 #AIRBOSS self
-- @param Wrapper.Unit#UNIT unit Aircraft unit. -- @param Wrapper.Unit#UNIT unit Aircraft unit.
-- @return #number Altitude in meters wrt carrier height. -- @return #number Altitude in meters wrt carrier height.
@ -14103,7 +14103,7 @@ end
--- Convert altitude from meters to angels (thousands of feet). --- Convert altitude from meters to angels (thousands of feet).
-- @param #AIRBOSS self -- @param #AIRBOSS self
-- @param alt Alitude in meters. -- @param alt altitude in meters.
-- @return #number Altitude in Anglels = thousands of feet using math.floor(). -- @return #number Altitude in Anglels = thousands of feet using math.floor().
function AIRBOSS:_GetAngels( alt ) function AIRBOSS:_GetAngels( alt )
@ -15415,7 +15415,7 @@ function AIRBOSS:_MarshalCallNewFinalBearing( FB )
end 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 #AIRBOSS self
-- @param #number hdg Heading in degrees. -- @param #number hdg Heading in degrees.
function AIRBOSS:_MarshalCallCarrierTurnTo( hdg ) function AIRBOSS:_MarshalCallCarrierTurnTo( hdg )
@ -15438,7 +15438,7 @@ function AIRBOSS:_MarshalCallCarrierTurnTo( hdg )
end 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 #AIRBOSS self
-- @param #string modex Tail number. -- @param #string modex Tail number.
-- @param #number nwaiting Number of flights already waiting. -- @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 ) self:RadioTransmission( self.MarshalRadio, call, nil, nil, nil, true )
end 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 #AIRBOSS self
function AIRBOSS:_MarshalCallRecoveryStart( case ) function AIRBOSS:_MarshalCallRecoveryStart( case )
@ -15504,12 +15504,12 @@ function AIRBOSS:_MarshalCallRecoveryStart( case )
end 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 #AIRBOSS self
-- @param #string modex Tail number. -- @param #string modex Tail number.
-- @param #number case Recovery case. -- @param #number case Recovery case.
-- @param #number brc Base recovery course. -- @param #number brc Base recovery course.
-- @param #number altitude Holding alitude. -- @param #number altitude Holding altitude.
-- @param #string charlie Charlie Time estimate. -- @param #string charlie Charlie Time estimate.
-- @param #number qfe Alitmeter inHg. -- @param #number qfe Alitmeter inHg.
function AIRBOSS:_MarshalCallArrived( modex, case, brc, altitude, charlie, qfe ) 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. -- Get Case I commence zone at three position.
local zoneThree = self:_GetZoneCommence( case, stack ) local zoneThree = self:_GetZoneCommence( case, stack )
-- Pattern alitude. -- Pattern altitude.
local patternalt = self:_GetMarshalAltitude( stack, case ) local patternalt = self:_GetMarshalAltitude( stack, case )
-- Flare and smoke at the ground. -- Flare and smoke at the ground.

View File

@ -489,7 +489,7 @@ UTILS.hPa2inHg = function( hPa )
return hPa * 0.0295299830714 return hPa * 0.0295299830714
end 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 knots Speed in knots.
-- @param #number altitude Altitude in feet -- @param #number altitude Altitude in feet
-- @return #number Corrected KIAS -- @return #number Corrected KIAS