Jump to content
The simFlight Network Forums

LUA scripts VPC Virpil LED's


Mugz

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

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
×
×
  • 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.