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.

Fuel Computer Hoskins CFS2000a binding via spad.next

Featured Replies

hello and a nice sunday everyone,
I am currently trying to bind all buttons and switches in the 414 via spad.next. The only thing left missing and I cant get to work is the 3 pushbuttons on the cfs2000a fuel computer.
There are LVARS for Set-, Function- and Test-button, but they are labeled as "cfs1000a" while the 414 has a cfs2000a (?). However, the cfs1000 a LVARS seem to do something for the cfs2000a. For example, in MSFS dev mode behaviour debug, it shows clicking the "function" button with the mouse changes GENERIC:LVAR_CFS1000a_FUNCTION from 1 to 0. There are also GENERIC:LVAR_CFS1000aFUNCTION_Inc GENERIC:LVAR_CFS1000a_FUNCTION_Dec and GENERIC:LVAR_CFS1000aFUNCTION_Toggle shown in behaviour debug. Thats when I thought maybe I can set up a custom event in spad.next,for example K:GENERIC:LVAR_CFS1000a_FUNCTION_Toggle but it doesnt seem to work... what am I missing here? I really appreciate any help. Have a nice one!

21 hours ago, flusiandy said:

example K:GENERIC:LVAR_CFS1000a_FUNCTION_Toggle but it doesnt seem to work... what am I missing here?

I think what you are missing is there are Hvars involved as well as Lvars. Here's some info I dug up quite a while ago when developing some FSUIPC Lua scripts for the fuel computer. Haven't looked at this for a long time though.

To activate a CFS button you have to use both an Lvar AND an Hvar.  So, for example, to toggle the CFS test button you have to:
    1. Write a 1 to the Lvar  L:GENERIC_CFS1000A_TEST and also "activate" the Hvar H:GENERIC_CFS1000A_TEST
    2. Then to complete the toggle action, you have to write a 0 to the Lvar L:GENERIC_CFS1000A_TEST and then again "activate" the Hvar H:GENERIC_CFS1000A_TEST.

The other CFS buttons are accessed in the same way.
The entries for the CFS buttons look like this:

H:GENERIC_CFS1000A_TEST
H:GENERIC_CFS1000A_FUNCTION
H:GENERIC_CFS1000A_SET

Al

Edited by ark

  • Author

Thank you very much, confirm it works perfectly! I salute you.

  • Author

Theres one thing I forgot: the cabin and pedestral lights... I cant activate for example LVAR:LIGHTING_CABIN_1. ... I tried with K: and H: events but to no avail... guess Im still a newbie in spad after all 😆maybe Im lucky and you also know what the problem is here 🙈

3 hours ago, flusiandy said:

Theres one thing I forgot: the cabin and pedestral lights... I cant activate for example LVAR:LIGHTING_CABIN_1. ... I tried with K: and H: events but to no avail... guess Im still a newbie in spad after all 😆maybe Im lucky and you also know what the problem is here 🙈

This lua script will toggle the panel lights on and off by controlling the master panel light switch, as shown by the arrow, based on the existing settings of the other light slider switches.

          panel_master_light_sw = ipc.readLvar("L:GENERIC_ELECTRICAL_Panel_Master")
          if panel_master_light_sw == 0 then
             ipc.writeLvar("L:GENERIC_ELECTRICAL_Panel_Master", 1)      --lights on, move switch
            ipc.control(67073, 5, 1)     --Electrical Bus to Bus Connection Toggle, Bus5 to Bus1
           else
             ipc.writeLvar("L:GENERIC_ELECTRICAL_Panel_Master", 0)       --lights off
             ipc.control(67073, 5, 1)
          end

spacer.png

Al

Edited by ark

  • Author

Wow, now things start to get overwhelming 🤣 But I somehow managed to get the panel lights working with the GENERIC_ELECTRICAL_PANEL_MASTER and Bus Connection on:5 events. Might look into lua scripts later, I have heard about it but honestly have no clue, there is not much information to be found about that topic. However, thank you very much for your kind help!

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.