Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello,

Noob question: I want to control the Left, Nose and Right Landing lights of the Aerosoft CRJ, with a single switch.

Their respective LVARs are:

1=L:ASCRJ_OVHD_LDG_LEFT=Set
2=L:ASCRJ_OVHD_LDG_RIGHT=Set
3=L:ASCRJ_OVHD_LDG_NOSE=Set

And i can control them seperately, but how can i set them with one switch?
I tried the multi-line macro from the advanced users manual, but then also saw that this doesn't work wit Lvars.

 

Kind Regards,
Andre

 

 

Posted
10 hours ago, Andre92 said:

And i can control them seperately, but how can i set them with one switch?

The easiest may to achieve this is to overload the assignments to the button by editing your FSUIPC7.ini file.
Locate the assignment to the first lvar in the macro, it will look something like this:
       <index number>=P<joyId/letter>,<buttonId>,CM1:1,0     -{Macro <macro file name> L:ASCRJ_OVHD_LDG_LEFT}-
then copy this line and  duplicate twice, then change to give both a unique <index number> and increment the macro index, to end up with something like
       <index number>=P<joyId/letter>,<buttonId>,CM1:1,0     -{Macro <macro file name> L:ASCRJ_OVHD_LDG_LEFT}-
       <index number + 1>=P<joyId/letter>,<buttonId>,CM1:2,0     -{Macro <macro file name> L:ASCRJ_OVHD_LDG_LEFT}-
       <index number + 2>=P<joyId/letter>,<buttonId>,CM1:3,0     -{Macro <macro file name> L:ASCRJ_OVHD_LDG_LEFT}-
You don't need to change the annotation/comment - FSUIPC will update this when it is next ran.

If you do this when FSUIPC7 is already running, you can reload the changes from the buttons assignment dialog panel using the 'Reload assignments' button.

John

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.