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.

Switch States on Electrical Panel (747v3SDK)

Featured Replies

Hi everyone,

I am coding some LUA scripts to interface the PMDG 747 v3 (which I purchased last week) to my hardware, using the published SDK and FSUIPC offsets. I have a question regarding replicating the various states of the electrical panel. I will illustrate the problem with some screenshots and the associated state variable (FSUIPC offset) concerning the Battery Switch:

(1) Cold and Dark: Battery switch is BLANK
(FSUIPC offset, type, name)
("644C", "UB", "ELEC_Battery_Sw_ON") = 0

36284101051_2290f31dba_o.jpg

(2) Here I have the engines running: Battery Switch displays "ON"
("644C", "UB", "ELEC_Battery_Sw_ON") = 1

36252418252_85b9ab159d_o.jpg


(3) Here I have switched off the Battery and all the Bus Ties and Gen Cont 1: Battery Switch displays "OFF"
("644C", "UB", "ELEC_Battery_Sw_ON") = 0

35613022303_244a468138_o.jpg

The problem is that the published offsets allow for only 2 states of the battery switch, but there are 3 possible outcomes = ON/OFF/BLANK. How is one to determine programmatically  when to get the Battery Switch to display a BLANK? I tried using the A:var (A:CIRCUIT AVIONICS ON, bool) but to no avail.

The Battery Switch is only one instance of the problem I am facing. Almost all of the other switches on the Electrical panel have this third state which does not appear to be determined by a published offset.

Thanks,

Edited by ckovoor

Chakko Kovoor

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.