mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge pull request #1578 from madmoney99/develop
Airboss update for wind over deck
This commit is contained in:
commit
83fd48e2f4
@ -11639,7 +11639,7 @@ end
|
|||||||
|
|
||||||
--- Get wind speed on carrier deck parallel and perpendicular to runway.
|
--- Get wind speed on carrier deck parallel and perpendicular to runway.
|
||||||
-- @param #AIRBOSS self
|
-- @param #AIRBOSS self
|
||||||
-- @param #number alt Altitude in meters. Default 50 m.
|
-- @param #number alt Altitude in meters. Default 15 m. (change made from 50m from Discord discussion from Sickdog)
|
||||||
-- @return #number Wind component parallel to runway im m/s.
|
-- @return #number Wind component parallel to runway im m/s.
|
||||||
-- @return #number Wind component perpendicular to runway in m/s.
|
-- @return #number Wind component perpendicular to runway in m/s.
|
||||||
-- @return #number Total wind strength in m/s.
|
-- @return #number Total wind strength in m/s.
|
||||||
@ -11662,7 +11662,7 @@ function AIRBOSS:GetWindOnDeck(alt)
|
|||||||
zc=UTILS.Rotate2D(zc, -self.carrierparam.rwyangle)
|
zc=UTILS.Rotate2D(zc, -self.carrierparam.rwyangle)
|
||||||
|
|
||||||
-- Wind (from) vector
|
-- Wind (from) vector
|
||||||
local vw=cv:GetWindWithTurbulenceVec3(alt or 50)
|
local vw=cv:GetWindWithTurbulenceVec3(alt or 15)
|
||||||
|
|
||||||
-- Total wind velocity vector.
|
-- Total wind velocity vector.
|
||||||
-- Carrier velocity has to be negative. If carrier drives in the direction the wind is blowing from, we have less wind in total.
|
-- Carrier velocity has to be negative. If carrier drives in the direction the wind is blowing from, we have less wind in total.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user