Re: FS2 Phidgets and assigning two variables at the same LED64 position
Sorry Alan i didn't see that was you below asking for offset 1900, i never saw the userneame and i thought it was someone else having PM :-)
So, 1900 was as example, the correct offset is 9407
According to iFlyToFsuipc's Manual offset 9407 has values
1) 0 for dim and 1 for bright for for Left Valve Open Light Status
2) 2 for dim and 3 for bright for for Right Valve Open Light Status
3) 4 for dim and 5 for bright for COWL_VALVE_OPEN_Lights_1_Status
4) 6 for dim and 7 for bright for COWL_VALVE_OPEN_Lights_2_Status
In the same way we have also offset 941B for valve open light status (1 dim, 2 bright)
and
offset 941A with values 0&1, 2&3, 4&5, 6&7 for ENG and SPAR valves 1&2 leds, for dim and bright status.
Now, for turning on/off these switches, ifly has a multi offset 9400. In example by sending the value
164 is for ANTIICE_ENG_1_OFF,
165 is for ANTIICE_ENG_1_ON,
or 163 for toggle ANTIICE_ENG_1
For inputs i have Opencockpit's cards and i use the values 164 & 165, so there is no connection with Fs2Phidgets.
Thanks for quick reply
Eddie
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Hello Alan,
did you find free time to check the dual state leds ? (Just another reminder ;))
regards
Eddie
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Eddie,
Regarding offset 9407, how would the dim state for left AND right valve open status be represented?
Based on the description for that offset, the state of only one annunciator can be represented at any given time.
Is that not perhaps a bitmapped offset, with bits 0 thru 7 representing states.
Regards,
Alan
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Quote:
Originally Posted by
CocnutAir
Regarding offset 9407, how would the dim state for left AND right valve open status be represented?
Based on the description for that offset, the state of only one annunciator can be represented at any given time.
No it's not working like that, my mistake i didn't explain it well
Quote:
Originally Posted by
CocnutAir
Is that not perhaps a bitmapped offset, with bits 0 thru 7 representing states.
I'm not sure if i can explain it, but as i can see offset 9407 has 8 bits we care about .
So it is possible to have bit position 0 to be on active-on,
and
also bit position 2 to be on also.
So if we have state 1 at both bits 0 and 2 of offset 9407, both valves are dim, right?
Am i correct about this ?
Eddie
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Eddie,
Take the COWL_VALVE_OPEN_Lights_1_Status.
State is represented using bits 4 and 5.
Hopefully, bits 4 and 5 are never both 1 at the same time.
Are the only states DIM and BRIGHT?
i.e. COWL_VALVE_OPEN_Lights_1_Status is never OFF.
Regards,
Alan
Re: FS2 Phidgets and assigning two variables at the same LED64 position
If both bits 4 & 5 have status 0, the led will be off, otherwise ti will be either Dim or Bright, right ?
So COWL_VALVE_OPEN_Lights_1_Status may have all the states with these 2 bits.
regards
Eddie
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Eddie,
I can use the Bit and Bitpair settings on the FsVariable to drive your request. Will need to add a checkbox for Ifly and add logic for digital outputs' brightness that are controlled by PhidgetLED64. I will make change sometime this weekend. Send an email to alan@coconutair.com so that I can reply with the updated version of Fs2Phidgets.
Will this work for you?
Regards,
Alan
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Quote:
Originally Posted by
CocnutAir
Eddie,
I can use the Bit and Bitpair settings on the FsVariable to drive your request. Will need to add a checkbox for Ifly and add logic for digital outputs' brightness that are controlled by PhidgetLED64. I will make change sometime this weekend. Send an email to
alan@coconutair.com so that I can reply with the updated version of Fs2Phidgets.
Will this work for you?
Regards,
Alan
I don't know how to add logic or what to is the Bitpair and all these, sorry.
If you believe that this is the solution, go on and please include an example to copy your settings, or give me instructions.
Email will be there in few moments, for send the new 4.xx version.
Thank you Alan.
Eddie
Re: FS2 Phidgets and assigning two variables at the same LED64 position
Eddie,
We can use the Bit and Bitpair settings on the FsVariable to drive your request. I will need to add a checkbox on the FSVariable Editor for Ifly and add logic in FS2Phidget code to set digital outputs' brightness that are controlled by PhidgetLED64. I will make change sometime this weekend. Send an email to alan@coconutair.com so that I can reply with the updated version of Fs2Phidgets and instructions for setting up an IFly 2-state brightness FsVariable.
Regards,
Alan