• 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.

Swap Freqs on COM1?

Messages
10,163
Country
us-arizona
Hey all,

How do you swap Freq's on Com1?

They have Com2, NAV1, NAV2, but not Com1??

Bill
 
Many thanks DaveWave.

That is odd how its all named. I'll bet it was carried over from the earliest FS and perhaps back then, they only had the one COM.


Bill
 
I seem to not be able to get the Freqs to change/swap on the radio I am building. I believe I have the proper coding. I thought I would run it by you all to see what you think.


Round 1

(>K:COM_STBY_RADIO_SWAP)
(>K:COM2_RADIO_SWAP)
(>K:NAV1_RADIO_SWAP)
(>K:NAV2_RADIO_SWAP)


Round 2

(>K:COM_STBY_RADIO_SWAP,bool)
(>K:COM2_RADIO_SWAP,bool)
(>K:NAV1_RADIO_SWAP,bool)
(>K:NAV2_RADIO_SWAP,bool)

Typical click zone;

<Area Left="775" Top="275" Right="970" Bottom="335">
<Visible>(L:List_CascadeB,enum) 1 ==</Visible>
<Tooltip>Click to Swap Frequencies</Tooltip>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle">
(>K:COM2_RADIO_SWAP,bool)
1 (&gt;L:XMLSND57,enum)
</Click>
</Area>

The clickzone is fully functioning, the sound occurs, but the Freq's will not swap. I am using 'font strings'.

Here is my aircraft.cfg Radios section;

[Radios]
// Radio Type = availiable, standby frequency, has glide slope
Audio.1 = 1
Com.1 = 1, 1
Com.2 = 1, 1
Nav.1 = 1, 1, 1
Nav.2 = 1, 1, 0
Adf.1 = 1
Transponder.1 = 1
Marker.1 = 1




Any idea's what might be the culprit on this? Many thanks for your help.



Bill
 
Other than don't use the ,bool in K: variables I don't know...
 
Hey Bill
Try removing the Radio section in the aircraft.cfg and see if it then works
 
This is the COM swap button in my VC10 for FS9 if it helps. But, perhaps someone could explain what "Frequency BCD16" means.
vololiberista

Code:
<Gauge Name="COM Icon" Version="1.0">
   <Image Name="ICON_COM.bmp" ImageSizes="59,19" Luminous="1"/>
   <Mouse>
      <Tooltip>Swap COM frequencies</Tooltip>
      <Cursor Type="Hand"/>
      <Click>(A:COM1 ACTIVE FREQUENCY,Frequency BCD16) s1 (A:COM2 ACTIVE FREQUENCY,Frequency BCD16) (&gt;K:COM_RADIO_SET) l1 (&gt;K:COM2_RADIO_SET)</Click>
   </Mouse>
</Gauge>
 
This is the COM swap button in my VC10 for FS9 if it helps. But, perhaps someone could explain what "Frequency BCD16" means.
vololiberista

Code:
<Gauge Name="COM Icon" Version="1.0">
   <Image Name="ICON_COM.bmp" ImageSizes="59,19" Luminous="1"/>
   <Mouse>
      <Tooltip>Swap COM frequencies</Tooltip>
      <Cursor Type="Hand"/>
      <Click>(A:COM1 ACTIVE FREQUENCY,Frequency BCD16) s1 (A:COM2 ACTIVE FREQUENCY,Frequency BCD16) (&gt;K:COM_RADIO_SET) l1 (&gt;K:COM2_RADIO_SET)</Click>
   </Mouse>
</Gauge>



That is some exotic code work VoloLiberista! Nice...
 
This is the COM swap button in my VC10 for FS9 if it helps. But, perhaps someone could explain what "Frequency BCD16" means.

BCD16 = Binary Coded Decimal 16bit

Your script swaps the COM1 and COM2 frequencies, using BCD16. The same script would work using either KHz or MHz for the units.

Normally one would swap the COM1 Active and COM1 Stby frequencies.
 
This is the "old-fashioned" way, but curiously enough it still works in FSX! This is copy/pasted directly from my ancient and venerable GNS430_2 unit:

Code:
      <Area Left="86" Top="34" Height="33" Width="23">
         <Cursor Type="Hand"/>
         <Tooltip>COM2 Swap</Tooltip>
         <Click>
               (&gt;K:COM_RADIO) 
               (&gt;K:SELECT_2) 
               (&gt;K:FREQUENCY_SWAP) 
               1 (>L:XMLClick,enum)
          </Click>
      </Area>
 
Gentlemen,

I found the issue. Dual assignments to clickzones buried in the code that I had forgotten about. Must have been another late night and duplicated work that would later become a buried, hidden obstacle.

All fixed.

Many thanks for helping me through this. You guys deserve patience awards for dealing with me....



Bill
 
Back
Top