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.

BlackBox Airbus

Featured Replies

  • 1 month later...

Hi Petraeus

 

That looks a very comprehensive list of variables. As I read it only the first 2 blocks are read only. The rest appear to be read/write. You can use the Linda tracer to test reading and setting them to test this. I would then suggest that the Aerosoft Airbus module could be adapted to implement the same for Blackbox.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

Hi ScotFlieger

 

All the variables are read-only except for BB_XML_EVENT. Writing different codes to BB_XML_EVENT causes the various actions to take place, and these are intended to be triggered by the values set in the corresponding variable. As such the syntax is rather different from that in the current Aerosoft Airbus code.

 

If someone could write an example of 'test a variable / set corresponding code in BB_XML_EVENT' code, I could have a go at replicating it, but my LUA coding knowledge is limited.

Petraeus

 

Have you sought clarification from Black Box as to why only BB_XML_EVENT is read/write and how it is surpassed to be used?

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

No I haven't. It's just my reading of:

 

All variables are FSIM L Vars and should be accessed as follows examples      

READ (L:BB_ECAM_LED_BLEED) 1 == as a comparison to turn on a hardware LED etc  

WRITE  0x1C016 (>L:BB_XML_EVENT)   

with 0x1C016 being the event code to send ( See next sheet for full events list )

   

The actual codes to be written to BB_XML_EVENT are on the 'Full Events List' page of the spreadsheet - I hadn't spotted that first time round.

Petraeus

 

Hi Petraeus

 

I missed that too.  What you need to do is to embedded the L:BB_XML_EVENT inside functions in LINDA to hide this strange write method.  I would start by using the _lib_user.lau to test some simple reads and writes using the method given by Blackbox (e.g. reading and setting a light such as KEY_BB_OH_SW_STROBE_INC (0x1d0C0) and KEY_BB_OH_SW_STROBE_DEC (0x1d0C1)).

 

You need to write a function that switches the strobe lights on and off.  It will look a bit like this but you will need to experiment:

 

function BB_OH_SW_STROBE_on ()

   ipc.writeLvar ('L:BB_XML_EVENT', 0x1d0C0)

end

 

function BB_OH_SW_STROBE_off ()

  ipc.writeLvar (L:BB_XML_EVENT', 0x1d0C1)

end

 

You can test these by allocating these functions to 2 convenient buttons on your joystick.

 

Once you have the method working, I suggest you start by making a copy of the Aerosoft Airbus X folder in \modules\linda\aircraft and renaming it to Blackbox Airbus.  You can then use LINDA's editor to incorporate what you have learnt into the functions contained in \modules\linda\aircraft\actions/lua.  It already implements most of the switches in the cockpit. 

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

  • Author

Thanks - I will have a go at this when I get time.

Petraeus

 

  • Author

Yes, that worked - now for the other 100+ variables!

Petraeus

 

Good news Petraeus.

 

I had a thought off how to make your task easier to read.  I would create a complete list of variables using the BB_ name and assign the appropriate hex code to each one.

 

eg. Lvar_BB_OH_SW_STROBE_on = 0x1d0C0

 

You should be able to cut and paste this from the spreadsheet. Then you can refer to the variable in your code and know that if it reads in english then you have the correct value for the BBB_XML_EVENT.

 

Remember LINDA/Lua is case sensitive.

Andrew Gransden

Scotland, UK

LINDA Support/Developer - VATSIM and BAVirtual - Airbus Flyer

i7 1TB SSD GTX980 - FSX/P3D - Aerosoft Airbus A318/A319/A320/A321 - FS2Crew

Hi Patraeus

 

Would be delighted if you would kindly share any module for the Black Box Airbus as I really enjoyed flying them but am unable to use them with my VRinsight MCP 

 

Thanks

 

Bruce

Create an account or sign in to comment

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.