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.

MCP Boeing combo - User buttons

Featured Replies

Hi all,

I am making a module from scratch and am having trouble setting the MCP 2 boeing unit to NOT send default commands when the "user" buttons are pressed. These are the first 5 buttons on the top row above the com/nav display. I have them assigned to LUA functions, but when pressed they still send default FSX commands. I am sure I am missing something simple. The "Mode switchers" can be assigned and work fine fyi

 

thanks!

 

Clark

hi Clark

Your report confuses me. The bottom row of 5 buttons on the radio panel always apply the default COM/NAV/ADF/DME/TCN functions. These are hard coded but you can apply an additional function to each where specific aircraft require extra actions.

The top row of 8 buttons can be freely assigned as required by the user. Normally, the right 3 buttons are set to change the modes for EFIS, MCP and USER sub panels.

Edited by ScotFlieger

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

Sorry for the confusion and thanks for the reply!

I am not referring to the hard coded bottom row, (COM and NAV controls).

I am referring to the top row, specifically the first five buttons. In Linda I have the first buttons set to a function inside my actions file. It is windshield heat off (for context). When I right click on the function in Linda it sends the function to the sim and it responds. But when I actually press the physical hardware button, instead it sends the command which appears to be a default FSX command to turn the Panel lights on or off. In addition, the MCP flashes a text on the screen to indicate Panel Lights ON/OFF. The Lua function is not called. Very strange. Maybe there is a conflict somewhere else? This doesn't happen in other modules I have downloaded, so i think its something in the module I have created from scratch? I wonder why the sim is receiving the wrong command. I do not have any Vrinsight software open... I shall mess around more, but it sounds like I haven't missed something obvious...

  • Author

You know what Andrew? Suddenly it stopped doing it. All I did was reload the LUA engine as part of troubleshooting.... No idea??? Thanks anyway. Now it functions as expected!

I am not sure what was happening but I’m pleased that you have it sorted. As I work I am constantly reloading the LUA engine (code) particularly when I make a new assignment. 

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

Quick question though. Do you have any tips on writing a function to increase heading turn speed? So the addon I am messing with uses the default FSX command to turn the heading bug. Easy enough. But then it doesn't use the default FSX system to DISPLAY heading. So in order to get the MCP to work here is the function I wrote (ps I am a pilot not a code writer lol!)

function CS_AP_HDG_inc ()
    ipc.control(65879,1) --- sends a default heading increase to the sim
    CS_hdg = ipc.readLvar("L:G03_002_IND") --- reads the addons HDG bug from the sim into a local variable
    CS_hdg_new = CS_hdg + 1 -- creates the new value to display
    ipc.sleep(100)
    DspHDG(CS_hdg_new) --- write new value to the Vrinsight MCP display
end

works fine but I cant figure out how to use it for a fast (eg ++) mode. Any thoughts? I couldn't find an ipc.control value that iterates thhe heading faster (10deg increments perhaps). I am aware of the inbuilt one in Linda but how do I call it? or the FSUIPC one? Sorry if this makes zero sense haha!

 

Thank you!

 

Edited by clarklidbury
clarity

For the incfast (++) and decfast (—) functions where you are calling a control, we normally create a loop of 5 or 10 (eg. for/next). It can take some experimentation to get the correct increment or speed.  You can check other modules to see how this done. I suggest the FSLabs A3XX as it is similar.

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

Hm OK thanks thats what I thought it might be... I don't own the FSlabs airbus but I might peak at the code as you suggested. Thank you!

 

Clark

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.