Jump to content
The simFlight Network Forums

Case statements in GFDisplay


 Share

Recommended Posts

I've configured an RP48 in FSUIPC to use an encoder and button to operate the SB3 transponder using offsets: Encoder for mode, x7b91 and Button for ident, x7b93. I then used GFDiaplay to flash the button's LED when x7b93 was activated.

The ideal beheavior is to have the LED turn on (steady) when the transponder is in mode C, Flash during ident and return to Steady. I think this is possible with the case statements disucssed in the manual but I am unsure how to proceded.

Can someone please share a similar code-snippet with me?

- Chris

Link to comment
Share on other sites

:D With a little more study and experimentation, I was able to solve the problem by adding two items to the conditions list and then modifying my code.

[Conditions]

49=X7B91 U8 =0 ; SB3 Transponder mode C

50=X7B93 U8 =1 ; SB3 Transponder IDENT active

[GFRP48.0]

Needs=E B

B=8

L7.1=!C50 X7B91 U8 =0; SB3 Transponder mode C

L7.2=C49 X7B93 U8 !=0 Ff4off; SB3 Transponder IDENT active

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.