Page 1 of 1

OC ADF for FO side with PMDG

Posted: Sat Jun 29, 2024 9:52 am
by CptBayer
Hi Simmers,

I have an oc pedestal bought in the light version. I added the audio panel for the First Officers side. As well I bought an ADF for the First Officers side. Problem, PMDG don´t have a ADF for FO side in their pedestal implemented. Is it anyhow possible to get this right hanfd side ADF running? Maybe adding lines in the script?

Also on the audio panel FO side PMDG didn´t programm the 1-VHF knob to be activated. Only 2-VHF is active. Any solution to get the 1-VHF running, too?

Greets from germany

Klaus

Re: OC ADF for FO side with PMDG

Posted: Sat Jun 29, 2024 2:12 pm
by mvr1918
As PMDG did not implemeted these function in their 737 model there is no way a hardware module can change that.

You can always set the hardware module in an active state by e.g. mirror it with the left side module.

https://www.flightsim4fun.com/Forum/sea ... words=ADF2

Re: OC ADF for FO side with PMDG

Posted: Sun Jun 30, 2024 7:43 am
by CptBayer
thanx for the info...... nice solution! I´ll give it a try ...

greets from germany

klaus

Re: OC ADF for FO side with PMDG

Posted: Sun Jun 30, 2024 10:15 am
by CptBayer
Hi Roar,


the easiest way themes to be the mirror of the Master. In my 737.ini following digits are present:

[PMDG B737]
CONFIG_FILE=C:\SIOC\Oi4FS\PMDG B737 v7.0PED.ssi
USBServos=40,112
MASTER=32,20,2,114

I have no idea which digits are needed for the mirroring?! Cause in the topic i read the both masters were 10 and 20?! DDo you have any idea? The other topic with the huge script adding seems to be not the right one for me, cause the code writer said, that while turning the knob to tune the freq in ADF is tuning the active not the standby freq. The topic is from 2015 (2018). Today the standby freq is tuning when rotating the knob. So the code seems for me to be outdated?!

greets Klaus

Re: OC ADF for FO side with PMDG

Posted: Fri Jul 05, 2024 11:15 am
by CptBayer
Hi Roar,

I try to mirror ADF1 to ADF2 but as I wrote I am a bit lost 🤷‍♂️. Can you give me a hint which device my ADF2 might be when ADF1 is Device 32.. And when I understand correctly, it is not enough to add the mirror line in the pmdg 737.ini, I also have to add the huge code found in another threat for ADF 2 ?!

---> FOUND in another threat to add in the pmdg 737.ini:


MASTER=10,10,1,35
MASTER=20,10,1,37

---> TOOK OUT OF MY SCRIPT

Var 0574, name D_A1Act, Link IOCARD_DISPLAY, Device 32, Digit 32, Numbers 5

Var 0575, name D_A1Act5, Link IOCARD_DISPLAY, Device 32, Digit 43, Numbers 1

Var 0576, name O_A1ActDp, Link IOCARD_OUT, Device 32, Output 13

Var 0577, name D_A1Stb, Link IOCARD_DISPLAY, Device 32, Digit 37, Numbers 5

Var 0578, name D_A1Stb5, Link IOCARD_DISPLAY, Device 32, Digit 44, Numbers 1

Var 0579, name O_A1StbDp, Link IOCARD_OUT, Device 32, Output 13

Var 0580, name ADFSymbol1, Link IOCARD_DISPLAY, Device 32, Digit 43, Numbers 1

Var 0581, name ADFSymbol2, Link IOCARD_DISPLAY, Device 32, Digit 44, Numbers 1

Var 0582, name ANTSymbol1, Link IOCARD_DISPLAY, Device 32, Digit 42, Numbers 1

Var 0583, name ANTSymbol2, Link IOCARD_DISPLAY, Device 32, Digit 45, Numbers 1




// ADF1 Pedestal ----> TOOK OUT OF AN OLDER THREAT !!!!!!
// Outputs are duplicated to ADF2 unit, but no inputs from there

