COM & NAV TEST Script [SOLVED]

This is a new forum for the OC4BAv4.
Post Reply
AZWildk4t
Posts: 15
Joined: Mon Mar 09, 2015 10:25 pm

COM & NAV TEST Script [SOLVED]

Post by AZWildk4t »

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
}
}
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: COM & NAV TEST Script [SOLVED]

Post by mvr1918 »

Thanks for sharing
Post Reply