Jump to content
The simFlight Network Forums

GFDisplay: Literal Values only?


Recommended Posts

The documentation states (at least how I understand it) is that I can only provide literal values. I don't know if this was supposed to work, but it does.

I am once again tinkering with GFdisplay trying to get it to do all sorts of weird things it was not designed to do. This project has three LEDs lighting up according to Flaps position. (The Cessna only has three extensions so that's why I'm going with three)

[GFT8.0]
;X0BE0 = Left Flaps Inicator
;X3BFA = Flaps Detent Increment

L7=X0BE0 U16 >X3BFA 
L6=X0BE0 U16 >X3BFA *2
L5=X0BE0 U16 >X3BFA *3

So at the first position, L7 lights up. Second position, both L7 & L6 light up. Third position, all three light up.

Link to comment
Share on other sites

The documentation states (at least how I understand it) is that I can only provide literal values. I don't know if this was supposed to work, but it does.

Blimey! That's certainly a 'bonus'. I wouldn't have expected it to workHmmm. I wonder how it does? I think I'll delve into the code next week, to see how it's being cleverer than me! :wink:

Regards,

Pete

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.