COM & NAV TEST Script [SOLVED]
Posted: Fri Feb 24, 2017 1:42 pm
I wanted to let your users know that the COM and NAV TEST buttons are not scripted. I was able to get this working using the below script in the OCP4NGX_PP_MIP_v4.0.txt file. The only issue is the 88888 do not output in the PMDG aircraft. I think this might be a PMDG bug because the COM and NAV Test buttons do not function in the PMDG 737.
**** Add this code AFTER setting Variable 0171 and BEFORE Variable 0151 ****
Var 6375, name COM1_TEST, Link IOCARD_SW, Device 8, Input 43 // COMM TEST button
{
IF &COM1_TEST = 1
{
&D_AC_COM1 = 88888
&O_AC_COM1DP = 1
&D_ST_COM1 = 88888
&O_ST_COM1DP = 1
}
ELSE
{
CALL &OutAC_COM1
CALL &OutST_COM1
}
}
**** Locate Var 0203 and add the test condition after variable declaration ****
Var 0203, name NAV1_TEST, Link IOCARD_SW, Device 9, Input 2 // NAV1 TEST button
{
IF &NAV1_TEST = 1
{
&D_AC_NAV1 = 88888
&O_AC_NAV1DP = 1
&D_ST_NAV1 = 88888
&O_ST_NAV1DP = 1
}
ELSE
{
CALL &OutAC_NAV1
CALL &OutST_NAV1
}
}
**** Add this code AFTER setting Variable 0171 and BEFORE Variable 0151 ****
Var 6375, name COM1_TEST, Link IOCARD_SW, Device 8, Input 43 // COMM TEST button
{
IF &COM1_TEST = 1
{
&D_AC_COM1 = 88888
&O_AC_COM1DP = 1
&D_ST_COM1 = 88888
&O_ST_COM1DP = 1
}
ELSE
{
CALL &OutAC_COM1
CALL &OutST_COM1
}
}
**** Locate Var 0203 and add the test condition after variable declaration ****
Var 0203, name NAV1_TEST, Link IOCARD_SW, Device 9, Input 2 // NAV1 TEST button
{
IF &NAV1_TEST = 1
{
&D_AC_NAV1 = 88888
&O_AC_NAV1DP = 1
&D_ST_NAV1 = 88888
&O_ST_NAV1DP = 1
}
ELSE
{
CALL &OutAC_NAV1
CALL &OutST_NAV1
}
}