Board index FlightGear Support

VOR/TACAN {substitute for {VOR/TACAN frequency conversion}  Topic is solved

All general support: help on flying, installation, hardware, getting online etc. There are lots of users and developers to help you out.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- where did you download your aircraft/scenery from?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).

If you experience FlightGear crashes, please report a bug using the issue tracker (can be also used for feature requests).
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

VOR/TACAN {substitute for {VOR/TACAN frequency conversion}

Postby dilbert » Tue Oct 13, 2015 8:40 pm

Windows 7 FG 3.4.0 AMD A$-3420APU with RADEON GRAPHIC 2.8 GIG flying f14


Haven't found TACAN frequencies for the VORTACs listed on the map-just VOR frequencies.

Yet, if a TACAN frequency that corresponds to the VOR frequency listed for a VORTAC is entered, the VORTAC will tune. For example, if 75X is entered for the Mobile Downtown VORTAC, the TACAN will work. Where and how is this enabled in the program?

Would like to incorporate a feature in Radio Settings, such that whatever VORTAC VHF frequency was entered in "N2 standby", it would automatically alter
the frequency for the TACAN to the appropriate corresponding frequency.

This change would require no additional buttons or menus; but would require alteration of $FG\data\gui\dialogues\radios to include a routine
to establish the link between "N2 standby" and "TACAN". The facility for linkage between VHF and TACAN frequencies appears to already
be resident in 3.4.0 and might be employed to accomplish this change.
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby tauchergreg » Wed Oct 14, 2015 9:32 am

Hello,

try this link

http://www.e-haf.org/PublicFTP/320/UPLO ... 20list.pdf


or aks google for this

"VOR Frequencies to TACAN Channel list"


regrads
tauchergreg
C160 Transall , Twin Otter DHC6, both with small modification
EF2000
ETMN & EDXN under development
User avatar
tauchergreg
 
Posts: 58
Joined: Tue Jul 03, 2012 7:36 am
Location: near ETMN
Callsign: OFD001 ; BRT0192
Version: 20xx
OS: Linux & W7

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby simbambim » Wed Oct 14, 2015 9:45 am

Have you seen TACAN_freq.dat.gz in data\Navaids?
Fly on VATSIM and die.
simbambim
 
Posts: 260
Joined: Mon Sep 29, 2014 5:41 pm
Version: 3.2

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby dilbert » Wed Oct 14, 2015 12:55 pm

Thanks.Did open it, but must be compiled and looks like it's in Chinese. Had hoped to find a routine for changing TACAN to VOR where I could reverse and use for VOR to TACAN.
The alternative, of course, is to set up new files using "TACAN/DME Channel Designation and Paired Frequencies" from the internet with 258 entries and write a new routine for swapping the frequencies. Hoped to avoid that, but it may be necessary.
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby wkitty42 » Wed Oct 14, 2015 3:14 pm

dilbert wrote in Wed Oct 14, 2015 12:55 pm:Thanks.Did open it, but must be compiled and looks like it's in Chinese.

:shock: :shock: ummm... .gz files are gzip archives... you have to unzip them with a gzip compatible program first... there's at least one text file that lists channels and frequencies inside this archive...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4956
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby simbambim » Wed Oct 14, 2015 3:18 pm

This is the content of the file. Is this what you're looking for?

Code: Select all
Channel   Reply_Freq (KHz)
001X   96200
001Y   108800
002X   96300
002Y   108900
003X   96400
003Y   109000
004X   96500
004Y   109100
005X   96600
005Y   109200
006X   96700
006Y   109300
007X   96800
007Y   109400
008X   96900
008Y   109500
009X   97000
009Y   109600
010X   97100
010Y   109700
011X   97200
011Y   109800
012X   97300
012Y   109900
013X   97400
013Y   110000
014X   97500
014Y   110100
015X   97600
015Y   110200
016X   97700
016Y   110300
017X   10800
017Y   10805
018X   10810
018Y   10815
019X   10820
019Y   10825
020X   10830
020Y   10835
021X   10840
021Y   10845
022X   10850
022Y   10855
023X   10860
023Y   10865
024X   10870
024Y   10875
025X   10880
025Y   10885
026X   10890
026Y   10895
027X   10900
027Y   10905
028X   10910
028Y   10915
029X   10920
029Y   10925
030X   10930
030Y   10935
031X   10940
031Y   10945
032X   10950
032Y   10955
033X   10960
033Y   10965
034X   10970
034Y   10975
035X   10980
035Y   10985
036X   10990
036Y   10995
037X   11000
037Y   11005
038X   11010
038Y   11015
039X   11020
039Y   11025
040X   11030
040Y   11035
041X   11040
041Y   11045
042X   11050
042Y   11055
043X   11060
043Y   11065
044X   11070
044Y   11075
045X   11080
045Y   11085
046X   11090
046Y   11095
047X   11100
047Y   11105
048X   11110
048Y   11115
049X   11120
049Y   11125
050X   11130
050Y   11135
051X   11140
051Y   11145
052X   11150
052Y   11155
053X   11160
053Y   11165
054X   11170
054Y   11175
055X   11180
055Y   11185
056X   11190
056Y   11195
057X   11200
057Y   11205
058X   11210
058Y   11215
059X   11220
059Y   11225
060X   102100
060Y   114700
061X   102200
061Y   114800
062X   102300
062Y   114900
063X   102400
063Y   115000
064X   115100
064Y   102500
065X   115200
065Y   102600
066X   115300
066Y   102700
067X   115400
067Y   102800
068X   115500
068Y   102900
069X   115600
069Y   103000
070X   11230
070Y   11235
071X   11240
071Y   11245
072X   11250
072Y   11255
073X   11260
073Y   11265
074X   11270
074Y   11275
075X   11280
075Y   11285
076X   11290
076Y   11295
077X   11300
077Y   11305
078X   11310
078Y   11315
079X   11320
079Y   11325
080X   11330
080Y   11335
081X   11340
081Y   11345
082X   11350
082Y   11355
083X   11360
083Y   11365
084X   11370
084Y   11375
085X   11380
085Y   11385
086X   11390
086Y   11395
087X   11400
087Y   11405
088X   11410
088Y   11415
089X   11420
089Y   11425
090X   11430
090Y   11435
091X   11440
091Y   11445
092X   11450
092Y   11455
093X   11460
093Y   11465
094X   11470
094Y   11475
095X   11480
095Y   11485
096X   11490
096Y   11495
097X   11500
097Y   11505
098X   11510
098Y   11515
099X   11520
099Y   11525
100X   11530
100Y   11535
101X   11540
101Y   11545
102X   11550
102Y   11555
103X   11560
103Y   11565
104X   11570
104Y   11575
105X   11580
105Y   11585
106X   11590
106Y   11595
107X   11600
107Y   11605
108X   11610
108Y   11615
109X   11620
109Y   11625
110X   11630
110Y   11635
111X   11640
111Y   11645
112X   11650
112Y   11655
113X   11660
113Y   11665
114X   11670
114Y   11675
115X   11680
115Y   11685
116X   11690
116Y   11695
117X   11700
117Y   11705
118X   11710
118Y   11715
119X   11720
119Y   11725
120X   11730
120Y   11735
121X   11740
121Y   11745
122X   11750
122Y   11755
123X   11760
123Y   11765
124X   11770
124Y   11775
125X   11780
125Y   11785
126X   11790
126Y   11795
Fly on VATSIM and die.
simbambim
 
Posts: 260
Joined: Mon Sep 29, 2014 5:41 pm
Version: 3.2

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby dilbert » Thu Oct 15, 2015 12:55 am

yes, thank you. I'm a real newbe when it comes to C++.

If the table you provided represents the entire file, other than a couple of text documents, then there must be a routine elsewhere in the program that uses it to accomplish the opposite (changing from TACAN to VOR); which I have not found as yet. If located, it could be copied and modified to accomplish the reverse (VOR to TACAN).

A better alternative to my original suggestion would be to add boxes to the right of "n1 standby" and "n2 standby" and the "degrees" boxes that would display the corresponding TACAN frequency and be triggered by rightward movement of the slide bar. This would allow you to determine appropriate TACAN frequencies for the VOR frequencies tuned in "n1" and "n2" by moving the slide bar right. Also, it would convert and display the appropriate TACAN frequency for "n1 standby frequency" or "n2 standby frequency" by moving the slide bar left then back right.

You would then select the desired frequency and tune the TACAN manually as now.

Like this idea better than my original, as it would be less confusing and simpler to program.

Unzipped TACAN_freq.dat.gz and opened in notepad. Thanks for the info and advice.
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby wkitty42 » Fri Oct 16, 2015 2:34 am

this has nothing to do with C or C++ or any other programming language... the file pointed to is simply a list of channels and frequencies... nothing more and nothing less ;)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4956
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby clrCoda » Fri Oct 16, 2015 3:26 am

