mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update Airboss.lua
- Adjust into wind angle
This commit is contained in:
parent
1362fe9019
commit
5aa8338c59
@ -11592,14 +11592,8 @@ function AIRBOSS:GetHeadingIntoWind( magnetic, coord )
|
|||||||
-- Get direction the wind is blowing from. This is where we want to go.
|
-- Get direction the wind is blowing from. This is where we want to go.
|
||||||
local windfrom, vwind = self:GetWind( nil, nil, coord )
|
local windfrom, vwind = self:GetWind( nil, nil, coord )
|
||||||
|
|
||||||
--self:T("windfrom="..windfrom.." vwind="..vwind)
|
|
||||||
|
|
||||||
vwind = vwind + adjustDegreesForWindSpeed(vwind)
|
|
||||||
|
|
||||||
--self:T("windfrom="..windfrom.." (c)vwind="..vwind)
|
|
||||||
|
|
||||||
-- Actually, we want the runway in the wind.
|
-- Actually, we want the runway in the wind.
|
||||||
local intowind = windfrom - self.carrierparam.rwyangle
|
local intowind = windfrom - self.carrierparam.rwyangle + adjustDegreesForWindSpeed(vwind)
|
||||||
|
|
||||||
-- If no wind, take current heading.
|
-- If no wind, take current heading.
|
||||||
if vwind < 0.1 then
|
if vwind < 0.1 then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user