- Get magnetic variation from DCS if require is available
- Added default magvar for Kola map
This commit is contained in:
Frank
2024-05-11 09:49:59 +02:00
parent d0728afee7
commit 433a66d530
2 changed files with 12 additions and 1 deletions

View File

@@ -3654,6 +3654,12 @@ function AIRBOSS:onafterStatus( From, Event, To )
local pos = self:GetCoordinate()
local speed = self.carrier:GetVelocityKNOTS()
-- Update magnetic variation if we can get it from DCS.
if require then
self.magvar=pos:GetMagneticDeclination()
--env.info(string.format("FF magvar=%.1f", self.magvar))
end
-- Check water is ahead.
local collision = false -- self:_CheckCollisionCoord(pos:Translate(self.collisiondist, hdg))