Utils - added Convert knots to alitude corrected KIAS

Added - Convert knots to alitude corrected KIAS, e.g. for tankers.
This commit is contained in:
Applevangelist 2021-03-22 11:47:39 +01:00 committed by GitHub
parent 3c6089884e
commit 2e342e4341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -408,6 +408,14 @@ UTILS.hPa2inHg = function( hPa )
return hPa * 0.0295299830714
end
--- Convert knots to alitude corrected KIAS, e.g. for tankers.
-- @param #number knots Speed in knots.
-- @param #number altitude Altitude in feet
-- @return #number Corrected KIAS
UTILS.KnotsToAltKIAS = function( knots, altitude )
return (knots * 0.018 * (altitude / 1000)) + knots
end
--- Convert pressure from hecto Pascal (hPa) to millimeters of mercury (mmHg).
-- @param #number hPa Pressure in hPa.
-- @return #number Pressure in mmHg.
@ -1457,4 +1465,4 @@ function UTILS.GetOSTime()
end
return nil
end
end