# Thread: FLAPS GAUGE /SIOC CODE

1. ## 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?

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. ## 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