Board index FlightGear Support Compiling

Command line doubt  Topic is solved

Building FlightGear from source, and in the need for help?

Command line doubt

Postby Dris » Tue Apr 12, 2022 3:50 pm

Hi!

Anyone knows what this command line from the SenecaII-base.xml file is used for?

Code: Select all
<PropertyList>
    <instrumentation>
        <use-new-navradio type="bool">true</use-new-navradio>
    </instrumentation>
</PropertyList>


Thanks!
Dris
 
Posts: 36
Joined: Thu Feb 17, 2022 10:34 pm

Re: Command line doubt  

Postby D-ECHO » Tue Apr 12, 2022 4:06 pm

This is used by the core FG instrumentation system (src/Instrumentation/newnavradio.cxx), see l. 967ff.:
Code: Select all
SGSubsystem * NavRadio::createInstance( SGPropertyNode_ptr rootNode )
{
    // use old navradio code by default
    if( fgGetBool( "/instrumentation/use-new-navradio", false ) )
        return new NavRadioImpl( rootNode );

    return new FGNavRadio( rootNode );
}
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Command line doubt

Postby Dris » Tue Apr 12, 2022 4:40 pm

Hi E-CHO!

I'm trying to find the file src/Instrumentation/newradio.cxx but I can't. I have Flight Gear 2020.3 version, does it exist in this version?
Dris
 
Posts: 36
Joined: Thu Feb 17, 2022 10:34 pm

Re: Command line doubt

Postby D-ECHO » Tue Apr 12, 2022 4:43 pm

This is in the sourcecode, if you don't compile FG yourself, you won't have it, but you can browse (and download, in case you want to) the complete sourcecode and its history here: https://sourceforge.net/p/flightgear/fl ... next/tree/
D-ECHO
 
Posts: 2458
Joined: Sat May 09, 2015 1:31 pm
Pronouns: Bea (she/her)
Version: next

Re: Command line doubt

Postby Dris » Wed Apr 13, 2022 7:43 am

Okey, a lot of thanks!
Dris
 
Posts: 36
Joined: Thu Feb 17, 2022 10:34 pm

Re: Command line doubt

Postby TheEagle » Wed Apr 13, 2022 5:06 pm

What is the difference between the two implementations, by the way ?
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: Command line doubt

Postby WoodSTokk » Fri Apr 15, 2022 8:22 pm

First, the old radios can be tuned to every frequency (even if it is out of the radio band) and it doesnt check if the frequency is a real one.
So you can also set it to 121.507 (in real there is only 121.500 and 121.525 with 25kHz spacing).
The new radio code check the frequency and correct it if you set a wrong one and the frequency must be inside the official band.
Also the new radio support the 8.333kHz spacing. The developer can also set the frequency per a new integer property.
This make the tuning simpler.
WoodSTokk
 
Posts: 1077
Joined: Tue Oct 17, 2017 3:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: SX-W57
IRC name: WoodSTokk
Version: 2020.4.0
OS: Debian Bullseye


Return to Compiling

Who is online

Users browsing this forum: No registered users and 5 guests