Jump to content
The simFlight Network Forums

LUA scripts VPC Virpil LED's


Mugz
 Share

Recommended Posts

Hi there.

I wrote small scripts for VPC Virpil devices.

https://github.com/mixMugz/vpc_virpil_fsuipc_led

This is example for my own devices, but you can modify it for yours.
All scripts tested and working with Microsoft FlightSimulator 2020 (But i think it also will work with P3D/FSX)

Supported devices:
- VPC Constellation Alpha Grip with MT-50CM2 (Right Hand)
- VPC Throttle MT-50CM3 (Left Hand)
- VPC Panel #2 (Left Hand)

Realized LED:
- VPC Constellation Alpha Grip color
1. Aircraft on ground - Orange color
2. Aircraft on ground, parking brake on - Blink Red/Black color
3. Aircraft in flight, autopilot off - Blue color
4. Aircraft in flight, autopilot on - Green color

- VPC Throttle color
1. Default state - black color
2. Autopilot FMS NAV Hold ON - B1 Green
3. Yaw Damper ON - B2 Green
4. Flight Director ON - B3 Green
5. Autopilot Approach mode ON - B4 Green
6. Autopilot Back Course ON - B5 Green
7. Autopilot Master ON - B6 Green

- VPC Panel #2 color
1. Gear down - 3 down gear led green color (for each gear, left, center, right)
2. Gear up - 3 upper gear led red color
3. Gear deploying - middle gear led blink orange color
4. Gear not retractably - middle gear led blue color

Instalation:
Please make sure the LUA files are listed in the [LuaFiles] section of FSUIPC7.ini file.
Example:

[LuaFiles]
1=VPC_Base
2=VPC_LP_#2
3=VPC_LT_MT50CM3
4=VPC_RCA_MT50CM2

Add to [Auto] section of FSUIPC7.ini

[Auto]
1=Lua VPC_RCA_MT50CM2
2=Lua VPC_LT_MT50CM3
3=Lua VPC_LP_#2

Short video:

 

Link to comment
Share on other sites

40 minutes ago, Mugz said:

Add to FSUIPC7.ini


[LuaFiles]
1=VPC_Base
2=VPC_LP_#2
3=VPC_LT_MT50CM3
4=VPC_RCA_MT50CM2

[Auto]
1=Lua VPC_RCA_MT50CM2
2=Lua VPC_LT_MT50CM3
3=Lua VPC_LP_#2

Please remember that you should NOT manually edit or change the [LuaFiles] section unless you know what you are doing. This is generated and maintained by FSUIPC and should not be manually edited.

Link to comment
Share on other sites

10 minutes ago, John Dowson said:

Please remember that you should NOT manually edit or change the [LuaFiles] section unless you know what you are doing. This is generated and maintained by FSUIPC and should not be manually edited.

Corrected first post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.