Var 0690, name D_A1Act, Link IOCARD_DISPLAY, Device 10, Digit 0, Numbers 4
Var 0691, name O_A1ActDp, Link IOCARD_OUT, Device 10, Output 20
Var 0692, name D_A1Act5, Link IOCARD_DISPLAY, Device 10, Digit 4, Numbers 1
Var 0693, name D_A1Stb, Link IOCARD_DISPLAY, Device 10, Digit 5, Numbers 4
Var 0694, name O_A1StbDp, Link IOCARD_OUT, Device 10, Output 21
Var 0695, name D_A1Stb5, Link IOCARD_DISPLAY, Device 10, Digit 9, Numbers 1

Var 0696, name D_A2Act, Link IOCARD_DISPLAY, Device 20, Digit 0, Numbers 4
Var 0697, name O_A2ActDp, Link IOCARD_OUT, Device 20, Output 20
Var 0698, name D_A2Act5, Link IOCARD_DISPLAY, Device 20, Digit 4, Numbers 1
Var 0699, name D_A2Stb, Link IOCARD_DISPLAY, Device 20, Digit 5, Numbers 4
Var 0700, name O_A2StbDp, Link IOCARD_OUT, Device 20, Output 21
Var 0701, name D_A2Stb5, Link IOCARD_DISPLAY, Device 20, Digit 9, Numbers 1

Greets Klaus

Re: OC ADF for FO side with PMDG

Posted: Fri Jul 05, 2024 5:31 pm
by idj4
Hi Klaus

There are two types of connections for Opencockpits pedestal modules. USB and IDE.

The light version pedestal you have bought is IDE connection and therefore all modules within the pedestal will have the same device number, this being 32 (Excluding the Rudder Trim which uses a Servo card, Device 40). USB modules have their own device number which is why the script you tried didn't work, unless you change all devices in the script to 32. The person who posted the script has USB type modules.

You don't need to change the MASTER entry in your 737.ini file. Keep it as MASTER=32,20,2,114

Paste this into your script, starting at VAR 0574

Var 0574, name D_A1Act, Link IOCARD_DISPLAY, Device 32, Digit 32, Numbers 5

Var 0575, name D_A1Act5, Link IOCARD_DISPLAY, Device 32, Digit 43, Numbers 1

Var 0576, name O_A1ActDp, Link IOCARD_OUT, Device 32, Output 13

Var 0577, name D_A1Stb, Link IOCARD_DISPLAY, Device 32, Digit 37, Numbers 5

Var 0578, name D_A1Stb5, Link IOCARD_DISPLAY, Device 32, Digit 44, Numbers 1

Var 0579, name O_A1StbDp, Link IOCARD_OUT, Device 32, Output 13

Var 0695, name D_A2Act, Link IOCARD_DISPLAY, Device 32, Digit 96, Numbers 5

Var 0696, name D_A2Act5, Link IOCARD_DISPLAY, Device 32, Digit 106, Numbers 1

Var 0697, name O_A2ActDp, Link IOCARD_OUT, Device 32, Output 77

Var 0698, name D_A2Stb, Link IOCARD_DISPLAY, Device 32, Digit 101, Numbers 5

Var 0699, name D_A2Stb5, Link IOCARD_DISPLAY, Device 32, Digit 109, Numbers 1

Var 0700, name O_A2StbDp, Link IOCARD_OUT, Device 32, Output 77

Var 0580, name ADFSymbol1, Link IOCARD_DISPLAY, Device 32, Digit 43, Numbers 1

Var 0581, name ADFSymbol2, Link IOCARD_DISPLAY, Device 32, Digit 44, Numbers 1

Var 0582, name ANTSymbol1, Link IOCARD_DISPLAY, Device 32, Digit 42, Numbers 1

Var 0583, name ANTSymbol2, Link IOCARD_DISPLAY, Device 32, Digit 45, Numbers 1

Var 0701, name ADF2ymbol1, Link IOCARD_DISPLAY, Device 32, Digit 107, Numbers 1

Var 0702, name ADF2ymbol2, Link IOCARD_DISPLAY, Device 32, Digit 108, Numbers 1

Var 0703, name ANT2ymbol1, Link IOCARD_DISPLAY, Device 32, Digit 106, Numbers 1

Var 0704, name ANT2ymbol2, Link IOCARD_DISPLAY, Device 32, Digit 109, Numbers 1

Var 1808, name AdfAct, static // read active window from NG3
{
IF &ADF_Power_ON = 1
{
CALL &Ad1DspAct
}
}

