Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11
    300+ Forum Addict oal331's Avatar
    Join Date
    Dec 2006
    Location
    Athens - Greece
    Posts
    379
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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
    Eddie Armaos
    Athens-Greece


    [

  2. #12
    300+ Forum Addict oal331's Avatar
    Join Date
    Dec 2006
    Location
    Athens - Greece
    Posts
    379
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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
    Eddie Armaos
    Athens-Greece


    [

  3. #13
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    582
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  4. #14
    300+ Forum Addict oal331's Avatar
    Join Date
    Dec 2006
    Location
    Athens - Greece
    Posts
    379
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FS2 Phidgets and assigning two variables at the same LED64 position

    Quote Originally Posted by CocnutAir View Post
    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 View Post
    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
    Last edited by oal331; 09-15-2012 at 01:55 PM.
    Eddie Armaos
    Athens-Greece


    [

  5. #15
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    582
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  6. #16
    300+ Forum Addict oal331's Avatar
    Join Date
    Dec 2006
    Location
    Athens - Greece
    Posts
    379
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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
    Eddie Armaos
    Athens-Greece


    [

  7. #17
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    582
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  8. #18
    300+ Forum Addict oal331's Avatar
    Join Date
    Dec 2006
    Location
    Athens - Greece
    Posts
    379
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FS2 Phidgets and assigning two variables at the same LED64 position

    Quote Originally Posted by CocnutAir View Post
    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
    Last edited by oal331; 09-21-2012 at 10:59 AM.
    Eddie Armaos
    Athens-Greece


    [

  9. #19
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    582
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

Page 2 of 2 FirstFirst 12