You lost me at "rightward movement of the slide bar". I'm not sure I know what the 'slide bar' is. Is it in a dialog i've never seen or possibly on a model of the radio?

--I'm fixin' to larn sumptin, I just knows it. :)
Ray
Ray St. Marie
clrCoda
 
Posts: 1228
Joined: Wed Apr 07, 2010 11:04 am

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby Hooray » Fri Oct 16, 2015 12:17 pm

For example, if 75X is entered for the Mobile Downtown VORTAC, the TACAN will work. Where and how is this enabled in the program?

Would like to incorporate a feature in Radio Settings, such that whatever VORTAC VHF frequency was entered in "N2 standby", it would automatically alter
the frequency for the TACAN to the appropriate corresponding frequency.


See: $FG_ROOT/gui/dialogs/radios.xml:


A better alternative to my original suggestion would be to add boxes to the right of "n1 standby" and "n2 standby" and the "degrees" boxes that would display the corresponding TACAN frequency and be triggered by rightward movement of the slide bar. This would allow you to determine appropriate TACAN frequencies for the VOR frequencies tuned in "n1" and "n2" by moving the slide bar right. Also, it would convert and display the appropriate TACAN frequency for "n1 standby frequency" or "n2 standby frequency" by moving the slide bar left then back right.

You would then select the desired frequency and tune the TACAN manually as now.

