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

Cannot adjust COM1 or COM2?

Messages
10,163
Country
us-arizona
Hey all,

I noticed on my plane, working radios, that COM1 and COM2 are not adjustable. The code will not work for either radios.

Setups for the radios in the config file are both 1,1 for all NAV1, NAV2, COM1, and COM2. NAV1 and NAV2 both function fine on the selector knobs, but the knobs for these are not working.

These are Freq Swap codes, standard.

Why in the world would both COM's be knocked out on two different radios??

Config layout;

[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


COM1 radio, common adjuster knob, code for knob input

Code:
    <Area Left="65" Top="135" Width="20" Height="20">
      <Click Repeat="Yes">(L:GNS430_1_ComNavTune,enum) 1 == if{ (&gt;K:COM1_RADIO_WHOLE_INC) 1 (>L:XMLClick,enum) } els{ (&gt;K:NAV1_RADIO_WHOLE_INC) 1 (>L:XMLClick,enum) } </Click>
      <Cursor Type="UpArrow"/>
    </Area>
    <Area Left="0" Top="118" Width="30" Height="30">
      <Click Repeat="Yes">(L:GNS430_1_ComNavTune,enum) 1 == if{ (&gt;K:COM1_RADIO_WHOLE_DEC) 1 (>L:XMLClick,enum) } els{ (&gt;K:NAV1_RADIO_WHOLE_DEC) 1 (>L:XMLClick,enum) } </Click>
      <Cursor Type="DownArrow"/>
    </Area>
    <Area Left="65" Top="160" Height="60" Width="20">
      <Click Repeat="Yes">(L:GNS430_1_ComNavTune,enum) 1 == if{ (&gt;K:COM1_RADIO_FRACT_INC) 1 (>L:XMLClick,enum) } els{ (&gt;K:NAV1_RADIO_FRACT_INC) 1 (>L:XMLClick,enum) } </Click>
      <Cursor Type="UpArrow"/>
    </Area>
    <Area Left="0" Top="160" Height="60" Width="20">
      <Click Repeat="Yes">(L:GNS430_1_ComNavTune,enum) 1 == if{ (&gt;K:COM1_RADIO_FRACT_DEC) 1 (>L:XMLClick,enum) } els{ (&gt;K:NAV1_RADIO_FRACT_DEC) 1 (>L:XMLClick,enum) } </Click>
      <Cursor Type="DownArrow"/>
    </Area>

COM1 Swap code;

Code:
    <Area Left="86" Top="34" Height="33" Width="23">
      <Cursor Type="Hand"/>
      <Tooltip>COM Swap</Tooltip>
      <Click>0 (&gt;K:COM_RADIO) 0 (&gt;K:SELECT_1) 0 (&gt;K:FREQUENCY_SWAP) 1 (>L:XMLClick,enum)</Click>
    </Area>
    <Area Left="86" Top="85" Height="33" Width="23">
      <Cursor Type="Hand"/>
      <Tooltip>NAV Swap</Tooltip>
      <Click>0 (&gt;K:NAV_RADIO) 0 (&gt;K:SELECT_1) 0 (&gt;K:FREQUENCY_SWAP) 1 (>L:XMLClick,enum)</Click>
    </Area>
 
Bill, I haven't found the error in your version of the GNS430_1 xml script, but when I substitute the same script from my B55 XML "gauge" the COM1 tuning works just fine!
 
Bill, I haven't found the error in your version of the GNS430_1 xml script, but when I substitute the same script from my B55 XML "gauge" the COM1 tuning works just fine!

So the code is ok... I figured it might be when I discovered this morning that the other COM radio was also non-functioning on the knob code.


I found a gauge in my package that is called Pilot-CoPilot swap. I havent heard of such a thing. I had originally had these all created perhaps 12 years ago for my Trinidad package. This gauge has me stumped. (Im looking for anything that would keep the COM's from working).


Code:
<Gauge Name="Swap Icon" Version="1.0">
   <Image Name="Icon_Swap.bmp" ImageSizes="19,19"/>
   <Mouse>
         <Tooltip ID="">Pilot/CoPilot Swap</Tooltip>
         <Help ID=""/>
      <Cursor Type="Hand"/>
      <Click>0 (&gt;K:PANEL_ID_TOGGLE) ! 242 (&gt;K:PANEL_ID_TOGGLE)</Click>
   </Mouse>
</Gauge>
 
Since you have standby frequencies in both COM and NAV that are disappearing from time to time as one clicks the center knob, I suspect that "up there somewhere" is a problem.

BTW, your COM2/NAV2 radio is working just fine here! No problems with tuning at all.

I'm going to send you a fresh copy of my original GNS430_1.xml script so you have something to compare with. I guarantee that it is working 100%, proving that there's nothing wrong with the aircraft.cfg, panel.cfg or 3d model.
 
Some things to check.
- Are the comm radios failed in the FS failure dialog?
- In a L:Var monitor gauge/XML script/fsuipc lua, is (L:GNS430_1_ComNavTune,enum) actually returning a 1 when you select for comm adjustment? (select comms)

Not the problem but noticed your click spots are "out of square" to the others - no biggie.
The code in post #3 closes one 2D window and opens another, nothing else.
 
Last edited:
Bill,

I wonder if this might be the issue. I hard wired the code in the COM2 into the on/off knob, (mesh code). It rarely happens, but sometimes L:vars are repeated by shear coincidence.

Im going to check it out.
EDIT: No L:vars by that name in the GNS430.

Code:
<PartInfo>
      <Name>trinidad_com2_onoff</Name>
        <AnimLength>100</AnimLength>
        <Animation>
            <Parameter>
                <Code>(L:NavCOM2 on,bool) 50 *</Code>
                <Lag>100</Lag>
            </Parameter>
        </Animation>
   <MouseRect>
    <Cursor>Hand</Cursor>
    <TooltipText>COM 2 ON OFF SWITCH</TooltipText>
   <CallbackCode>
            (L:NavCOM2 on,bool) ! (>L:NavCOM2 on,bool)
          1 (&gt;L:XMLSND150,enum)    
   </CallbackCode>
   </MouseRect>
    </PartInfo>


Also, for some reason, my COM2 started working again. Just thankful. It wasnt working, and now its working. Happy. When code heals, I am VERY HAPPY!
 
Last edited:
Some things to check.
- Are the comm radios failed in the FS failure dialog?
- In a L:Var monitor gauge/XML script/fsuipc lua, is (L:GNS430_1_ComNavTune,enum) actually returning a 1 when you select for comm adjustment? (select comms).
Roman, Bill (Lionheart) has edited an XML GNS430_1.xml script I wrote years ago. When substituting the original GNS_430_1.xml file, everything works as I originally designed. So, no error anywhere except in the re-edited XML script.

Also, logically the (L:GNS430_1_ComNavTune,enum) variable has to be returning 1, else the backlighted cursor wouldn't be moving from NAV to COM tuning, and the mouse points would continue to tune the NAV radio... ;)

I'm sending a fresh copy of the original script so it can be compared with the re-edited script. I simply don't have time to search for whatever tiny error is causing the problem. :confused:
 
Thanks Bill for sending that over. I put it in the sim, it worked. I modified it to hide the fonts on the face place of the unit, still worked fine.

COM2 stopped working again. I thought maybe the click zones overlapped or something similar, maybe from another unit in the $pan sheet.

I then looked at the code. It didnt match anything in the FS2004 SDK commands list, so I replaced the INC / DEC codes for the COM2 knob. Works fine. Both units now working fine.

I do not know how these things happen to me... The craziest things happen. That COM2 unit was working fine last night. Perfect. I wondered how, but thought, maybe it was a miracle. Today it stopped again when putting in the new version GNS. I then found the code not working, different strings. Put in new ones, and Voila.

I'll bet its very early FS code. There is so much vintage code in the sim that still half way works. I am also using V2 for testing, so that could be it also.

Thanks Bill for sending that over.

Thanks Jesus for keeping me together for several days while trying to figure this out.

Thanks Roman for the ideas.
 
I'm happy to hear you got it working again. I had the XML generate the labels on the buttons so that I could have them "backlighted" at night, rather than using a textured light mask. :cool:
 
Ahhh so..... I didnt think of that. Smart....

Man, Bill. If this was one of your first gauges, I am flabbergasted. That is some beautiful work in coding. I love the dimmer. Well done..
 
Have you tried clicking on the hidden mouse point on the upper left corner of the frame to turn on the color map display?

Bill, these GNS units represent about eight months of de-constructing the default GPS500 and re-factoring the XML scripts to create the new pages, add the color map and brightness control, etc.
 
A lot of work....!

Yep, I knew about that secret click zone! lol...

Somehow, it would be cool to come out with forward view synthetic vision for PFD's. All Garmins and also Dynon are now Synthetic View.
 
I have the tech....I just have to find time to finish it and put it out.

Thats right! I remember you saying that.... I totally forgot.

You might be sitting on a gold mine and not know it, Naruto... You might be able to change the gauge side of this industry concerning glass screen technology.
 
Back
Top