• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA ADF Swap

Messages
189
Country
hungary
Hello

How can I swap the active and standby ADF freq's ? There is a variable for both, but the Event ID is missing from SDK (?)
 
Last edited:
I spent some - I mean a lot's of - time to figure out this code, finally I found that (>K:ADF1_RADIO_SWAP) is working. Maybe it's a new info for me only, but you will not find it in the SDK :confused:
 
Thank you ever so much for coming back to post the ANSWER!
I'm in the process of scripting some Collins CTL radios for the KingAir 300 I'm currently working on, and this solved one of my problems. :cool:
 
I too am making my first ADF unit that uses a standby frequency. But i noticed today that the tuner is only tuning the active frequency. How can i tune the standby frequency?
 
You have to enable the standby frequency in the aircraft cfg.
 
Yep. You can add a standby ADF frequency like the nav radios. That second parameter that is 0 must be set to 1 to enable the standby frequency. However, doing so will direct all frequency adjustments to the standby frequency rather than the active. You will then have to use the swap command to change the standby to active.
 
I have two ADF receivers, both of which have standby frequency. Knobs tune the stby freq, Xfer toggle swaps stby=>active.
Note the way the params are set for Adf.1 and Adf.2:
Code:
[Radios]
// Radio Type = availiable, standby frequency, has glide slope
Audio.1  = 1
Audio.2  = 1
Com.1  = 1, 1
Com.2  = 1, 1
Nav.1  = 1, 1, 1
Nav.2  = 1, 1, 1
Adf.1  = 1,1
Adf.2  = 1,1
Transponder.1 = 1
Transponder.2 = 1
Marker.1  = 1
 

Attachments

  • KA300000002.jpg
    KA300000002.jpg
    371.4 KB · Views: 770
Thanks everyone for the help. I forgot since i am using the cfg from my ADF single display it was set to change the active. I forgot since i never made an ADF with both active and standby!
 
This worked great for my last project. But my current project has 2 ADF's. The ADF 2 is swapping ADF1. Need some help here!:banghead:

(>K:ADF1_RADIO_SWAP) Working!
(>K:ADF2_RADIO_SWAP) This one is swapping ADF1
Code:
Adf.1  = 1,1
Adf.2  = 1,1
 
Have you tried -

Code:
(>K:ADF) (>K:SELECT_2) (>K:FREQUENCY_SWAP)

-or-

(>K:SELECT_2) (>K:ADF) (>K:FREQUENCY_SWAP)
 
Spokes no luck as i think the default coding is screwed up. Chris i used your idea for now as it works good. Only downside is that your always adjusting the active but at least it looks like your swapping. Thanks!
 
If the objective is to simply create an Active and a Standby for ADF1, switched using a Swap button, then an approach similar to this should work...

On the Standby ADF: Use the ADF Standby tuning knobs to select a desired Standby frequency, for example 379 khz, and store that frequency (in khz units) in an L:Var achieving the equivalent of:

379 (>L:ADF_Stdby_Freq, khz)

For the Active/Standby Swap button, the mouse action is:
Code:
<Click>
  (A:ADF1 ACTIVE FREQUENCY, khz) (>L:ADF_Active_Freq, khz)
  (L:ADF_Stdby_Freq, Frequency ADF BCD32) (>K:ADF_COMPLETE_SET)
  (L:ADF_Active_Freq, khz) (>L:ADF_Stdby_Freq, khz)
</Click>

The ADF radio display shows (A:ADF1 ACTIVE FREQUENCY, khz) for the Active and (L:ADF_Stdby_Freq, khz) for the Standby. The Active ADF tuning knobs can change the Active frequency directly, of course, if desired. No need for ADF2 unless one also wants a second ADF radio unit.

I believe this is what Chris suggested, above.

Bob
 
Last edited:
Bob, changing your XML script for ADF2 would be what is needed. ADF1 "(>K:ADF1_RADIO_SWAP)" works just fine. Oddly enough though, even in P3Dv2.5 SDK it remains completely undocumented!

Code:
<Click>
  (A:ADF2 ACTIVE FREQUENCY, khz) (>L:ADF2_Active_Freq, khz)
  (L:ADF2_Stdby_Freq, Frequency ADF BCD32) (>K:ADF2_COMPLETE_SET)
  (L:ADF2_Active_Freq, khz) (>L:ADF2_Stdby_Freq, khz)
</Click>
 
So far that new idea is only reading the active and posting it in the Lvar standby. We want to adjust the standby and send that to the active.

Also i did a small test trying to input a set number to the ADF2 active using 500 (>K:ADF2_COMPLETE_SET) with no luck. Without this working we can't send info from the standby to active.

Also i use this variable since this one does not read anything.
(A:ADF2 ACTIVE FREQUENCY, khz) DOES NOT WORK
(A:ADF ACTIVE FREQUENCY:2, khz) WORKS
 
Thanks Bill,

Good to know the swap event works on ADF1.

@delivery guy: I tested my Swap button <Click> script on ADF1 only, where it works fine, but is redundant as per Bill's note, above. I'm not sure what is done if one needs dual ADFs. Apologies for the confusion.

Yeah, Im aware of some A:Var syntax inconsistencies between how you name unit 1 vs unit 2 and I guess ADF is one of them.

Bob
 
I have the active frequency's swapping using an Lvar switch but your always adjusting the active frequency. This works and i can simply explain in the manual how the default coding is bogus. This allows one to change the active frequency from both upper and lower window so they can simulate by swapping when they are done. But the reality is the active is always active no matter where it's located. Looks good and works.
 
I have the active frequency's swapping using an Lvar switch but your always adjusting the active frequency.

Hmmm.. Question... Are you using the ADF frequency setting events, >K:ADF_100_DEC, >K:ADF_10_DEC etc., and do they tune only the Active? If that's true (I don't know), then what about coding your ADF tuning knob to set the standby frequency, (L:ADF_Stdby_Freq, khz), using an L:Var system, that is, avoiding all use of the ADF tuning K: events? That way, the tuner will set only the standby frequency (L:Var, khz), and the Swap will swap it to Active and set the Active frequency using (>K:ADF_COMPLETE_SET) as in the example above.

Bob
 
Last edited:
Back
Top