Jump to content

DA Cheyenne module WIP


eisenapferd

Recommended Posts

Hello Linda guys,

 

I am new in this forum and just tried to find out how to build the functions within the DA Piper Cheyenne because I want to build a hardware panel and the most clickspots in the overhead panel are toggel switches.

So I tried to find some easy information how to build a module for LINDA.

But I failed with my search.

 

And the next problem is the bad search possebilitys here in the forum.

 

So I just tried to program a bit with looking in the existing modules.

 

Is this the right place to post some files when they are note ready yet?

 

I have just put in the nessecary functions for the overhead, but I could continue it if I could get some further information.

 

In my opinion it seems to be not too complicated but in the other modules there are many functions I dont understand. I only used the "ipc.writeLvar" command an copyed the functions from the logfile.

 

I wonder if there would be a chance to get a "script wizard" wich could add the functions trom the "LINDA goes huntig" page, just like FSUIPC macro collecting.

 

Next problem: I have to find out how to upload a file...

 

Please help me to go further...

 

/Hendrik/

 

 

 

 

Link to comment
Share on other sites

Hi Hendrik

 

Welcome to the LINDA world. You are in the right place for the help you are seeking. I cannot guarantee that we can help you with all the answers you are seeking but we will try.

 

I assume from what you have said that you are able to reading the switch positions in the overhead panels you are trying to interface with.  You mentioned that you were able to do this using the Tracer function.  From this starting point, I would suggest the following.

 

You need a specific LUA file in \FSX\Modules\linda\aircrafts\ with the extension .lua.  A good starting point is to use an existing aircraft file as a starting point.  These are a great source of the type of code you need to read and write various values as FSX or FSUIPC variables.  You will need to write a short function to read and action each system function you wish to simulate.  You will see plenty of examples of setting, resetting and toggling particular values.  These include the ipc.writeLvar and ipc.readLvar functions you identify.

 

LINDA itself is designed to work with a number of commercial joysticks and throttles as well as the VRInsight original and Boeing MCP Combo panels.  I am working on modifications to LINDA to allow the Airbus FCU panel to interface with LINDA (see Linda2Airbus thread).  You can test your functions by temporally assigning a joystick button to the function.

 

Interfacing with bespoke (non-standard) switch panels will require a little more expertise and experimentation.  You will need to introduce a Timer function which will be called regularly (several times a second) to read your panel status and action the results.  Take a look at the thread "Led Lights - How To Detect Change Automatically (Axe)" where I was able to help someone else with a similar issue.

 

Andrew

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

Link to comment
Share on other sites

Hi Andrew,

 

thanks for your help. There are a fiew questions left:

 

I want to share my modules-lua script (and the two other files in this folder). Where should I upload this files? It is not allowed to start a new topic in the download section. Is it?

 

I dont know how to upload a file here in the forum. I can not upload something in "my media".

 

I there a possebility to search only this sub-forum? The search function here in the forum seems not to be helpful (selecting the subforum from a to small field and the subforums are not in a specific order)

 

/Hendrik/

Link to comment
Share on other sites

Hi Hendrik

 

I tend to upload files to my own website or to DropBox for sharing. You can not upload images or files to the website due to size constraints. You can only give a link.

 

I don't think you can search only within a sub forum. I tend to use Google to find information with keywords like LINDA, lua and airbus. It does scan and index the AVSIM forums and others.

 

Andrew

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...