Jump to content

How to interface CRJ550/700 L-Vars with AxisAndOhs


SimWare
 Share

Recommended Posts

  • Aerosoft

How to interface CRJ550/700 L-Vars with AxisAndOhs ?

 

Due to its complexity and Flight Simulator internal mechanism, some functions, buttons, knobs, etc.
are not assignable directly in Flight Simulator.
However, most of them are with the L-Vars.
The L-Vars are the Local Variables used in the core of the addon programming.

 

To get access to these variables, several third-party utilities are available.

Among them are Spad.Next and AxisAndOhs.

 

 

Utilities like AxisAndOhs or Spad.Next are the bridge between complex aircraft and complex hardware.

 

This tutorial will describe the basic of interfacing with AxisAndOhs.
It will also show how to enhance the default functions handling of Flight Simulator.
For instance by detecting when a button is pressed or released and acting accordingly.
-
à Basically allowing the use of ON/OFF switches for instance.

 

DISCLAIMER :
This is NOT a user’s manual for AxisAndOhs.
It shows the basics for you to build your own setup.
Browse the forum, there are several users already offering their own AxisAndOhs setups to download.

 

TWO-FOLDED TUTORIAL :
Part 1 :

We set the CRJ parking brake and the gear switches on the Thrustmaster TCA Throttle Quadrant.
We will not use the L-vars for these, but the ability of AxisAndOhs to use the ON/OFF switches properly wich isn’t the case in FlightSimulator.

Part 2 :
We will then assign a rocker switch of the TCA to the Autopilot Disconnect function.

This time with the L-Vars.

 

Let’s go !

 

First, you need to download and install AxisAndOhs.
Check this site : https://axisandohs.weebly.com/

We won’t cover the installation process as it is quite simple and explained on their website.
 

Once installed, a icon will be added to your desktop :
image.png

STEP 1 :
Start Flight Simulator and load a flight with the CRJ.
In this case, the CRJ 550 is loaded.

STEP 2 :
Start AxisAndOhs
It will automatically detect the aircraft loaded.

Nothing is assigned yet, so the two panes are empty.
image.png

 

STEP 3 :
Click on the “+” under the “Assigned Buttons” pane :

image.png 

A dialog box appears :
image.png 

STEP 4:
1 – Select the TCA in the Device dropdown.
2 – Rotate the Park Brake handle so that it is detected.

image.png


STEP 5:

Click the arrow in the Key Down Event field.
A drop down appears with a list of functions categories.

à Click “Aircraft Miscellaneous Systems”

image.png
 

STEP 6 :

The category expands.
Double click on “PARKING_BRAKES: Toggle parking brake on/off”

image.png


STEP 7:
The list closes and the function is now assigned to the Key Down Event.
image.png
 

STEP 8:
Repeat the exact same procedure for the Key Up Event.
à Click “Add”
image.png

STEP 9:
The function now appears in the Assigned Buttons list.
image.png
 

STEP 10 :
Click on the “+” under the “Assigned Buttons” pane :

image.png 


and repeat the steps 4 to 9 with the TCA gear rocker switch and the
GEAR_UP (Sets Gear handle in UP position) & GEAR_DOWN (Sets Gear handle in DOWN position)
Click “Save”

image.png
 

Both assignments now appears in the Assigned Buttons pane :
image.png

 

NOW THE TRICKY PART…


Not really actually, but somewhat different.

We will use the L-Var driving the Auto Pilot Disconnect switch
As the names says, L-Vars are variables, not functions.

It is therefore not possible to assign a button directly to a variable.
We must create a function that will set this variable to a certain value, THEN ONLY assign a button to this function.
In AxisAndOhs, this happens in the Scripts

STEP 1:
1 – Click “Scripting” in the upper menu bar
2 – Click Read LVARs from sim. (This will load all the available L-Vars of the aircraft and make them available from within the scripts)

image.png
 

STEP 2 :
The Script editing dialog box opens.
1 – Click “+” to add a new group of scripts.

àThe Scripts Groups box pops up
2 – Choose and enter your group name.
3 – Click “Add”
4 – Click “Close”

image.png


STEP 3:
1 – Your group name now appears in the scripts group list
2 – Select the script group you want to attach your script to
3 – Choose and enter the script title. We create a first function to disconnect the
      autopilot.

4 – Click “Insert sim var”
image.png 

 

STEP 4:
A drop down appears with a list of functions and variables categories.

à Click “Local Simulator variables” à THESE ARE THE L-VARS
image.png


STEP 5 :
The category expands.

Double click on “L:ASCRJ_FCP_AP_DISC, Number | Settable: Y”
image.png

 

STEP 6:

It now appears in the script editor.
image.png

 

 

STEP 7 :
We will set this variable to “1”, meaning “ON”.
Meaning that this script sets the “L:ASCRJ_FCP_AP_DISC” variable to 1 or ON
so disconnecting the autopilot.
1 - To do so, add “1” and a SPACE before the first parenthesis.
2 – IMPORTANT : after the first parenthesis, add a ”>”. This is for scripting syntax reasons.
3 – Click “Save as New”

image.png

 

STEP 8:
We now have to create another function to connect the autopilot.
Basically the same as the disconnect one, except that the ASRJ_FCP_AP_DISC variable will be set to 0 or OFF.
To do so, repeat step 7 by creating another function named AP-Conn for instance and
adding a “0” and a SPACE before the first parenthesis.

à Both your own AP-Conn and AP-Disc scripts now appear under you own scripts category.
 

Press “Close”
image.png

 

STEP 9 :

Click on the “+” under the “Assigned Buttons” pane :
image.png 

For the test purposes, we will use one of the engine starter rocker switches of the TCA

To demonstrate the uses of our two new scripts.
Do the previously described button assignment procedure.
This time, your own script category will appear in the available functions in the list :

image.png
 

STEP 10 :
Assign both AP-Conn and AP-Disc functions to the Key Down Event and Key UP Event.

Click “Save”
image.png

STEP 11:

You are done !

All your three assignments appear.
image.png
 

And they work… !
image.png

 

Simply close AxisAndOhs program.
Everything is automatically saved.
Next time you load a flight with the CRJ 550, the assignments and scripts will be loaded and active. 

 

 

  • Like 1
  • Thanks 4
  • Upvote 2
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
 Share

×
×
  • Create New...