October 22, 20196 yr Hi Folks. After a bit of head scratching and more than a few user errors, I have finally managed to make use of the supplied module for the RealAir Duke albeit the turbine version and I am using the piston V2. I am excited because I now have the Invertor toggle working from my Yoke. Believe me, this is a big step forward for me as I am not really a techie. It take me a few tries before I understand things!! I have made an attempt to use the tracer to locate the Lvar for the windshield heat switch. In the real Duke this acts as another invertor. I see the function and have made a new short code in the user.lua file. However, it does not work. I changed the zero and one numbers around because that is the way it looked to be in the tracer for the ON and OFF positions. Here is my entire user.lua file:- -- Dummy user functions file -- =========================== -- This file is loaded right after main actions.lua script loaded. -- You can use this file to: -- 1. Override any functions or settings in main script -- 2. Execute any desired startup sequence for this aircraft (i.e. your own c&d state macro) -- 3. ... use your imagination -- This file will not be replaced on the aircraft module update, so all of your modifications -- will remain active. Best practice from this moment is DO NOT MAKE ANY CHANGES in original -- actions.lua file. Make all the modifications HERE. -- insert your code below here: -- module 1.1a_KG -- October 2019 -- ################################ -- RealAir Duke Turbine specific functions -- ################################ -- ## Electrics ##################################### function DukeT_Windshield_Heat_on () ipc.writeLvar("L:Duke_Wshield_Heat", (1) DspShow("Heat", "on") end function DukeT_Windshield_Heat_off () ipc.writeLvar("L:Duke_Wshield_Heat", (0) DspShow("Heat", "off") end -- Just a message in console _log("[USER] User's modifications script is loaded...") Please treat me gently as I am a newbie at this...but could someone tell me what I have done wrong and perhaps also what the code should be to make this work? Regards...Ken. Edited October 22, 20196 yr by kenny584 typo.
Archived
This topic is now archived and is closed to further replies.