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

Thread: Help with DP

  1. #1
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Help with DP

    Please see the script below adapted from the example given.
    I have a DP in the Active Display But not the Standby.
    The OpenCockpits COM cards have DP at output 20 and 21.
    I am sure something basic I have done wrong here. ... Greg
    Also, can someone kindly confirm the Acceleration and Type for the rotary encoders on OC Com Cards please.


    ///////////////////////////////////////////////////////////////////////////
    //
    // Title: PSX RCP Left
    // Note: Numeric values only (VHF: 123.456 or HF 12.3456)
    //
    // psxseecon
    // version: 1.0.20
    //
    // Date: 6 Oct 2014
    //
    // Author: Nico Kaan
    // The Netherlands
    // www.lekseecon.nl
    //
    // ************************************************************************


    // rotary encoders


    Var 3691 Static name BigFreqL Link IOCARD_ENCODER Device 1 Input 0 Aceleration 2 Type 2
    Var 3692 Static name SmallFreqL Link IOCARD_ENCODER Device 1 Input 4 Aceleration 2 Type 2


    // active standby toggle


    Var 3607 Static Link IOCARD_SW Device 1 Input 6 Type P


    // Indicator lights


    // Var 2092 Static name IndsRcpL
    {
    //&O_VhfL_Li = TESTBIT &IndsRcpL 20
    //&O_VhfL_Ri = TESTBIT &IndsRcpL 21


    // and so on for the other lights ...


    }


    Var 3022 Static name RcpLa
    {
    CALL &DecBCD6 &RcpLa
    &D_VhfL_A0 = &Digit0 // 6 Digits working
    &D_VhfL_A1 = &Digit1 // note I have only a 5 digits display, so I skip Digit0
    &D_VhfL_A2 = &Digit2
    &D_VhfL_A3 = &Digit3
    &D_VhfL_A4 = &Digit4
    &D_VhfL_A5 = &Digit5
    &O_DPVhfL_A = TESTBIT &RcpLa 20
    // &O_DPHfL_A = TESTBIT &RcpLa 25
    }


    Var 3023 Static name RcpLs
    {
    CALL &DecBCD6 &RcpLs
    &D_VhfL_S0 = &Digit0
    &D_VhfL_S1 = &Digit1 // note I have only a 5 digits display, so I skip Digit0
    &D_VhfL_S2 = &Digit2
    &D_VhfL_S3 = &Digit3
    &D_VhfL_S4 = &Digit4
    &D_VhfL_S5 = &Digit5
    &O_DPVhfL_S = TESTBIT &RcpLs 21 // 1.Important left DP 20only
    // &O_DPHfL_S = TESTBIT &RcpLs 20
    }




    Var 9000 name D_VhfL_A0 Link IOCARD_DISPLAY Device 1 Digit 0 Numbers 1
    Var 9001 name D_VhfL_A1 Link IOCARD_DISPLAY Device 1 Digit 1 Numbers 1
    Var 9002 name D_VhfL_A2 Link IOCARD_DISPLAY Device 1 Digit 2 Numbers 1
    Var 9003 name D_VhfL_A3 Link IOCARD_DISPLAY Device 1 Digit 3 Numbers 1
    Var 9004 name D_VhfL_A4 Link IOCARD_DISPLAY Device 1 Digit 4 Numbers 1
    Var 9005 name D_VhfL_A5 Link IOCARD_DISPLAY Device 1 Digit 5 Numbers 1




    Var 9006 name D_VhfL_S0 Link IOCARD_DISPLAY Device 1 Digit 6 Numbers 1
    Var 9007 name D_VhfL_S1 Link IOCARD_DISPLAY Device 1 Digit 7 Numbers 1
    Var 9008 name D_VhfL_S2 Link IOCARD_DISPLAY Device 1 Digit 8 Numbers 1
    Var 9009 name D_VhfL_S3 Link IOCARD_DISPLAY Device 1 Digit 9 Numbers 1
    Var 9010 name D_VhfL_S4 Link IOCARD_DISPLAY Device 1 Digit 10 Numbers 1
    Var 9011 name D_VhfL_S5 Link IOCARD_DISPLAY Device 1 Digit 11 Numbers 1

    // Var 9012 name O_VhfL_Li Link IOCARD_OUT Device 1 Output 20
    // Var 9013 name O_VhfL_Ri Link IOCARD_OUT Device 1 Output 21
    Var 9014 name O_DPVhfL_A Link IOCARD_OUT Device 1 Output 20
    Var 9015 name O_DPVhfL_S Link IOCARD_OUT Device 1 Output 21
    // Var 9014 name O_DPHfL_S Link IOCARD_OUT Device 1 Output ?? // don't have this yet
    // Var 9015 name O_DPHffL_A Link IOCARD_OUT Device 1 Output ?? // ,,


    // eof
    ///////////////////////////////////////////////////////////////////////////

  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: Help with DP

    Hi Greg,
    Quote Originally Posted by gregh View Post
    I have a DP in the Active Display
    That's pure luck

    Quote Originally Posted by gregh View Post
    But not the Standby.
    Change these lines:

    &O_DPVhfL_A = TESTBIT &RcpLa 20
    &O_DPVhfL_S = TESTBIT &RcpLs 21 // 1.Important left DP 20only

    into:

    &O_DPVhfL_A = TESTBIT &RcpLa 24
    &O_DPVhfL_S = TESTBIT &RcpLs 24

    See the definition of the RcpLa and RcpLs variables in my "SIOC variables (by Qcode).txt" file:
    Qs458, RcpLa , 3022, , BCD6 + b 24(DP VHF) + b 25 (DP HF)
    Qs458, RcpLs , 3023, , BCD6 + b 24(DP VHF) + b 25 (DP HF)

    Quote Originally Posted by gregh View Post
    Also, can someone kindly confirm the Acceleration and Type for the rotary encoders on OC Com Cards please.
    Type 2 is ok.

    Aceleration is not a property of a card, it works the same everywhere. It defines how fast the value will increment or decrement when you turn the knob. Just experiment with different settings (1, 2, 3, 4) and see what you like.
    However, for this Rcp application I would recommend Aceleration 1.

    Regards,
    Nico
    Last edited by kiek; 12-21-2014 at 04:20 AM.

  3. #3
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Help with DP

    Thanks Nico,
    On the RCP Left that worked.
    On RCP Right still no DP. I guess I set to 24 as well, as all the L,C,R DP definitions are using 24

    Also Aceleration 1. Type 2.
    The Bigfrq Knob is working and counting ok.
    The small freq knob is backward and also jumps 10 instead of the normal 5khz every 4 clicks
    Any ideas on this one, how to fix it?
    Thanks so much for your attention.
    Greg

  4. #4
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Help with DP

    This is RCP Right code.

    ///////////////////////////////////////////////////////////////////////////
    //
    // Title: PSX RCP Right
    // Note: Numeric values only (VHF: 123.456 or HF 12.3456)
    //
    // psxseecon
    // version: 1.0.20
    //
    // Date: 6 Oct 2014
    //
    // Author: Nico Kaan
    // The Netherlands
    // www.lekseecon.nl
    //
    // ************************************************************************


    // rotary encoders


    Var 3697 Static name BigFreqR Link IOCARD_ENCODER Device 2 Input 0 Aceleration 1 Type 3
    Var 3698 Static name SmallFreqR Link IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 3


    // active standby toggle


    Var 3627 Static Link IOCARD_SW Device 2 Input 6 Type P


    // Indicator lights


    // Var 2094 Static name IndsRcpR
    // {
    //&O_VhfR_Li = TESTBIT &IndsRcpR 20


    // and so on for the other lights ...


    // }


    Var 3026 Static name RcpRa
    {
    CALL &DecBCD6 &RcpRa
    &D_VhfR_A0 = &Digit0
    &D_VhfR_A1 = &Digit1 // note I have only a 5 digits display, so I skip Digit0
    &D_VhfR_A2 = &Digit2
    &D_VhfR_A3 = &Digit3
    &D_VhfR_A4 = &Digit4
    &D_VhfR_A5 = &Digit5
    &O_DPVhfR_A = TESTBIT &RcpRa 24
    // &O_DPHfR_A = TESTBIT &RcpRa 25
    }


    Var 3027 Static name RcpRs
    {
    CALL &DecBCD6 &RcpRs
    &D_VhfR_S0 = &Digit0
    &D_VhfR_S1 = &Digit1 // note I have only a 5 digits display, so I skip Digit0
    &D_VhfR_S2 = &Digit2
    &D_VhfR_S3 = &Digit3
    &D_VhfR_S4 = &Digit4
    &D_VhfR_S5 = &Digit5
    &O_DPVhfR_S = TESTBIT &RcpRs 24
    // &O_DPHfR_S = TESTBIT &RcpRs 25
    }




    Var 9020 name D_VhfR_A0 Link IOCARD_DISPLAY Device 2 Digit 0 Numbers 1
    Var 9021 name D_VhfR_A1 Link IOCARD_DISPLAY Device 2 Digit 1 Numbers 1
    Var 9022 name D_VhfR_A2 Link IOCARD_DISPLAY Device 2 Digit 2 Numbers 1
    Var 9023 name D_VhfR_A3 Link IOCARD_DISPLAY Device 2 Digit 3 Numbers 1
    Var 9024 name D_VhfR_A4 Link IOCARD_DISPLAY Device 2 Digit 4 Numbers 1
    Var 9025 name D_VhfR_A5 Link IOCARD_DISPLAY Device 2 Digit 5 Numbers 1




    Var 9026 name D_VhfR_S0 Link IOCARD_DISPLAY Device 2 Digit 6 Numbers 1
    Var 9027 name D_VhfR_S1 Link IOCARD_DISPLAY Device 2 Digit 7 Numbers 1
    Var 9028 name D_VhfR_S2 Link IOCARD_DISPLAY Device 2 Digit 8 Numbers 1
    Var 9029 name D_VhfR_S3 Link IOCARD_DISPLAY Device 2 Digit 9 Numbers 1
    Var 9030 name D_VhfR_S4 Link IOCARD_DISPLAY Device 2 Digit 10 Numbers 1
    Var 9031 name D_VhfR_S5 Link IOCARD_DISPLAY Device 2 Digit 11 Numbers 1

    // Var 9032 name O_VhfR_Ri Link IOCARD_OUT Device 2 Output 35
    Var 9033 name O_DPVhfR_A Link IOCARD_OUT Device 2 Output 20
    Var 9034 name O_DPVhfR_S Link IOCARD_OUT Device 2 Output 21
    // Var 9014 name O_DPHfR_S Link IOCARD_OUT Device 2 Output ?? // don't have this yet
    // Var 9015 name O_DPHffR_A Link IOCARD_OUT Device 2 Output ?? // ,,


    // eof
    ///////////////////////////////////////////////////////////////////////////

  5. #5
    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: Help with DP

    Type 3? No, it should be Type 2

    And to change the direction of the rotary, change this line

    Var 3698 Static name SmallFreqR Link IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 3

    into

    Var 3698 Static name SmallFreqR

    Var 9100 name RO_SmallR IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2
    {
    &SmallFreqR = &RO_SmallR * -1
    }

    Cheers,
    Nico

  6. #6
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Help with DP

    Phase 2
    ERROR! -
    Line: 314 Var 0028 name RO_SmallR IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2
    ==> IOCARD_ENCODER
    %FAILED%
    * COMPILATION ERROR*



    // rotary encoders


    Var 3697 Static name BigFreqR Link IOCARD_ENCODER Device 2 Input 0 Aceleration 1 Type 2
    // Var 3698 Static name SmallFreqR Link IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2


    Var 3698 Static name SmallFreqR


    Var 9100 name RO_SmallR IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2
    {
    &SmallFreqR = &RO_SmallR * -1
    }






    // active standby toggle


    Var 3627 Static Link IOCARD_SW Device 2 Input 6 Type P


    // Indicator lights


    // Var 2094 Static name IndsRcpR




    Sorry Nico if its me.
    Greg

  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: Help with DP

    Sorry, I forgot the work Link:
    Quote Originally Posted by kiek View Post
    Var 3698 Static name SmallFreqR Link IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 3

    into

    Var 3698 Static name SmallFreqR

    Var 9100 name RO_SmallR IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2
    {
    &SmallFreqR = &RO_SmallR * -1
    }
    Var 3698 Static name SmallFreqR

    Var 9100 name RO_SmallR Link IOCARD_ENCODER Device 2 Input 4 Aceleration 1 Type 2
    {
    &SmallFreqR = &RO_SmallR * -1
    }

  8. #8
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Help with DP

    Hi Nico,
    The small knob is working in the right direction but.
    It takes many clicks turns before I get even a single 5khz step.
    The big knob and small knob behavior is totally different, big knob ok.
    (do you need anything from me for diagnosis?)
    Regards
    Greg

  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: Help with DP

    Quote Originally Posted by gregh View Post
    It takes many clicks turns before I get even a single 5khz step.
    That's strange. The big and small knobs are serviced with the same software in PSXseecon (and PSX)...Over here, in my sim, it works as expected.

    Are you sure that the small knob rotary encoder is of the right specs for Type 2? Read more here: http://www.lekseecon.nl/iocards.html#encoder
    Last edited by kiek; 12-22-2014 at 11:06 AM.

  10. #10
    25+ Posting Member
    Join Date
    May 2008
    Location
    Perth
    Posts
    40
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Help with DP

    Hi Nico,
    This is my OC Modules, they work fine with IOCModules software as testing. And used to work fine with PMDG.
    so the rotary encoder are what come with the OC module.
    So so to confirm, I did not build the modules they are pre built OC Modules .
    Its strange why OC would wire the small knob back to front, yet must correct it in there own software.??
    Using SIOC Monitor the small knob pattern is.
    Clockwize Anticlockwize
    L L L L
    L H H L
    H H H H
    H L L H
    L L L H
    Hope that helps. Greg

Page 1 of 3 123 LastLast