From d3b9c0405d2d5d7dfe36919eb5e0b8049cf7c6b8 Mon Sep 17 00:00:00 2001 From: mcmicha Date: Wed, 8 Mar 2017 23:25:12 +0100 Subject: [PATCH] Use the ExportScript.Tools.negate() function to negate the values. --- Scripts/DCS-ExportScript/ExportsModules/MiG-15bis.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Scripts/DCS-ExportScript/ExportsModules/MiG-15bis.lua b/Scripts/DCS-ExportScript/ExportsModules/MiG-15bis.lua index 0da0e7b..3efa9fb 100644 --- a/Scripts/DCS-ExportScript/ExportsModules/MiG-15bis.lua +++ b/Scripts/DCS-ExportScript/ExportsModules/MiG-15bis.lua @@ -292,9 +292,7 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice) ]] -- AGK_47B_sideslip negate --[8] = "%.4f", -- AGK_47B_sideslip {-1.0, 1.0} - local lAGK_47B_sideslip = mainPanelDevice:get_argument_value(8) - lAGK_47B_sideslip = (lAGK_47B_sideslip > 0.0 and (0 - lAGK_47B_sideslip) or (lAGK_47B_sideslip - lAGK_47B_sideslip - lAGK_47B_sideslip)) -- negate - ExportScript.Tools.SendData(8, string.format("%.4f", lAGK_47B_sideslip)) -- AGK_47B_sideslip + ExportScript.Tools.SendData(8, string.format("%.4f", ExportScript.Tools.negate(mainPanelDevice:get_argument_value(8)))) -- negate end function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)