Like this idea better than my original, as it would be less confusing and simpler to program.


This is possible, and it may not even involve much in terms of programming.
The references/pointers I posted previously, would still be applicable.

First of all, you need to understand where to find the FG base package:

http://wiki.flightgear.org/Base_package
http://wiki.flightgear.org/$FG_ROOT

Our dialogs are invoked via $FG_ROOT/gui/menubar.xml
Dialogs themselves reside in $FG_ROOT/gui/dialogs
You can look up the dialog that you are interested in via menubar.xml (e.g. radios.xml) and open that using a text editor.
What you will see, is an XML document, this can be edited/extended by adding widgets to it, as per $FG_ROOT/Docs/README.gui, with layouting directives being documented in $FG_ROOT/Docs/README.layout and available commands in $FG_ROOT/Docs/README.commands

Admittedly, all that may seem a little overwhelming at first glance - which is why I suggested to start with exit.xml and take it from there, because that is fairly self-contained and straightforward to extend, especially compared to dialogs containing embedded Nasal script code (=programs).

If you are serious about this, but are feeling a little overwhelmed given all the tutorials, readme files and new concepts, I suggest to take it more slowly by looking at the wiki, which has some fairly good/accessible tutorials to help lower the barrier to entry:

http://wiki.flightgear.org/XML
http://wiki.flightgear.org/Property_tree
http://wiki.flightgear.org/Property_Tree/Explained
http://wiki.flightgear.org/Property_browser
http://wiki.flightgear.org/PropertyList_XML_files

