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

FSX Another DME display problem.

Messages
6
Country
unitedkingdom
My first post , but I've been reading posts for the last year, and I must say the quality of the answers is first class and I have learnt so much.

But I need some help.

I'm trying to replicate the Bendixking KDI572 DME gauge.

I've done most of it, but it has a function where it displays the last selected Nav device, this is called "HLD" and how to make it work is proving a struggle.
When the gauge is set to the HLD position it displays the last selected Nav signal and this then allows the Nav device to be changed to a different frequency without changing the HLD display, the display needs to continue to show the distance speed and time.
My question is how to capture and hold the HLD frequency without it being changed by the NAV device.

My code below will display the HLD data ok, but its not updating because the L: are only taking a snapshot of the current position when I click the HLD click spot.

Not the worlds smartest code I know.

Regards
Dave

N1 Selected
%((A:NAV1 DMESPEED, knots) 0 <)%{if} --- --- --- %((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))%{else}
%((L:DME_HLD,bool) 0 ==)%{if}
%((A:NAV DME:1, nmiles) 999 min 0 max s0)%!5.1f!
%((A:NAV DMESPEED:1, knots) 999 min 0 max s1)%!03d!
%(l0 l1 / 60 *)%!d!%
%((A:NAV DME:1, nmiles) (>L:NAV_DME_1,nmiles))
%((A:NAV DMESPEED:1, knots) (>L:NAV_DMESPEED_1,knots))
%((l0 l1 / 60 *) (>L:NAV_DMETIME_1))
%((A:NAV1 DMESPEED, knots) (>L:NAV_NAV1_DMESPEED,knots))
%{end}
%{end}

HLD Selected

%((L:DME_N1,bool) (L:DME_HLD,bool) and) %{if}
%((L:NAV_NAV1_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_1,nmiles) 999 min 0 max s4)%!5.1f!
%((L:NAV_DMESPEED_1,knots) 999 min 0 max s5)%!03d!
%(l4 l5 / 60 *)%!d! %{end}%
%{else}
%((L:NAV_NAV2_DMESPEED,knots) 0 <)%{if} --- --- ---%{else}
%((L:NAV_DME_2,nmiles) 999 min 0 max s6)%!5.1f!
%((L:NAV_DMESPEED_2,knots) 999 min 0 max s7)%!03d!
%((l6 l7 / 60 *)%!d! %{end}%
%(0 (>L:DME_N1,bool))
 
Last edited:
I assume that the HLD display cannot use NAV2 while the regular display uses NAV1? That would be the simple solution.

If not, have a routine in the code that switches back and forth between the two NAV frequencies once per second (for example) and updates the relevant L: variables that are used in the displays. Then both sections will update.

Hope this helps,
 
Reason: Smilies are showing in the body of my text?

When including XML script or C code, highlight all of it then click on the # icon on the toolbar of the editor to wrap it in
Code:
 tags... This will keep the script formatted and inhibit the smilie symbols...
 
I assume that the HLD display cannot use NAV2 while the regular display uses NAV1? That would be the simple solution.

If not, have a routine in the code that switches back and forth between the two NAV frequencies once per second (for example) and updates the relevant L: variables that are used in the displays. Then both sections will update.

Hope this helps,

Tom

Thanks for the reply.

Option 1. The Nav2 option cant be used as it will be set with the next VOR frequency.
Option2. The method of operation on this gauge allows the user to change the Nav frequency, so if you do that and then swap as you suggest I guess the HLD display will up date with the wrong frequency dispaly info.
Interesting ideas but not sure they get me the result I need.
 
Not if you monitor the NAV frequency and swap them in your L: variables.
 
Not if you monitor the NAV frequency and swap them in your L: variables.

Tom

So if I capture the current freq,
then assign it as L:freq_something,
then set up a loop that swaps that L: value with the current Freq,
this should update my L:vars,
then swap back to the current freq.

Sounds doable, not sure if the DME_SPEED will update as it seems to lag before displaying, but it sounds better than calculating the Lats and Longs of the VOR and current position and then doing some stiff trig stuff, which I can’t.
But I'm sure I can code a long and lengthy "if" statement to do it.

As a side note this is a link from AVSIM from a few years ago where the same question was asked, not sure if the guy ever got a working solution?

http://forum.avsim.net/topic/72480-using-nav3-in-xml-gauge/
 
As a side note this is a link from AVSIM from a few years ago where the same question was asked, not sure if the guy ever got a working solution?

http://forum.avsim.net/topic/72480-using-nav3-in-xml-gauge/

And there was a follow-up thread about the same topic and the KDI572 two years ago:

http://forum.avsim.net/topic/268961-duplicate-vors-in-fs9gps-search/page__p__1695607__hl__kdi572__fromsearch__1#entry1695607

I finally figured it out (thanks to re-directs from Roman Stoviak and Ed Wilson) including the HLD function which essentially requires a third NAV, but which FS does not support. It's a fully functional KDI-572 (XML, FS9) and I'd be happy to share my XML if you want.

Bob
 
Last edited:
And there was a follow-up thread about the same topic and the KDI572 two years ago:

http://forum.avsim.net/topic/268961-duplicate-vors-in-fs9gps-search/page__p__1695607__hl__kdi572__fromsearch__1#entry1695607

I finally figured it out (thanks to re-directs from Roman Stoviak and Ed Wilson) including the HLD function which essentially requires a third NAV, but which FS does not support. It's a fully functional KDI-572 (XML, FS9) and I'd be happy to share my XML if you want.

Bob

Hi Bob

I would be very interested in a copy of the XML, I have been thrashing around with this for a few weeks and its wearing a bit thin, thought this would be an easy add on to the Sandel SN3500 ESHI Im making, dispite its simple design the HLD DME function is quite frustating.

Dave
 
dispite its simple design the HLD DME function is quite frustating.

Actually, I found the HLD function to be quite involved. As far as FS is concerned, it acts like a third NAV receiver, but FS only allows two. Consequently, I had to make use of the fs9gps module and learn how to do ICAO Searches and how to resolve multiple ICAOs. There was also some use of GeoCalc/non-Euclidean geometry for the HLD distance, speed and time, as I recall.

It was a fun project and one in which I first started learning the fs9gps module. If you go to the BlackBox website - GPS Viewer page, click on the right side screenshot - that's my finished KDI572.

http://www.robbiemcelrath.com/blackbox/?gpsv

I believe you can message me through this website and send me your email address.... I'll flip the xml and the bmps to you.

Cheers,

Bob
 
Actually, I found the HLD function to be quite involved. As far as FS is concerned, it acts like a third NAV receiver, but FS only allows two. Consequently, I had to make use of the fs9gps module and learn how to do ICAO Searches and how to resolve multiple ICAOs. There was also some use of GeoCalc/non-Euclidean geometry for the HLD distance, speed and time, as I recall.

It was a fun project and one in which I first started learning the fs9gps module. If you go to the BlackBox website - GPS Viewer page, click on the right side screenshot - that's my finished KDI572.

http://www.robbiemcelrath.com/blackbox/?gpsv

I believe you can message me through this website and send me your email address.... I'll flip the xml and the bmps to you.

Cheers,

Bob

Bob

email sent via Blackbox website.
 
Back
Top