Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Duke B60 Windshield heat.

Featured Replies

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.