These article should give you a good idea about the property tree and how it relates to XML files, which are used for representing dialogs in FG.

Next, I would suggest to review my response to you in the other thread and look up the exit.xml dialog and see how that relates to the readme files in $FG_ROOT/Docs
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11273
Joined: Tue Mar 25, 2008 8:40 am

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby dilbert » Fri Oct 16, 2015 7:05 pm

Thanks for the info, which I will review.
Am serious, as I think the addition would be helpful to f14 users, including myself.

Not having any c++ background am having to learn by doing. Fortunately, Coffee Cup works very well editing HML and allows incorporation of snippets.

Have added an item to "Equipment" immediately above "radio equipment" for convenience in testing entitled "vor to tacan". At present, when I click it, I get a copy of the "radios" menu entitled vrradios. Am working on expanding "vrradios" to include the displays and routines desired. Best Dilbert
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby Hooray » Fri Oct 16, 2015 7:35 pm

Some of your terminology is a little odd/off, i.e. there is no "C++" involved here whatsoever. You have been editing so called XML files up to now.

Given that you already managed to edit/add to the menubar, it should be straightforward to explore renaming the item (using/editing $FG_ROOT/Translations) and making it display other dialogs. You can basically make it open/display arbitrary dialogs from $FG_ROOT/gui/dialogs

The next step would be customizing dialog files, and/or coming up with your own dialog, e.g. by using exit.xml as a template, copying/renaming that and changing it a little.

If in doubt, you could share some of your changes on the forum, e.g. by posting your changed code or posting a few screen shots.

Subsequently, we could better help you, and your postings might also be turned into tutorials for others wanting to edit/extend the user interface a little.

I am afraid that the whole thing is not too well documented at the moment, because it is considered relatively straightforward - but admittedly, that assumes quite a bit of background knowledge (using a file explorer, opening/editing text files, knowing about file extensions, learning about XML, the property tree, GUI widgets and layouting).

Once you have learned how to use your text editor, and how to upload images to the wiki, you should definitely consider documenting your journey there.

BTW: I seem to recall that you mentioned elsewhere that you were in your 80s and don't have a computing background, if that's the case, my hat's off to you ... I sure hope that I will be able to pick up so many new concepts at your age ! So please don't give up, and sorry if some of us may seem a bit harsh at times - it is far too easy to forget the steep learning curve involved in making working changes to the sim. That being said, you should know that we even have disabled/blind people using FlightGear, who have still become active contributors. So ultimately, it is all up to you obviously. Good luck !
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11273
Joined: Tue Mar 25, 2008 8:40 am

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby dilbert » Sat Oct 17, 2015 11:35 am

thank you for your kind remarks and help.

Since a little over my head, will attempt to return to your original approach. Still have the necessary snippets to proceed.

Used the abbreviated term "vor/tacan" for "vor/tacan conversion" in my revised "exit" file. So, copied "vor/tacan" into "menubar" above "radio settings" under "equipment". {Got it to display by temporarily removing the <PropertyList> and </PropertyList> terms}