Var 0584, name Ad1DspAct, Link SUBRUTINE
{
&D_A1Act = &AdfAct // fill ADF1 Act display
&D_A2Act = &D_A1Act // fill ADF2 Act display
IF &D_A1Act < 10000
{
&D_A1Act5 = -999998
&D_A1Act5 = -999999
&D_A2Act5 = -999998
&D_A2Act5 = -999999
}
&O_A1ActDp = 1
&O_A2ActDp = 1
}

Var 1809, name AdfStby, static // read standby window from NG3
{
IF &ADF_Power_ON = 1
{
CALL &Ad1DspStb
}
}

Var 0585, name Ad1DspStb, Link SUBRUTINE
{
&D_A1Stb = &AdfStby // fill ADF1 Stby display
&D_A2Stb = &D_A1Stb // fill ADF2 Stby display
IF &D_A1Stb < 10000
{
&D_A1Stb5 = -999998
&D_A1Stb5 = -999999
&D_A2Stb5 = -999998
&D_A2Stb5 = -999999
}
&O_A1StbDp = 1
&O_A2StbDp = 1
}

Var 2812, name Adf1RotOuter, static, Link IOCARD_ENCODER, Device 32, Input 20, Aceleration 1, Type 2

Var 2813, name Adf1RotInner, static, Link IOCARD_ENCODER, Device 32, Input 18, Aceleration 1, Type 2

Var 2811, name AdfTrf, static, Link IOCARD_SW, Device 32, Input 23, Type P // Transfer function

Var 2103, name sADF_MODE_SEL, static, Link IOCARD_SW, Device 32, Input 22
{
IF &ADF_Power_ON = 1
{
CALL &ADFSymbols
}
}

Var 0586, name ADFSymbols, Link SUBRUTINE
{
&ADFSymbol1 = 1 - &sADF_MODE_SEL
&ADFSymbol2 = &ADFSymbol1
&ADF2ymbol1 = &ADFSymbol1
&ADF2ymbol2 = &ADFSymbol1
&ANTSymbol1 = &sADF_MODE_SEL
&ANTSymbol2 = &ANTSymbol1
&ANT2ymbol1 = &ANTSymbol1
&ANT2ymbol2 = &ANTSymbol1
}

Var 2105, name ADF_TONE_SW, static

Var 0587, name sTone_SW, Link IOCARD_SW, Device 32, Input 24
{
&ADF_TONE_SW = 1 - &sTone_SW // Used to change direction of switch
}

Var 0588, name AdfOff, Link SUBRUTINE
{
&D_A1Act = -999999
&D_A1Stb = -999999
&D_A2Act = -999999
&D_A2Stb = -999999
&O_A1ActDp = 0
&O_A2ActDp = 0
&O_A1StbDp = 0
&O_A2StbDp = 0
&ADFSymbol1 = 0
&ADFSymbol2 = 0
&ANTSymbol1 = 0
&ANTSymbol2 = 0
&ADF2ymbol1 = 0
&ADF2ymbol2 = 0
&ANT2ymbol1 = 0
&ANT2ymbol2 = 0
}

Var 0589, name AdfAll, Link SUBRUTINE
{
&D_A1Act = 88888
&D_A1Stb = 88888
&D_A2Act = 88888
&D_A2Stb = 88888
&O_A1ActDp = 1
&O_A2ActDp = 1
&O_A1StbDp = 1
&O_A2StbDp = 1
&ADFSymbol1 = 1
&ADFSymbol2 = 1
&ANTSymbol1 = 1
&ANTSymbol2 = 1
&ADF2ymbol1 = 1
&ADF2ymbol2 = 1
&ANT2ymbol1 = 1
&ANT2ymbol2 = 1
}


The rotary & transfer button don't work on ADF 2, it's just the digits/display that are mirrored .

Regards
Ian

Re: OC ADF for FO side with PMDG

Posted: Mon Jul 08, 2024 4:55 pm
by CptBayer
Hi Ian,

you are the godfather of SIOC :-) !! .... thanx so match! I will give it a try next few days and report the result.


greets Klaus

Re: OC ADF for FO side with PMDG

Posted: Thu Jul 11, 2024 7:19 pm
by CptBayer
Hi Ian,

Bämmmm.... it works :-) .... thanx a lot!! I would never have been able to do it myself !!!

greets klaus ...