PDA

View Full Version : FS2 Phidgets and assigning two variables at the same LED64 position



Olympic260
06-14-2012, 10:46 AM
Is it possible to assign on the same position two different variables?

For example Wing Anti Ice valve light which is two state light, bright when in transition dim when open has offset 1900 bit 0 for dim light and offset 1900 bit 1 for bright light. The LED is connected on LED64 position 11 for example.

Can somehow assign on position 11 both states?

CocnutAir
06-17-2012, 09:49 AM
Is not currently possible.

oal331
06-18-2012, 03:00 AM
So, brightness control that Fs2Phidgets already supports, how it works ? How do you control dim & bright, is it a time matter?

For example : It could be bright for 2 seconds and then dim ? (ver.4.xx)

Thanks

Eddie

CocnutAir
06-18-2012, 08:23 PM
The actual brightness is controlled in the Phidget driver which Fs2Phidget interacts with.
FS2Phidget controls brightness dependant on value received from MS-FS at a point in time and using values set by the user.
Let me save you some time right now.
I do not have time at present to make any code changes.
I am in middle of moving house.

oal331
06-19-2012, 01:05 AM
Alan,

Thank you for your reply, of course priority is real life and our hobby can wait :-)

Good luck and happiness with your new home!

Eddie

CocnutAir
06-20-2012, 01:52 AM
Eddie,

If you do not here back from me by the end of July, post a reminder here.

Regards,
Alan

oal331
08-19-2012, 04:40 AM
Eddie,

If you do not here back from me by the end of July, post a reminder here.

Regards,
Alan

Hello Alan,

just a reminder for a future update, when possible.

Eddie

CocnutAir
08-19-2012, 10:21 AM
Is this a pmSystems offset?
Does 1900 control other functions besides wing anti-ice?
What offset switches the wing anti-ice off?

oal331
08-19-2012, 12:05 PM
No it"s not about PmSystems. With PmSystems you don"t need Fs2Phidgets software, because recognizes phidgets card and contol them directly.

Our request is for iFly 737 and iflytofsuipc tool.

Regards

Eddie

CocnutAir
08-19-2012, 02:56 PM
One question answered. Other two were:

Does iFly offset 1900 control other functions besides wing anti-ice?
What offset switches the wing anti-ice off?

oal331
08-19-2012, 03:39 PM
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

oal331
09-12-2012, 02:30 AM
Hello Alan,

did you find free time to check the dual state leds ? (Just another reminder ;))

regards

Eddie

CocnutAir
09-15-2012, 11:28 AM
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

oal331
09-15-2012, 01:37 PM
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



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

CocnutAir
09-15-2012, 04:03 PM
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

oal331
09-16-2012, 06:45 AM
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

CocnutAir
09-21-2012, 10:33 AM
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

oal331
09-21-2012, 10:56 AM
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

CocnutAir
09-21-2012, 01:03 PM
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 (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