December 27, 20214 yr 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
December 27, 20214 yr 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 December 27, 20214 yr 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
December 27, 20214 yr 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...
December 27, 20214 yr 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!
December 27, 20214 yr 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
December 27, 20214 yr 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 December 27, 20214 yr by clarklidbury clarity
December 27, 20214 yr 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
December 27, 20214 yr 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.