Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Overhead panel

  1. #1
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Overhead panel

    Hi Nico,

    Yesturday I finished mounting my overhead panel, completely interfaced with PSX / PSXseecon and SIOC. 2561 lines of code and 722 variables declared for the cockpit (MIP, Glare and Overhead). I was wondering about PSXseecon comportment within such a complete cpckpit environment, it works very fine. However, I noticed a (very) few switches and lights bugs. I checked my code, it looks like good to me, anyway, I send you the pieces of code for you can check.

    My hardware for the Overhead : IOCard Expansion USB V3 with 3 masters connected, 207 inputs connected. Outputs (LEDs) managed by 3 IOCards USB Outputs, 169 LEDs connected. Everything is brand new.

    Software : PSX v.10.0.1 Alpha 17, PSXseecon v.1.0.12, SIOC v.5.0B5.

    1- EQUIPMENT COOLING SELECTOR : Virtual selector comes to STBY everytime I connect PSXseecon, regardless my hardware selector position. I cannot move the virtual switch within PSX, and when I move the hardware selector, nothing happens. Hardware selector inputs checked with SIOC Monitor and working OK.

    Code:
    Var 3896, name EquipCoolingS, static, Link IOCARD_SW, Device 11, Input 108, Type I     // EQUIPMENT COOLING SELECTOR (STBY)
    
    Var 3897, name EquipCoolingN, static, Link IOCARD_SW, Device 11, Input 109, Type I     // EQUIPMENT COOLING SELECTOR (NORM)
    
    
    Var 3898, name EquipCoolingO, static, Link IOCARD_SW, Device 11, Input 110, Type I     // EQUIPMENT COOLING SELECTOR (OVRD)
    2- BLEED ENG 1,2,3,4 AMBER OFF LIGHTS : These lights are always ON regardless PSX virtual lights status. Very strange because many 20/19 bits coded Big Alternate Switches lights are working very fine. Only these 4 ones are going crazy. LEDs tested with SIOC Monitor, everything works fine.

    Code:
    Var 3326, name EngBleed1Lt, static     // ENGINE 1 BLEED SW LIGHTS (PSX)
    {
      &EngBleed1WLtS = TESTBIT &EngBleed1Lt ,20     // WHITE LIGHT
      &EngBleed1ALtS = TESTBIT &EngBleed1Lt ,19     // AMBER LIGHT
    }
    
    
    Var 6150, name EngBleed1WLtS, static, Link IOCARD_OUT, Device 14, Output 26     // ENGINE 1 BLEED SW WHITE LIGHT (SIOC)
    
    
    Var 6151, name EngBleed1ALtS, static, Link IOCARD_OUT, Device 12, Output 43     // ENGINE 1 BLEED SW AMBER LIGHT (SIOC)
    3- Some Big Alternate action switches white lights are not coming ON when the switch is pushed. LEDs tested with SIOC Monitor, works fine. I didn't listed all the switches yet but here is a sample of the swithes not working good I noticed already :

    AUTOSTART
    TRIM AIR
    UPR-RECIRC
    LWR-RECIRC
    HI-FLOW
    GASPER
    HUMID

    Here is a piece of code for the TRIM AIR SW (the other ones are coded the same way) :

    Code:
    Var 3311, name TrimAirLt, static     // TRIM AIR SW LIGHT (PSX)
    {
      &TrimAirWLtS = TESTBIT &TrimAirLt ,20      // WHITE LIGHT
    }
    
    
    Var 6135, name TrimAirWLtS, static, Link IOCARD_OUT, Device 14, Output 37     // TRIM AIR SW WHITE LIGHT (SIOC)
    I think you used a class for these switches and lights, that's why I am very surprised some lights are working very well and some others, with same bits, are not working good. Maybe an error from me but I really don't see where. Can you cross-check with your code and/or hardware, or tell me where is my error ?

    Thank you very much

    Cheers,
    Jean-philippe

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    Hello JP,

    Thank you for your testing work. Could you -next time- please post one topic per thread. This is rather complicated to answer / quote ...

    But I'll try:

    1- EQUIPMENT COOLING SELECTOR
    It looks you forgot one terminal. This switch is a 3 position rotary switch...

    Code:
    Qh319, EquipCoolingN       , 3897, R          , 
    Qh319, EquipCoolingO       , 3898, R          , 
    Qh319, EquipCoolingS       , 3896, R          ,
    2- BLEED ENG 1,2,3,4 AMBER OFF LIGHTS :
    I found a bug in lights treatment of vars 327 .. 329. Don't know if that's the cause, but please update to version 1.0.14 first.

    Question:
    Why are you using static for vars 6150 and 6151? These are not pxseecon vars, so here is no reason to make them static. You better remove this keyword for these vars, to give SIOC more flexibility to renumber.


    3- Some Big Alternate action switches white lights are not coming ON when the switch is pushed.

    As you already mentioned, I'm using a C++ class for every different type of switch. So if one big alternation switch works fine, all other should work fine.
    However, every specific instance of a class is specialised with parameters. Two of these parameters for big alternate switches are the voltage bus for the indicator and the voltage bus for the "non-indicator" part of this switch. It strikes me that for the ones you mention, both parameters are bus gT38 (in my psxseecon program). I used the documentation of Hardy to get the right buses. But sometimes it was not so clear. Maybe I've made a wrong decision here?

    Another possibility: Are you sure the white light is the upper part? If it would be the lower part you need bit 21.

    Cheers,
    Nico


    Last edited by kiek; 09-28-2014 at 03:13 PM.

  3. #3
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    Nico,

    Thanks for your quick reply. I'm sorry, next time I'll post separately.

    Quote Originally Posted by kiek View Post
    1- EQUIPMENT COOLING SELECTOR
    It looks you forgot one terminal. This switch is a 3 position rotary switch...
    I coded the 3 terminals. Please read the code window of my previous post entirely. On some small screens you need to scroll down the window to see everything. So no error on my side for this.

    2- BLEED ENG 1,2,3,4 AMBER OFF LIGHTS :
    I found a bug in lights treatment of vars 327 .. 329. Don't know if that's the cause, but please update to version 1.0.14 first.

    I'll try tomorrow and report.


    Question:
    Why are you using static for vars 6150 and 6151? These are not pxseecon vars, so here is no reason to make them static. You better remove this keyword for these vars, to give SIOC more flexibility to renumber.

    I'll follow your advice, thanks.

    3- Some Big Alternate action switches white lights are not coming ON when the switch is pushed.


    As you already mentioned, I'm using a C++ class for every different type of switch. So if one big alternation switch works fine, all other should work fine as well. However, every specific instance of a class is specialised with parameters. Two of these parameters for big alternate switches are the voltage bus for the indicator and the voltage bus for the "non-indicator" part of this switch. It strikes me that for the ones you mention, both parameters are bus gT38 (in my psxseecon program). I used the documentation of Hardy to get the right buses. But sometimes it was not so clear. Maybe I've made a wrong decision here?


    Another possibility: Are you sure the white light is the upper part? If it would be the lower part you need bit 21.

    Yes, these switches are with white light in the upper side, so bit 20 is OK.

    Cheers,
    Jean-philippe

  4. #4
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    Quote Originally Posted by Jean-philippe View Post
    I coded the 3 terminals. Please read the code window of my previous post entirely. On some small screens you need to scroll down the window to see everything. So no error on my side for this.
    I see, I think I made also a mistake in psxseecon about the class of this switch. Is fixed in version 1.0.14. Download again if you have downloaded before Sunday evening 20:10 hrs.

    Cheers,
    Nico

  5. #5
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    I'll download, test and report tomorrow about the ENG BLEED amber lights, and EQUIPMENT COOLING selector. Merci

    Jean-philippe

  6. #6
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    OK, I just downloaded last 1.0.14. ENG BLEED amber lights are working perfectly now, and EQUIPMENT COOLING selector also.

    About the white lights, as they are only backlighting lights, and always follow the mecanical switch status, I found a solution which limits the SIOC workload with testbits. I associate the light directly with the switch like this (example) :

    Code:
    Var 1188, name HydEng1, static, Link IOCARD_SW, Device 11, Input 16, Type I     // HYD ENG 1 PUMP SWITCH
    {
      &HydEng1WLtS = &HydEng1    // WHITE LIGHT
    }
    
    
    Var 3188, name HydEng1Lt, static     // HYD ENG 1 PUMP SW LIGHTS (PSX)
    {
      &HydEng1ALtS = TESTBIT &HydEng1Lt ,19 // AMBER LIGHT
    }
    
    
    Var 6021, name HydEng1WLtS, static, Link IOCARD_OUT, Device 14, Output 0     // HYD ENG 1 PUMP SW WHITE LIGHT (SIOC)
    
    
    Var 6022, name HydEng1ALtS, static, Link IOCARD_OUT, Device 12, Output 9     // HYD ENG 1 PUMP SW AMBER LIGHT (SIOC)
    This solve the problem of some white lights not working for me, and could be a solution to limit testbits and simplify code.

    Great job Nico !

  7. #7
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    Quote Originally Posted by Jean-philippe View Post
    About the white lights, as they are only backlighting lights, and always follow the mecanical switch status, I found a solution which limits the SIOC workload with testbits. I associate the light directly with the switch like this (example)
    Hmm, this has as drawback that the ON light will also lit in a cold and dark cockpit .... Note that there is no real workload involved for SIOC testing bits; Only if the var (3188 ) changes value, SIOC will execute the TESTBIT function. I/we better find out the right power source. Nico

  8. #8
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    That's right Nico. It is just a solution for me to have all the white lights working until you find the problem. Good remark about the cold & dark situation.

    I think I know where is the problem. Did you code all the white lights with gT38 bus ? As you can see within Hardy's documentation, gT38 drives white lights only for some panels. I remember I asked him before about that. All the panels listed under the related bus also concerns the associated white lights if nothing is precised. For example, the white lights of cabin altitude panel (MAN L and MAN R switches) are driven by gT44 bus. Now the reverse example. Jettison panels backlighting is driven by gT44 but but NOT the associated white lights (NOOZLE L, NOOZLE R, AUTOSTART, CON IGNITION). These lights are driven by gT38. Just an idea.

  9. #9
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    No I did not code ALL white lights with gT38 bus, just most of the ones you have problems with. The MAN L and MAN R for instance are driven by gT44 bus. Do they work as expected? Nico

  10. #10
    75+ Posting Member
    Join Date
    Jun 2011
    Location
    FRANCE
    Posts
    121
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Overhead panel

    No, these two lights are always OFF.

Page 1 of 3 123 LastLast