Change OCP4NGX_v4.0_OC script[SOLVED]
Posted: Thu Jun 01, 2017 5:55 pm
Hi guys,
I'm testing OCP4NGX_v4.0_OC file on my homemade cockpit and it works great, but I think some variables are missed. I'm talking about some Wiper selectors' states. I found only PARK state in the script, but not INT, LOW and HIGH states.
They exist in the PMDG B737 SDK:
// Wipers
unsigned char OH_WiperLSelector; // 0: PARK 1: INT 2: LOW 3:HIGH
unsigned char OH_WiperRSelector; // 0: PARK 1: INT 2: LOW 3:HIGH
I find these in the "SIOC offsets for B737_VARS.txt" file:
1116 = OH_WiperLSelector);
1117 = OH_WiperRSelector);
I try to add some script rows in OCP4NGX_v4.0_OC file but it doesn't work. Below you can see what I added in the script:
Var 5555, name WIPER_L_SW_INT, Link IOCARD_SW, Device 30, Input 90 // L Wiper INT ROT
{
IF &WIPER_L_SW_INT = 1
{
&WIPER_L_C = 1
}
}
SIOC give me an error on Phase 2 when I compile the .txt file. What's wrong?
So how can I add INT - LOW - HIGH Wiper positions on OCP4NGX_v4.0_OC file?
Thank you in advance for your help.
Regards
Marco
I'm testing OCP4NGX_v4.0_OC file on my homemade cockpit and it works great, but I think some variables are missed. I'm talking about some Wiper selectors' states. I found only PARK state in the script, but not INT, LOW and HIGH states.
They exist in the PMDG B737 SDK:
// Wipers
unsigned char OH_WiperLSelector; // 0: PARK 1: INT 2: LOW 3:HIGH
unsigned char OH_WiperRSelector; // 0: PARK 1: INT 2: LOW 3:HIGH
I find these in the "SIOC offsets for B737_VARS.txt" file:
1116 = OH_WiperLSelector);
1117 = OH_WiperRSelector);
I try to add some script rows in OCP4NGX_v4.0_OC file but it doesn't work. Below you can see what I added in the script:
Var 5555, name WIPER_L_SW_INT, Link IOCARD_SW, Device 30, Input 90 // L Wiper INT ROT
{
IF &WIPER_L_SW_INT = 1
{
&WIPER_L_C = 1
}
}
SIOC give me an error on Phase 2 when I compile the .txt file. What's wrong?
So how can I add INT - LOW - HIGH Wiper positions on OCP4NGX_v4.0_OC file?
Thank you in advance for your help.
Regards
Marco