This repository is made to publish and document the lua-Script for LINDA made for the RealAir Lancair Legacy V2. At the moment the focus is still on publishing the actions.lua not on implementing the complete LINDA module.
You can use this Module only as long as you have running
I strongly recommend to make a backup of your own files before overwriting yours with the settings from this package.
Several quick start options are available:
- Download the latest LINDA Module and copy the folder "Modules" from the zip to your Flight-Simulators root-folder eg.
C:\Program Files (x86)\Lockheed Martin\Prepar3D v2\
orC:\Program Files (x86)\C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\
- Clone the repo:
git clone https://github.com/joeherwig/RealAir-Lancair-Legacy-V2-LUA.git
and move the complete subfolder "Linda Root" to your Root Folder in which you find the Linda.exe.
I tried to name all functions in a way that directly tells you what it does. In some special cases it might be neccesary to explain you something more detailed. Then i make some additional remarks in this section. So this section is not intended to repeat everything i allreade "said" while giving the function names. So ... It will not be complete and hopefully not bother you with its length.
-
Yoke_Hide
: On Loading the vehicle i hide the yokes to enable a better view to the buttons hidden behind the yokes. If you prefer not to hide the yokes, feel free to remove the line Yoke_Hide() from the init. -
ChangeCabinPressureByXFeet = 250
: This line is used to define the step-width for incrementing and decrementing the cabin pressure goal altitude when using theCabin_Pressure_alt_goal_dec
andCabin_Pressure_alt_goal_inc
function. -
ChangeCabinRateByX = 50
: This line is used to define the step-width for incrementing and decrementing the desired speed for adapting the cabin pressure between the current state and the cabin pressure goal altitude when using theCabin_Rate_Knob_dec
andCabin_Rate_Knob_inc
function. -
ChangeCabinPressureTempByX = 10
: This line is used to define the step-width for incrementing and decrementing the cabin pressure temp when using the functions:Cabin_Pressure_Temp_Lever_1_inc
Cabin_Pressure_Temp_Lever_1_dec
Cabin_Pressure_Temp_Lever_2_inc
Cabin_Pressure_Temp_Lever_2_dec
Just taken from guenselis great 1.3-Version. Thanks a lot!
Turbine Ignition added:
The "Ignition_..._toggle_OffAuto"-functions only toggle between "Off" and "Auto" and vice versa. The third state of this button "on" isn't reflected in this function, because i have only a simple pushbutton and it seems, "Auto" is enough for my needs, so that explicit "on" can be skipped.
Added the Fuel-Valves for direct interaction and rotary encoders: Here as well the _toggle-Function only toggles between "Off" and "On". "XFeed" is not included in the "_toggle".
Added following dedicated functions:
- Door_state - returns the open-state (position) of the door, eg. 'open', '74%' (open) and 'closed'.
- Door_open - opens the door.
- Door_close - closes the door.
- Door_toggle - opens a closed door, and closes an open door.
Probably you want push this script a small step or a big leap forward. You're welcome to do so. Just fork this repo, check-in your changes and send me a pull-request. If you're not familiar with using Github you can also send me a Email to inform me about the changes and additions you made, and i'll probably embed them into my repo.
Have a bug or a feature request? Please check first whether your problem or idea is addressed already. If not, please feel free to open a new issue.
Code and documentation copyright 2015 JoeHerwig released under the MIT license. Docs released under Creative Commons.