• 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 Bendix King Radio

Messages
862
Country
indonesia
I'm redoing the default Bendix King radio gauge.
No problems, but I'm puzzled by the "Pull Test" on comm 1 and comm2.
I've dummied the switch for now, but does anyone know if it actually does anything?
 
There is a variable, COM TEST:index, but there doesn't seem to be any way to set it.
I would be tempted to poll the COM STATUS:index variable, from which you can gather some useful information.

Doug
 
I'm puzzled by the "Pull Test" on comm 1 and comm2.

Chris,

That's the squelch threshold setting IIRC. Is that what you are getting at? Can Flight Simulator model something like this?

Bob
 
There is a variable, COM TEST:index, but there doesn't seem to be any way to set it.
I would be tempted to poll the COM STATUS:index variable, from which you can gather some useful information.

Doug

You're right Doug, it is indeed COM TEST. How the original gauge sets it is beyond me, I've tried the usual suspects;
K:COM2_TEST
K:COM2_TEST_SET
K:COM2_TEST_SELECT
nothing.
However, as COM TEST doesn't seem to do anything either (with test selected, I can still use the radio) I'll stay with the dummy L:Var.
Again, with the COM STATUS, readable but not settable except for turning power on/off.


Thanks,
Chris.
 
Chris,

That's the squelch threshold setting IIRC. Is that what you are getting at? Can Flight Simulator model something like this?

Bob
Assuming it's modelled on the KX-155/165 series then yes, it's the push for normal volume control with automatic squelch active, pull to disable squelch.
I would think it's possible. I'm thinking a continuous hiss wave file to be played when the knob is pulled. Yes, I like it, I'm going to do it :D
 
Done!
The wave file for radio hiss is already in the sounds subdirectory. I wonder if ACES were thinking about implementing this?
I'm not really that fast, I already had Doug's sound gauge installed in this model, it was just adding a line.
Thanks for putting the idea in my head :)
 
Done!
The wave file for radio hiss is already in the sounds subdirectory. I wonder if ACES were thinking about implementing this?
I'm not really that fast, I already had Doug's sound gauge installed in this model, it was just adding a line.
Thanks for putting the idea in my head :)

You can do that?!! Very cool and I am pretty impressed. Can you also rotate the knob in the out position to set squelch threshold?

Good stuff.

Bob
 
You're right Doug, it is indeed COM TEST. How the original gauge sets it is beyond me, I've tried the usual suspects;
...
However, as COM TEST doesn't seem to do anything either (with test selected, I can still use the radio) I'll stay with the dummy L:Var.
Again, with the COM STATUS, readable but not settable except for turning power on/off.
Thanks,
Chris.

According to the SimConnect SDK, COM TEST will return 3 if the COM radio is FAILED. That's the only other useful feature I can see.

Doug
 
You can do that?!! Very cool and I am pretty impressed. Can you also rotate the knob in the out position to set squelch threshold?
Bob

Well, I could...
but as I've got a headache now with the transponder buttons (The Inc/Dec area on the numbers is enough for me) I'm going to have a break for a while.

The rest of the radio stack is done so now I can set the nav frequencies quickly without floating the mouse around trying to find the correct area as you'll have probably found you have to with the default dll gauge.

According to the SimConnect SDK, COM TEST will return 3 if the COM radio is FAILED. That's the only other useful feature I can see.
Doug

Well that's ok, it does something now although after playing with it for a couple of minutes, I'll probably never touch it again.
It's just a pity I'm using the bitmaps from the original gauge so I can't upload it for you.

Thanks,
Chris.
 
Question about Bill's "XML: Macros - Set Xpndr Code" on the wiki.
Has anyone used this and found everything ok?
Throwing a number at it is fine, but I can't seem to give it an L:Var, it outputs zero. I can't see why, @1 just pulls in the first parameter it sees, whether it's a constant or a variable. Baffling.
It's not a problem as I've gone another route for the transponder buttons, I was just curious.
 
Question about Bill's "XML: Macros - Set Xpndr Code" on the wiki.
Has anyone used this and found everything ok?
Throwing a number at it is fine, but I can't seem to give it an L:Var, it outputs zero. I can't see why, @1 just pulls in the first parameter it sees, whether it's a constant or a variable. Baffling.
It's not a problem as I've gone another route for the transponder buttons, I was just curious.

Odd, that! It certainly worked the last time I used it, which was sometime shortly before writing the Wiki entry, IIRC... :eek:
 
I've just knocked this up;

Code:
<Gauge Name="Xpndr" Version="1.0">
<Image Name="Xpndr_Background.bmp" />

<Macro id="XPDR Set" Name="XPDRSet">
    @1 s0 10 % l0 10 /
     int 10 % 16 * + l0 100 /
     int 10 % 256 * + l0 1000 /
     int 4096 * + (>K:XPNDR_SET) 
</Macro>

<Element>
  <Position X="64" Y="14" />
  <Text X="360" Y="28" Length="18" Fixed="Yes" Font="Quartz" Adjust="Center" VerticalAdjust="Center" Color="#FF8000" Bright="Yes">
    <String>%((A:TRANSPONDER CODE:1,Number))%!04d!</String>
    <Failures>
      <SYSTEM_ELECTRICAL_PANELS Action="" />
      <SYSTEM_ELECTRICAL_AVIONICS Action="" />
    </Failures>
  </Text>
</Element>


<Element> 
  <Select> 
    <Value>3456 (&gt;L:XPDR_Code,number)</Value> 
  </Select> 
</Element> 

<Mouse>
  <Tooltip ID="TOOLTIPTEXT_TRANSPONDER_ID" />
<!-- Constant -->
  <Area Top="40" Bottom="78" Left="0" Right="128">
    <Tooltip>Set Transponder to 1200</Tooltip>
    <Cursor Type="Hand"/>
    <Click>@XPDRSet(1234)</Click>
  </Area>
<!-- Variable -->
  <Area Top="40" Bottom="78" Left="129" Right="258">
     <Cursor Type="UpArrow"/>
    <Click>@XPDRSet(L:XPDR_Code,number)</Click>
  </Area>
</Mouse>

</Gauge>

The bitmap is just a black box 258x78.

Am I doing something obviously silly?
 
Last edited:
No, I think I screwed up in the Wiki entry!

Try this:

Code:
<Click>@XPDRSet((L:XPDR_Code,number))</Click>

The outer set of parenthesis is for the @macro, the inner set is for the L:var!

EDIT: Confirmed, and Wiki entry updated! :o
 
Last edited:
Oh embarrassment!
I've used your digit extractor in enough gauges, and I failed to spot that.
Yes, that works now.

Thanks,
Chris.
 
Oh embarrassment!
I've used your digit extractor in enough gauges, and I failed to spot that.
Yes, that works now.

Thanks,
Chris.

Chris, it is I who am embarrased! I should have caught that over a year ago when I first created the Wiki entry...

I am SO sorry to have wasted so much of your time... <insert "crawling away and hiding under a rock" smilie here>
 
Back
Top