Cockpitbuilders.com
Main => Builders Discussions => Topic started by: saitekx450 on October 12, 2014, 06:48:29 AM
My First post so hopefully in the right place and is useful for some. Whilst trying to configure my six pack on my sim I couldn't get my head around how to distinguish between the bits within the offset $5530, but then I came across the facility within the syntax for Testbit. I am using on my Engravity MIP an Opencockpits USB output card and leo bodnar input card, the syntax that I have used is below and the example is for Flight Control, once declaring my variables the lines in the code were:-
{
&FLTCTRL_LED = TESTBIT &FLTCTL 1
}
I did this for each of the captains six pack including the master caution and all seems to be well, I am sure fellow builders have discovered this, but thought would bring it into a new discussion for all, just chuffed to find out how to do this and a bit of a "golden nugget" moment for me. :)
Great post and for sure in the right place. We aren't that picky here anyway.
Welcome to the group!