Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Sep 2010
    Location
    athens
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    FLAPS GAUGE /SIOC CODE

    Dear all
    I need help with about my flaps gauge.
    I have a flaps gauge (for 737 800) 45 degrees which running with a sioc code.The servo is Hitec HS311 90degrees turn.
    The problem is that i have limited turn.It starts at 0 level and when is it 45 degrees my gause shows 10.
    Where is the wrong?
    1)Do i have to change something in the servo?
    2)Is the sioc code wrong or do i have to change some values?

    Please give me some ideas
    Thanks
    Paris

    MY SIOC SCRIPT IS:Var 0000, Value 0

    Var 0001, Link FSUIPC_IN, Offset $0BE0, Length 4 // flaps
    {
    L0 = V0001
    L0 = ABS L0
    L2 = L0
    IF L0 <= 409 // servo 25+160
    {
    L1 = L2 * 0.061 // 24.95
    }
    ELSE
    {
    L2 = L0 - 409
    IF L0 <= 819 // servo 73+160
    {
    L1 = L2 * 0.117 // 47.97
    L1 = L1 + 24.95
    }
    ELSE
    {
    L2 = L0 - 819
    IF L0 <= 2047 // servo 137+160
    {
    L1 = L2 * 0.052 // 63.85
    L1 = L1 + 72.92 // 24.95+47.97
    }
    ELSE
    {
    L2 = L0 - 2047
    IF L0 <= 4095 // servo 187+160
    {
    L1 = L2 * 0.024 // 50.01
    L1 = L1 + 136.77 // 24.95+47.97+63.85
    }
    ELSE
    {
    L2 = L0 - 4095
    IF L0 <= 6143 // servo 251+160
    {
    L1 = L2 * 0.031 // 63.48
    L1 = L1 + 186.78 // 24.95+47.97+63.85+50.01
    }
    ELSE
    {
    L2 = L0 - 6143
    IF L0 <= 10239 // servo 296+160
    {
    L1 = L2 * 0.011 // 45.056
    L1 = L1 + 250.26 // 24.95+47.97+63.85+50.01+63.48
    }
    ELSE
    {
    L2 = L0 - 10239
    IF L0 <= 12287 // servo 340+160
    {
    L1 = L2 * 0.021 // 43.00
    L1 = L1 + 295.32 // 24.95+47.97+63.85+50+63.48+45
    }
    ELSE
    {
    L2 = L0 - 12287
    IF L2 <= 16383
    {
    L1 = L2 * 0.014 // 57.34
    L1 = L1 + 338.32 // 24.95+47.97+63.85+50+63.48+45+43
    }
    }
    }
    }
    }
    }
    }
    }
    &FlapPosServo = L1 + 160
    }

    Var 0010, name FlapPosServo, Link USB_SERVOS, Output 2, PosL 40, PosC 100, PosR 230

  2. #2
    New Member
    Join Date
    Sep 2010
    Location
    athens
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: FLAPS GAUGE /SIOC CODE

    I found that there is a problem with Var 10.
    I run the iocpconsole and at var 10 for flaps 1 i have 315 value and i need 400.For flaps 2 i have 363 value and i need 500

Similar Threads

  1. SIOC code for vertical speed gauge ?
    By markusr in forum OpenCockpits General Discussion
    Replies: 7
    Last Post: 10-22-2010, 07:38 AM
  2. Flight Illusion 737 Flaps Gauge
    By davemckee in forum General Builder Questions All Aircraft Types
    Replies: 4
    Last Post: 05-07-2010, 06:36 PM
  3. Flaps gauge HELP
    By jackel902 in forum Cockpit Parts and Motion Platforms
    Replies: 2
    Last Post: 04-23-2010, 07:39 PM
  4. Flaps gauge
    By Jackpilot in forum General Builder Questions All Aircraft Types
    Replies: 3
    Last Post: 07-15-2008, 02:09 PM
  5. SIOC Code
    By Polmer in forum I/O Interfacing Hardware and Software
    Replies: 6
    Last Post: 12-28-2006, 10:49 AM