Managed/Selected Speed on MAX7219 7-segment display with SimVim

As promised, here’s me showing off a little, haha! I managed to convince the SimVim and MAX7219 7-segment display driver to switch between an actual speed value and the three dashes (plus one LED) to indicate the managed or selected mode on the A320 FCU.

First things first. Here’s the custom.cfg that handles my custom dataref for reading the FCU’s speed value and mode:

# FCU SPD Value
[DATAREF]
DATAREF_TYPE=INT
OBJECT=Aircraft.FMGS.FCU1.Speed
DATAREF=a320/fcu/spd_value

# FCU SPD MODE
[DATAREF]
DATAREF_TYPE=INT
OBJECT=Aircraft.FMGS.FCU1.SpeedManaged
DATAREF=a320/fcu/spd_managed

The custom.cfg file is something you should create for the FFA320Connector plugin (I mentioned this plugin briefly in the First experiments with an Arduino and rotary encoder article).

And this is what you need to put into the data.cfg file, which you’ll find in the SimVim plugin folder:

[Output]
N31 AP_HDG_Cmd
N31 Display_Text  c=L46 o=5 t="---"
L46 Auto_Throttle_On

Notice the L46 line how it’s being used in the N31 Display_Text condition. This is what tells the software that when the LED on L46 Arduino output is lit then it needs to output the three dashes on the MAX7219 7-segment display. This is for the managed mode. And when the LED on the L46 output is off, the 7-segment display shows the actual/selected speed value.

Last, but not least, you need to map the custom datarefs defined in the custom.cfg to the parameters (AP_HDG_Cmd, Auto_Throttle_On) found in the data.cfg file so they ‘talk’ to each other.

To do so, simply open the Conversion Tool in X-Plane’s Plugins -> SimVimCockpit -> Conversion Tool (make sure your Arduino board is connected BEFORE you launch X-Plane or the SimVim plugin might have a problem loading the config), and type in the full dataref name into the Dataref field.

You’ll need to link every single parameter/dataref because at the moment the Flight Factor’s A320 Ultimate doesn’t work with the default (internal) datarefs provided by X-Plane (rumour has it FF is actually working on a dataref overhaul but when that is coming, nobody knows).

And here’s a demo! The image quality is not perfect. When the LED is on, the three dashes on the 7-segment display are tough to see but they’re there, nonetheless! 🙂

Until next time!