Results 11 to 19 of 19
-
08-19-2012, 03:39 PM #11
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
EddieEddie Armaos
Athens-Greece
[
-
09-12-2012, 02:30 AM #12
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
EddieEddie Armaos
Athens-Greece
[
-
09-15-2012, 11:28 AM #13
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
-
09-15-2012, 01:37 PM #14
Re: FS2 Phidgets and assigning two variables at the same LED64 position
No it's not working like that, my mistake i didn't explain it well
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 ?
EddieLast edited by oal331; 09-15-2012 at 01:55 PM.
Eddie Armaos
Athens-Greece
[
-
09-15-2012, 04:03 PM #15
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
-
09-16-2012, 06:45 AM #16
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
EddieEddie Armaos
Athens-Greece
[
-
09-21-2012, 10:33 AM #17
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
-
09-21-2012, 10:56 AM #18
Re: FS2 Phidgets and assigning two variables at the same LED64 position
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.
EddieLast edited by oal331; 09-21-2012 at 10:59 AM.
Eddie Armaos
Athens-Greece
[
-
09-21-2012, 01:03 PM #19
- Join Date
- Jan 2007
- Location
- Texas
- Posts
- 582
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
6yo FACECAST LINK 14year GIRLS FORUM : ( )...
YWM RAR JAILBAIT ZOOM