Results 1 to 4 of 4
  1. #1
    150+ Forum Groupie
    Join Date
    Jul 2006
    Location
    Kansas
    Posts
    157
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    using multiple offsets with the USBOutputs card for a takeoff effect.

    I want to use three offest to trigger an output with the USBOutputs card. Is this possible?

    When engine one and and engine two are at full throttle and if the landing gear is down I want it to trigger an output. If either engine is not in full power or if the landing gear is up I want the output to turn off.

    I can currently control the output with one of the three offsets(always the last one that is listed), but not with all three at the same time.

    Here is my code where Im only using one of the three offsets since that is the only way I can currently trigger an output. How can I use all three offsets at once to control the output?

    Var 0005 name lowspeed2, Link FSUIPC_INOUT, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect
    Var 0006 name lowspeed3, Link FSUIPC_INOUT, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect
    Var 0007, name Lowspeed1, Link FSUIPC_INOUT, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect
    {
    IF &Lowspeed1 >= 1
    {
    IF &Lowspeed1 <= 15000
    {
    &burner_on = 0
    }
    IF &Lowspeed1 >= 15001
    {
    IF &Lowspeed1 <= 16484
    {
    &burner_on = 1
    }
    }
    }
    }
    Var 0008, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22

    Regards,
    Justin
    Home of the world's first South American DC-8 jetliner.
    Home of the Blue Angel F-4 Phantom simulator.

  2. #2
    767 builder edo17982's Avatar
    Join Date
    Jun 2008
    Location
    Milano, Italy
    Posts
    76
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: using multiple offsets with the USBOutputs card for a takeoff effect.

    Code:
    Var 0005 name Eng2, Link FSUIPC_IN, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect
    {
      CALL &Control
    }
    Var 0006 name ldgGear, Link FSUIPC_IN, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect 
    {
      CALL &Control
    }
    Var 0007, name Eng1, Link FSUIPC_IN, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect
    {
      CALL &Control
    }
    
    Var 0008, name Control, Link SUBRUTINE
    {
      C0 = &Eng1 >= 15001
      C1 = &Eng2 >= 15001
      IF C0 AND C1
      {
        IF &LdgGear = 16383
        {
          &burner_on = 1
        }
        ELSE
        {
           &burner_on = 0
        }
      }
    }
    Var 0009, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22

  3. #3
    150+ Forum Groupie
    Join Date
    Jul 2006
    Location
    Kansas
    Posts
    157
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: using multiple offsets with the USBOutputs card for a takeoff effect.

    Thank you edo17982.

    Ive been using SIOC for one week and am now learning subrutines This will also enable me to make some changes to other parts of the script I wrote.

    One more question, Would it be possible to replace the landing gear offset with the true airspeed offset? It would be nice to have my var 0006 controlled by an airspeed of 0 to 300 knots rather than by the landing gear position. If this is possible with the USBOutputs card I need help to write this script as well, i dont understand how to use the airspeed offsets.

    Regards,
    Justin

    Quote Originally Posted by edo17982 View Post
    Code:
    Var 0005 name Eng2, Link FSUIPC_IN, Offset $092E, Length 2 // (eng2 offset) lowspeed Afterburner Effect
    {
      CALL &Control
    }
    Var 0006 name ldgGear, Link FSUIPC_IN, Offset $0BEC, Length 4 // (nose gear offset) lowspeed Afterburner Effect 
    {
      CALL &Control
    }
    Var 0007, name Eng1, Link FSUIPC_IN, Offset $0896, Length 2 // (eng1 offset) lowspeed Afterburner Effect
    {
      CALL &Control
    }
    
    Var 0008, name Control, Link SUBRUTINE
    {
      C0 = &Eng1 >= 15001
      C1 = &Eng2 >= 15001
      IF C0 AND C1
      {
        IF &LdgGear = 16383
        {
          &burner_on = 1
        }
        ELSE
        {
           &burner_on = 0
        }
      }
    }
    Var 0009, name burner_on, Link IOCARD_OUT, Output 10 // Low speed afterburner effect - motor 22
    Home of the world's first South American DC-8 jetliner.
    Home of the Blue Angel F-4 Phantom simulator.

  4. #4
    767 builder edo17982's Avatar
    Join Date
    Jun 2008
    Location
    Milano, Italy
    Posts
    76
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: using multiple offsets with the USBOutputs card for a takeoff effect.

    You can do whatever you want just need to tell exactly what behavior you want to be triggered...

Similar Threads

  1. Learn from my mistake with USBOutputs card
    By peterkwu in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 02-13-2010, 06:01 PM
  2. Test USBOutputs
    By peterkwu in forum OpenCockpits General Discussion
    Replies: 3
    Last Post: 03-01-2009, 04:20 PM
  3. Multiple video card question
    By XOrionFE in forum Computer Hardware Setup
    Replies: 10
    Last Post: 02-05-2009, 10:48 AM
  4. SIOC.INI for 737NG (MCP,USBKeys, USBOutputs etc)
    By BoeingNG in forum OpenCockpits General Discussion
    Replies: 0
    Last Post: 07-12-2008, 09:17 AM
  5. Multiple Offsets per input??
    By imported_MattO in forum FS2Phidget Users
    Replies: 2
    Last Post: 12-22-2004, 08:38 PM