Results 1 to 2 of 2
  1. #1
    25+ Posting Member
    Join Date
    Mar 2008
    Location
    BRAZIL
    Posts
    44
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Flaps Script Help

    Hello
    Does any body have a SIOC script to be use with USB servo and to light up the annunciators from MIP?
    Thaks

    Cesar

  2. #2
    25+ Posting Member
    Join Date
    Mar 2008
    Location
    Wrexham,N.Wales,UK
    Posts
    33
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Flaps Script

    Cesar,

    To light up annunciator you can read in FSUICP Offset for flap position and let the Servos do the flaps as follows:
    PMDG 737NG 800-900
    ===================================================
    Var 0001, name FI_FlpsPos, Link FSUIPC_IN, Offset $0BE0, Length 4
    {
    IF &FI_FlpsPos = 0 // Flaps Up
    {
    &Flaps_Ext = 0
    &Flaps_Trans = 0
    }
    C0 = &FI_FlpsPos > 0
    C1 = &FI_FlpsPos < 409
    IF C0 AND C1 // LE Flaps in Transit
    {
    &Flaps_Trans = 1
    &Flaps_Ext = 0
    }
    IF &FI_FlpsPos = 409 // Flap 1
    {
    &Flaps_Ext = 1
    &Flaps_Trans = 0
    }
    IF &FI_FlpsPos = 819 // Flap 2
    {
    &Flaps_Ext = 1
    &Flaps_Trans = 0
    }
    IF &FI_FlpsPos = 2047 // Flap 5
    {
    &Flaps_Ext = 1
    &Flaps_Trans = 0
    }
    C0 = &FI_FlpsPos > 2047
    C1 = &FI_FlpsPos < 4095
    IF C0 AND C1 // LE Flaps in Transit
    {
    &Flaps_Ext = 0
    &Flaps_Trans = 1
    }
    IF &FI_FlpsPos = 4095 // Flap 10
    {
    &Flaps_Ext = 1
    &Flaps_Trans = 0
    }
    }

    Var 0004, name Flaps_Trans, Link IOCARD_OUT, Output 9 // Flaps in Transit Amber LED

    Var 0003, name Flaps_Ext, Link IOCARD_OUT, Output 10 // Flaps Extended Green LED

Similar Threads

  1. Need Help with Transponder Script
    By colt45 in forum OpenCockpits General Discussion
    Replies: 4
    Last Post: 09-14-2010, 07:21 PM
  2. Opencockpits 747 script
    By raam123 in forum MyCockpit Support:
    Replies: 0
    Last Post: 07-31-2009, 05:09 PM
  3. Flaps with servo script
    By Abrupto in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 07-06-2009, 08:28 AM
  4. PM MCP SIOC Script
    By MortenHa in forum OpenCockpits General Discussion
    Replies: 9
    Last Post: 02-18-2009, 12:18 PM
  5. [script] pmscr737.txt
    By null null in forum PM General Q & A
    Replies: 1
    Last Post: 12-02-2004, 06:57 AM