Results 1 to 3 of 3
  1. #1
    10+ Posting Member
    Join Date
    Feb 2011
    Location
    Basel, CH
    Posts
    17
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    OC MCP Digits "111" instead of OFF

    Hi everyone! I've this issue with the iFLY (FS2004) and OC MCP scrpit:
    when allt the digits should be off (cold and dark) they show numbers "1"
    CRS: 111 SPD: 1.11 HDG ALT: 11111
    (V/S is not affected).
    In VNAV mode, the digits that should be off (SPD) again show "1.11".
    How can I edit the script in order to solve this problem?


    This is the part of the script relative to the SPD digits:
    Var 0525, name SPEED_100, Link IOCP, Offset 7 // SPD_100_Status
    {
    if &SPEED_100 > 9
    {
    &D_SPEED3 = -999999
    &DECIMAL = 1
    }
    else
    {
    &D_SPEED3 = &SPEED_100
    &DECIMAL = 0
    }
    }
    Var 0530, name SPEED_10, Link IOCP, Offset 8 // SPD_10_Status
    {
    &D_SPEED2 = &SPEED_10
    }
    Var 0535, name SPEED_1, Link IOCP, Offset 9 // SPD_1_Status
    {
    &D_SPEED1 = &SPEED_1
    }

    Thanx in advance!

  2. #2
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: OC MCP Digits "111" instead of OFF

    Hi,
    I'm not sure, but it looks caused by a change in semantics of Opencockjpits Display cards.
    The blank 'code digit' 10 used to be understood by the Display card but since (two?) years they no longer do.
    Hence you have to check a digit for a blank code and if so send the real blank code -99999

    Here's a modified script:

    Code:
    Var 0525, name SPEED_100, Link IOCP, Offset 7 // SPD_100_Status
    {
      IF &SPEED_100 > 9
      {
        &D_SPEED3 = -999999
        &DECIMAL = 1
      }
      ELSE
      {
        L0 = &SPEED_100
        IF L0 = 10
        {
          L0 = -999999
        }
        &D_SPEED3 = L0
        &DECIMAL = 0
      }
    }
    
    Var 0530, name SPEED_10, Link IOCP, Offset 8 // SPD_10_Status
    {
      L0 = &SPEED_10
      IF L0 = 10
      {
        L0 = -999999
      }
      &D_SPEED2 = L0
    }
    
    
    Var 0535, name SPEED_1, Link IOCP, Offset 9 // SPD_1_Status
    {
      L0 = &SPEED_1
      IF L0 = 10
      {
        L0 = -999999
      }
      &D_SPEED1 = L0
    }
    regards,
    Nico Kaan
    www.lekseecon.nl

  3. #3
    10+ Posting Member
    Join Date
    Feb 2011
    Location
    Basel, CH
    Posts
    17
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: OC MCP Digits "111" instead of OFF

    Thanx, I'll try it!