Added <vor/tacan>vor/tacan</vor/tacan> to $FG_ROOT/Translations/eng/menu. Attempted run (having restored the <PropertyList> and </PropertyList> terms to the "vor/tacan" (revised "exit") file. Got error and would not run. Looks like I went in a circle, because my addition to " $FG_ROOT/Translations/?eng/menu" may have been incorrect. Where did it go wrong?
Last edited by dilbert on Sat Oct 17, 2015 11:57 am, edited 1 time in total.
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio

Postby Hooray » Sat Oct 17, 2015 11:55 am

Yes, you probably need to proceed a little more slowly.
And it would make sense for you to look at the XML/PropertyList XML articles on the wiki I recommended, because those illustrate how to make working changes to the translations/menubar (and dialog) files.

Basically, you need to understand the relationship between properties and XML, for example:

/alpha/bravo/charly

You can imagine this like a property tree representing a tree hierarchy (with branches), similar to a file system where you may have C:\directory1\directory2\file1

next, you need to understand how this translates to the corresponding XML markup representing this "property tree".

The most basic XML file is this:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
 
<PropertyList>
</PropertyList>


This can be considered to be the "boilerplate" (scaffolding) for most FG XML files.
Anything that is relevant to FG will be put in between the PropertyList tags.
You also need to understand that in XML, there is a parity between OPENING and CLOSING tags, i.e. a closing tag is one with a forward slash prepended to the name of the opening tag.

So whenever you want to add a new tag, you also need to add a closing tag.
The short-hand for that is adding an opening tag with a forward slash appended to the end of the tag:

Code: Select all
<dilbert>
</dilbert>


is equivalent to this:
<dilbert/>

Thus:

Code: Select all
<dilbert>
 <pets>
 <dog>1</dog>
 </pets>
</dilbert>


is XML markup for the following property tree:
/dilbert/pets/dog=1

With this background knowledge, you may want to revisit the wiki resources I suggested previously: http://wiki.flightgear.org/PropertyList ... al_example

In general, it makes sense to create a few XML files first and load those into FG and inspect the FG property tree using the property browser - e.g. by changing/adding translations, and checking the results in the global tree.

In fact, you can add arbitrary stuff to the translation - such as by going to $FG_ROOT/Translations/en/menu.xml and editing/changing things there.

PS: It would seem like a good idea to make backup copies of all files that you edit/modify
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11273
Joined: Tue Mar 25, 2008 8:40 am

Re: VOR/TACAN {substitute for {VOR/TACAN frequency conversio  

Postby dilbert » Sat Oct 17, 2015 12:13 pm

Image

have since changed "standbye" to "standby"

Made copy of $FG_ROOT\data\gui\dialogues\radios and renamed it "vtradios".Changed label to <label>VOR TO TACAN frequency</label>.

In "menubar" under "equipment" made copy of the "radio settings" menu immediately above itself, changing the name to <name>vtradios</name>.
Changed <dialogue-name>radios</dialogue-name> to <dialogue-name>vtradios</dialogue-name>

Stripped everything out of "vtradios" except the necessary box descriptions, the "n2-standby" box with its entry routine, the "tacan" box with its entry routine, and the "atc services in range button".

Changed button legend <legend>atc services in range</legend> to <legend>display vor frequency</legend>. Changed command to <command>vor-tacan-change</command>, which will refer to the as yet to be written frequency conversion routine.
Also above <radio>radio settings</radio" in $FG_ROOT\data\translations\en\menu added <vor/tacan>vor/tacan<\vortacan>.

Frequencies tuned in "vor/tacan" also display in the "radio settings"menu, so you can tune "n2-standby" and "tacan" from either menu.
This means, of course, that once the frequency conversion routine is incorporated, the "display vor frequency" button can be added
to the "radio settings" menu and the "vor/tacan" menu, then being superfluous, can be eliminated.

Wish to know location of existing routine in flight gear for changing a tacan frequency to VOR. So far, haven't found it in property browser. The file used is $FG_ROOT\data\Navaids\TACAN_freq.data, but I can't find the routine for changing from "Channel" to "Reply_Freq (kHz)".


Have since added a box for displaying the output from the conversion routine, which likely will be in text format, with the idea that the user can then manually enter it in the TACAN tuner.

Image

Best, Dilbert

threw in the towel in favor of solution described in VORTAC to TACAN frequencies for f14 pilots, which requires no programming.

Best, Dilbert
Last edited by dilbert on Sat Oct 24, 2015 11:50 pm, edited 18 times in total.
dilbert
 
Posts: 437
Joined: Wed Jan 07, 2015 8:36 pm
Location: Alabama, USA
Callsign: db1
Version: 2018.3.1
OS: Win 10 & Chrome

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests