LINDA Lesson 4 Consolidating macros


If you did not read the previous lessons, please do. This post is about how to consolidate our earlier made macros into one single macro for a specific aircraft.

When you observe the lines in the macro file with a text editor, this is what you could see and pay attention to the line” Module=”

[Macros] 
Module="Bendix_King_Radio.DLL" 
1=AP_ON=RX2900*Xa1ccLINDA-12.PNG

As long as there are other macros of which the module name is the same, you can combine the statements hereafter into one macro. Only change the numeric value at the beginning of the line. This is how it looks in LINDA after you assigned the macro:

LINDA-11.PNG[Macros] Module=”Bendix_King_Radio.DLL” 1=AP_ON=RX2900*Xa1cc 2=AP_HDG=RX2940*Xa1cc 3=AP_NAV=RX2980*Xa1cc 4=AP_ALT=RX2a40*Xa1cc 5=AP_APR=RX29c0*Xa1cc 6=AP_REV=RX2a00*Xa1cc 7=UP=RX2ac0*Xa1cc 8=DOWN=RX2a80*Xa1cc 9=GPS=RX2230*Xa1cc 10=APR=RX29c0*Xa1cc

When it runs…it runs and you can delete the previous created single line macros.

LINDA Lesson 3 Creating Macro’s


For the purpose of this lesson we use our Logitech Joystick and will create a macro to activate the Autopilot. First check in the Standard.XML if the joystick events are gone…else delete them and close and save the file. (If you are lost here already…please read previous lessons).

  1. Next Start FSX, with a C172, in Cockpit view (or  press shift+2)
  2. Open Add-ons and select FSUIPC
  3. Activate the tab Buttons + Switches and down below
  4. Press the button Create Mouse Macro
  5. You get a sub screen that asks you to fill a name: AP_ON;
  6. Close with OK and close FSUIPC Options and Settings with OK.
  7. Before you do, observe that the earlier named buttun Create Mouse Macro has changed into:….we get back later.
  8. You must be in  cockpit view and now do exactly what you should do to activate the AP.
  9. LINDA-08.PNGPress with your mouse the button AP in the Autopilot. The very moment you press this button, in the left upper corner of your FSX a green bar appears with the following text –>
  10. Press the TAB on your keyboard to verify that the function is working correctly. The AP light will swap.
  11. Then, if OK, enter the name that you previous choose for this macro: AP_ON and close with ENTER
  12. Next step: Get into FSUIPC Buttons + Switches and
  13. Press the button End Macro Making.

Thats all there is.

Check, double check…

  1. Open your ../Modules folder and find the file called AP_ON.MCRO
  2. Right mouse open this file with and editor…this is what you have composed:

LINDA-09.PNG[Macros]
Module=”Bendix_King_Radio.DLL”
1=AP_ON=RX2900*Xa1cc

Good job.
3. Close the file.
4. Now activate LINDA  that has recognized the joystick in the same time. Press FSX-sync
5. Press button 7 on the joystick and press empty to select in the column On Press:: Set FSUIPC Macro
6. Select AP_ON in the field area Macro files found and then in Available macros: AP_ON
7. Now look in your cockpit view what is happening when pressing key 7 on your joystick…
8. Now create a macro for activating the HDG button in the AP in the same way.

 

This is what you could have created: the “M” before a statement refers to a macro.
These 2 statements are not present in the *FSX Default.LINDA-10.PNG

 

Problems? Give me buzz.

To read previous lessons click here: lesson_2 lesson_1

Lesson 4 consolidating macro’s start here.

 

LINDA Lesson 2 Create Aircraft Module


Last week we wrote Linda Lesson 1. If you are a beginner with LINDA and did not read this, please do, otherwise you will get disconnected in understanding what’s going on.
A short refresh. In order to use LINDA with any piece of hardware, you must de-activate the contents of that hardware in the file Standard.XML as long as it concerns key assigments. Since FSX is creating a new Standard.XML when you remove all the hardware statements from the joystick sections, you have to start all over again. The instruction for use of LINDA is incorrect at this point. So, open the Standard.XML and remove only the key assignments from your joystick. Leave the settings in FSX where it concerns the Controls as “enabled”.
Don’forget: the file Standard.XML resides in C:UsersyournameAppDataRoamingMicrosoftFSXControls

This is what you should get if you follow my sample. First the basics…later on we will do the trics.

<SimControls.Map>
<Name>Logitech Extreme 3D{8BCFF350-AAE9-11E3-8001-444553540000}</Name>
<Axis>
<AxName>XAxis</AxName>
<Index>0</Index>
<AxEvent>AXIS_AILERONS_SET</AxEvent>
<AxScale>64</AxScale>
<AxNull>36</AxNull>
</Axis>
<Axis>
<AxName>YAxis</AxName>
<Index>1</Index>
<AxEvent>AXIS_ELEVATOR_SET</AxEvent>
<AxScale>64</AxScale>
<AxNull>36</AxNull>
</Axis>
<Axis>
<AxName>RzAxis</AxName>
<Index>5</Index>
<AxEvent>AXIS_RUDDER_SET</AxEvent>
<AxScale>64</AxScale>
<AxNull>36</AxNull>
</Axis>
<Axis>
<AxName>Slider</AxName>
<Index>6</Index>
<AxEvent>AXIS_THROTTLE_SET</AxEvent>
<AxScale>127</AxScale>
<AxNull>1</AxNull>
</Axis>
<POV>
<Index>0</Index>
<Down>PAN_VIEW</Down>
<DownRpt>1</DownRpt>
</POV>
</SimControls.Map>

LINDA-01Next observations: the files that LINDA creates, where you can find them and what they do.
Since we deleted all our key statements from the joystick, nothing will work, except the axis and POV switch.

All the files LINDA needs or creates, are in your Modules folder and since you will be visiting this location frequently, it would be handsome to create a shortcut to your desktop: right mouse click on the Modules folder in FSX and from the context menu: Sent to Desktop (create shortcut)…that will save you some time…LINDA-04.PNG

LINDA-05.PNGNow start FSX, C172 and LINDA and selection *FSX Default will pop up automatically. You will get the list you created in lesson 1. Take notice that on the right of *FSX Default there is a little button FSX-sync.

LINDA-04For the exercise push the button and see the differences  in function with or without FSX -sync. With FSX-sync pressed you get an orange colored button and at the same time the drop down menu is blocked.

LINDA-06.PNG

You want an aircraft specic file in LINDA. At the left of *FSX Default there is a button called “New” to create a new aircraft module. Press New, give a Module name. In the big white center field a list of all your airplanes is populated from ../Simobjects/Airplanes. If you want to do a search…search, else select C172. For now, select Copy from existing *FSX Default and press Create. Done.  If you get an error message, ignore it.

Next step…check what has happened.
Open the ../Modules folder/linda/aircrafts and search the folder called C172.
You wil find one file: ident.lua…
There you get your error message! A file actions.lua is missing.
Copy the file actions.lua from the D:/FSX/Modules/linda/data/template/saircraft into the new made folder D:/FSX/Modules/linda/aircrafts/C172
Close LINDA and restart the app…it will show the Joystick with *FSX Default selection.
Press FSX-sync button and the standards from FSX are now visible with a * up front. OK?
You cannot delete or change * values in a specific profile OR you must do that in  *FSX Default status.LINDA-07.PNG

Continue reading more in lesson_3 or start with lesson_1