Jump to content
Sign in to follow this  
kenny584

Duke B60 Windshield heat.

Recommended Posts

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 by kenny584
typo.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...