mvr1918 wrote:The Flap servo should be connected to Output 1 of The Servo Card.
Connect Servo Card USB to PC.
Start OC4BAv4.
Click Config
Click PMDG B737
Click OCP4NGX_v4.4.ssi
Now all P&P modules should be listed in the Cockpit configuration box
Click detected Servo Card in Modules box
Click MIP_ServoCard1 in Operation box
Now The MIP_Servo should be added to the Cockpit configuration box
Exit Config
Hi,
When I selected the servo (-61), the servo started jumping from about the flaps 5 position to about the flaps 30 position. Once I selected MIP servo for the operation and exited the config screen, I selected the 737 icon and the flap indicator goes to the less than flaps up position and stops. When the flaps are moving, the servo doesn't move. The Servo USB number is -61. When I use the SIOC monitor, the Flaps Up value is 235 and Flaps 40 is 794. The flap indicator I'm using only has one needle. I guess if any of the code has to be modified, it could be either one (L or R)? Which values need to be changed for this to work?
The servo is connected to the Servo 1 jumper. In SIOC monitor, IDX = 36 and Device =61
Here's part of the script that I exported. If you need any other part or the whole thing, please let me know, thanks.:
Var 0331, name servo_flaps, Link USB_SERVOS, Device 36, Output 1, PosL 160, PosC 511, PosR 1000
Var 0428, name flaps, static, Value 0
{
L0 = &flaps
L2 = L0
C0 = L0 >= 0
C1 = L0 <= 1000
IF C0 AND C1
{
&flaps_low_val = 0
&flaps_high_val = 1000
&servo_high_val = 160
&servo_low_val = 240 // 0 and 1
}
C0 = L0 >= 1000
C1 = L0 <= 2000
IF C0 AND C1
{
&flaps_low_val = 1000
&flaps_high_val = 2000
&servo_high_val = 240
&servo_low_val = 350 // 1 and 2
}
C0 = L0 >= 2000
C1 = L0 <= 5000
IF C0 AND C1
{
&flaps_low_val = 2000
&flaps_high_val = 5000
&servo_high_val = 350
&servo_low_val = 460 // 2 and 5
}
C0 = L0 >= 5000
C1 = L0 <= 10000
IF C0 AND C1
{
&flaps_low_val = 5000
&flaps_high_val = 10000
&servo_high_val = 460
&servo_low_val = 570 // 5 and 10
}
C0 = L0 >= 10000
C1 = L0 <= 15000
IF C0 AND C1
{
&flaps_low_val = 10000
&flaps_high_val = 15000
&servo_high_val = 570
&servo_low_val = 650 // 10 and 15
}
C0 = L0 >= 15000
C1 = L0 <= 25000
IF C0 AND C1
{
&flaps_low_val = 15000
&flaps_high_val = 25000
&servo_high_val = 650
&servo_low_val = 740 // 15 and 25
}
C0 = L0 >= 25000
C1 = L0 <= 30000
IF C0 AND C1
{
&flaps_low_val = 25000
&flaps_high_val = 30000
&servo_high_val = 740
&servo_low_val = 830 // 25 and 30
}
C0 = L0 >= 30000
C1 = L0 <= 40000
IF C0 AND C1
{
&flaps_low_val = 30000
&flaps_high_val = 40000
&servo_high_val = 830
&servo_low_val = 940 // 30 and 40
}
&servo_calc = &servo_low_val - &servo_high_val
&flaps_calc = &flaps_high_val - &flaps_low_val
&flaps_val = L0 - &flaps_low_val
&servo_val = &servo_calc * &flaps_val
&servo_val = &servo_val / &flaps_calc
L1 = &servo_high_val + &servo_val
&servo_flaps = L1
}
Var 0332, name servo_val
Var 0333, name flaps_calc
Var 0334, name servo_calc
Var 0335, name flaps_val
Var 0336, name flaps_low_val
Var 0337, name flaps_high_val
Var 0338, name servo_high_val
Var 0339, name servo_low_val
Var 0340, name servo_flaps2, Link USB_SERVOS, Device 36, Output 2, PosL 160, PosC 511, PosR 1000
Var 0430, name flaps2, static, Value 0
{
L0 = &flaps2
L2 = L0
C0 = L0 >= 0
C1 = L0 <= 1000
IF C0 AND C1
{
&flaps_low_v2 = 0
&flaps_high_v2 = 1000
&servo_high_v2 = 169
&servo_low_v2 = 281 // 0 and 1
}
C0 = L0 >= 1000
C1 = L0 <= 2000
IF C0 AND C1
{
&flaps_low_v2 = 1000
&flaps_high_v2 = 2000
&servo_high_v2 = 281
&servo_low_v2 = 480 // 1 and 2
}
C0 = L0 >= 2000
C1 = L0 <= 5000
IF C0 AND C1
{
&flaps_low_v2 = 2000
&flaps_high_v2 = 5000
&servo_high_v2 = 480
&servo_low_v2 = 536 // 2 and 5
}
C0 = L0 >= 5000
C1 = L0 <= 10000
IF C0 AND C1
{
&flaps_low_v2 = 5000
&flaps_high_v2 = 10000
&servo_high_v2 = 536
&servo_low_v2 = 642 // 5 and 10
}
C0 = L0 >= 10000
C1 = L0 <= 15000
IF C0 AND C1
{
&flaps_low_v2 = 10000
&flaps_high_v2 = 15000
&servo_high_v2 = 642
&servo_low_v2 = 745 // 10 and 15
}
C0 = L0 >= 15000
C1 = L0 <= 25000
IF C0 AND C1
{
&flaps_low_v2 = 15000
&flaps_high_v2 = 25000
&servo_high_v2 = 745
&servo_low_v2 = 835 // 15 and 25
}
C0 = L0 >= 25000
C1 = L0 <= 30000
IF C0 AND C1
{
&flaps_low_v2 = 25000
&flaps_high_v2 = 30000
&servo_high_v2 = 835
&servo_low_v2 = 932 // 25 and 30
}
C0 = L0 >= 30000
C1 = L0 <= 40000
IF C0 AND C1
{
&flaps_low_v2 = 30000
&flaps_high_v2 = 40000
&servo_high_v2 = 932
&servo_low_v2 = 1023 // 30 and 40
}
&servo_calc2 = &servo_low_v2 - &servo_high_v2
&flaps_calc2 = &flaps_high_v2 - &flaps_low_v2
&flaps_v2 = L0 - &flaps_low_v2
&servo_v2 = &servo_calc2 * &flaps_v2
&servo_v2 = &servo_v2 / &flaps_calc2
L1 = &servo_high_v2 + &servo_v2
&servo_flaps2 = L1
}
Var 0341, name servo_v2
Var 0342, name flaps_calc2
Var 0343, name servo_calc2
Var 0344, name flaps_v2
Var 0345, name flaps_low_v2
Var 0346, name flaps_high_v2
Var 0347, name servo_high_v2
Var 0348, name servo_low_v2