Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Big SIOC Task

  1. #21
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Big SIOC Task

    Nico

    Lets hope that there are some pleasant surprises within the list

    Regards

    David

  2. #22
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Big SIOC Task

    Look at next post please.

  3. #23
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Big SIOC Task

    Hi everyone,

    I'mh aving trouble with Offset $3B70 in SIOC. Basically, I have interfaced this Offset (EGT1 Value) to a real-life EGT Gauge... But for some reason the Instrument (real life) swings massively to the maximum scale deflection after starting SIOC and FSX.

    The following SIOC Script controls offset $3B70 nad the EGT1 gauge:

    Code:
    Var 7777, Link FSUIPC_IN, Offset $3B70, Length 2 // EGT1
    {  
    L0 = DIV V7777 2 // FSUIPC Offset Variable = L0 / 2
      L0 = ABS L0     // L0 not signed 
      L2 = L0    
      IF L0 <= 100     // First sector
      {
        L1 = L2 * 0.07     // (7 steps/100 values) = 0.07
      }
      ELSE     // Is a greater value
      {
        L2 = L0 - 100     //  L2 only have values for next sector
        IF L0 <= 200    // Second sector
        {
          L1 = L2 * 1.37     // (137 steps / 100 values) = 1.37
          L1 = L1 + 7     // Add steps of others sectors (+7)
        }
        ELSE
        {
          L2 = L0 - 200    // L2 only have values for next sector
          IF L0 <= 500     // 3. Sector
          {
            L1 = L2 * 1.463    // ( 439 / 300) = 1.463
            L1 = L1 + 144     // Add steps of others sectors (7 + 137) 
            }
            ELSE     // Out of range
            {
          L2 = L0 - 500     //  L2 only have values for next sector
          IF L0 <= 800    // 4. sector
        {
          L1 = L2 * 1.437     // (431 steps / 300 values) = 1.437
          L1 = L1 + 583     // Add steps of others sectors (7 + 137 + 439)
         }
         ELSE
         {
              L1 = 1014        // Max. position
            }
          }
        }
       }
    &Servo5 = 0 + L1     // Add to minimum (0)
    }
    
    Var 5676, name Servo5, Link USB_SERVOS, Output 5, PosL 0, PosC 507, PosR 1014, Type 2 // EGT1 Servo
    The code above does make the Instrument move, but definitely incorrectly. All Step values/integers etc are correct, so I'm wondering is there an operation I need to apply to Offset $3B70? Maybe divide it? I'm not sure, doesn't mention in FSUIPC Manual/Offset Table.

    I have tried dividing the EGT1 value by 2 and still no luck. It brings it back a tiny bit but nowhere near the 700+ degrees it is off by

    Thanks,

    Jack

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Sioc / PM
    By mpl330 in forum OpenCockpits General Discussion
    Replies: 6
    Last Post: 02-07-2010, 01:26 PM
  2. Where can I get SIOC, please?
    By Jake 747 400 in forum General Builder Questions All Aircraft Types
    Replies: 1
    Last Post: 11-18-2009, 06:10 PM
  3. SIOC Help
    By CessnaGuy in forum I/O Interfacing and Hardware
    Replies: 5
    Last Post: 10-25-2009, 10:00 AM
  4. SIOC for MIP?
    By HondaCop in forum I/O Interfacing Hardware and Software
    Replies: 17
    Last Post: 07-21-2009, 07:48 AM
  5. N1 SET and SPD REF - SIOC
    By paoloj in forum OpenCockpits General Discussion
    Replies: 0
    Last Post: 10-28-2008, 04:23 AM