mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
update vect tile
This commit is contained in:
parent
57c90a15cb
commit
bdce2f4462
@ -1569,8 +1569,8 @@ function ExportScript.HsiReadouts(mainPanelDevice)
|
|||||||
)
|
)
|
||||||
|
|
||||||
ExportScript.Tools.SendData(8024, vectSelect .. 'VECT.'
|
ExportScript.Tools.SendData(8024, vectSelect .. 'VECT.'
|
||||||
.. '\n' .. distSelect .. 'BRG ' .. hsiBearingReadout
|
.. '\n' .. brngSelect .. 'BRG ' .. hsiBearingReadout
|
||||||
.. '\n' .. brngSelect .. 'DST ' .. hsiDistVectReadout
|
.. '\n' .. distSelect .. 'DST ' .. hsiDistVectReadout
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2223,7 +2223,7 @@ function ExportScript.Radios(mainPanelDevice)
|
|||||||
|
|
||||||
local uhfChannel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(348) * 20, 0)
|
local uhfChannel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(348) * 20, 0)
|
||||||
-- because the knob is offset, we have to do some maths
|
-- because the knob is offset, we have to do some maths
|
||||||
uhfChannel = uhfChannel + 6
|
uhfChannel = uhfChannel + 1
|
||||||
if uhfChannel > 20 then -- 20 is the max channel number
|
if uhfChannel > 20 then -- 20 is the max channel number
|
||||||
uhfChannel = uhfChannel - 20
|
uhfChannel = uhfChannel - 20
|
||||||
end
|
end
|
||||||
@ -2236,7 +2236,7 @@ function ExportScript.Radios(mainPanelDevice)
|
|||||||
|
|
||||||
local vuhfChannel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(283) * 20, 0)
|
local vuhfChannel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(283) * 20, 0)
|
||||||
-- because the knob is offset, we have to do some maths
|
-- because the knob is offset, we have to do some maths
|
||||||
vuhfChannel = vuhfChannel + 6
|
vuhfChannel = vuhfChannel + 1
|
||||||
if vuhfChannel > 20 then -- 20 is the max channel number
|
if vuhfChannel > 20 then -- 20 is the max channel number
|
||||||
vuhfChannel = vuhfChannel - 20
|
vuhfChannel = vuhfChannel - 20
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user