Board index FlightGear Support Flying

Save radio settings?  Topic is solved

Controlling your aircraft, using the autopilot etc.

Re: Save radio settings?

Postby wlbragg » Sun Sep 29, 2019 9:10 pm

Be careful what you delete. The aircraft-data "flightgear.org/aircraft-data/c172p.xml" file is really the only file that would have any effect on saved settings and that is changed on every launch and eXit, so I don't think that is an issue. If your starting from the QT launcher there is command line settings that can be added to set properties. You didn't add any radio settings there?

You could try opening the sim, set the radios, close the sim the correct way using the "File/Exit" menu choice and the open the saved data file "flightgear.org/aircraft-data/c172p.xml" in a text editor and see if it saves the frequencies correctly.

The "save1.xml" file is created if you use the "Save/Resume" feature. It does not specifically save the radio properties, but probably should be made to.

It shouldn't matter though because they are saved every time anyway.

I was able to verified that the default c172p that is in fgdata does indeed save the radio settings by default. So I really have no clue as to why yours won't.
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4906
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Save radio settings?

Postby pb321 » Mon Sep 30, 2019 2:12 am

Thanks again, @wlbragg. I have not (yet) tried setting the radios using the command line in QT Launcher. Below is the c172p.xml file after setting the radios and quitting:
Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <sim>
    <rendering>
      <shadow-volume type="bool">true</shadow-volume>
    </rendering>
    <model>
      <occupants type="bool">true</occupants>
      <c172p>
        <cockpit>
          <control-lock-placed type="bool">false</control-lock-placed>
        </cockpit>
        <securing>
          <pitot-cover-visible type="bool">false</pitot-cover-visible>
          <cowl-plugs-visible type="bool">false</cowl-plugs-visible>
          <chock type="bool">false</chock>
          <tiedownL-visible type="bool">false</tiedownL-visible>
          <tiedownR-visible type="bool">false</tiedownR-visible>
          <tiedownT-visible type="bool">false</tiedownT-visible>
        </securing>
        <brake-parking type="double">0</brake-parking>
        <enable-fog-frost type="bool">true</enable-fog-frost>
        <garmin196-visible type="bool">false</garmin196-visible>
        <digitalclock-visible type="bool">false</digitalclock-visible>
        <save-state type="bool">false</save-state>
        <ruddertrim-visible type="bool">false</ruddertrim-visible>
        <immat-on-panel type="bool">false</immat-on-panel>
      </c172p>
      <walker n="1">
        <animate>
          <enabled-triggers type="bool">true</enabled-triggers>
          <list>
            <sequence>
              <trigger-upon type="string">Standing</trigger-upon>
            </sequence>
            <sequence n="8">
              <trigger-upon type="string">Disabled</trigger-upon>
            </sequence>
          </list>
        </animate>
      </walker>
      <livery>
        <name type="string">4X-CHV (HD livery)</name>
      </livery>
    </model>
    <current-view>
      <user>
        <x-offset-m type="double">-0.21</x-offset-m>
        <y-offset-m type="double">0.208</y-offset-m>
        <z-offset-m type="double">0.36</z-offset-m>
        <pitch-offset-deg type="double">-12</pitch-offset-deg>
        <default-field-of-view-deg type="double">85.58754572</default-field-of-view-deg>
      </user>
    </current-view>
    <walker>
    </walker>
    <time>
      <hobbs>
        <engine type="double">146.525</engine>
        <engine n="1" type="double">0</engine>
      </hobbs>
    </time>
    <view n="110">
      <enabled type="bool">false</enabled>
    </view>
    <view n="111">
      <enabled type="bool">false</enabled>
    </view>
  </sim>
  <engines>
    <active-engine>
      <carb_icing_allowed type="bool">false</carb_icing_allowed>
      <oil_consumption_allowed type="bool">false</oil_consumption_allowed>
      <oil-service-hours type="double">0</oil-service-hours>
      <oil-level type="double">7</oil-level>
      <complex-engine-procedures type="bool">false</complex-engine-procedures>
    </active-engine>
  </engines>
  <fdm>
    <jsbsim>
      <engine>
        <damage-level type="double">0</damage-level>
      </engine>
      <settings>
        <damage type="bool">true</damage>
        <damage-flag type="bool">false</damage-flag>
      </settings>
      <running type="bool">false</running>
    </jsbsim>
  </fdm>
  <environment>
    <aircraft-effects>
      <cabin-heat-set type="double">0</cabin-heat-set>
      <cabin-air-set type="double">0</cabin-air-set>
    </aircraft-effects>
  </environment>
  <controls>
    <climate-control>
      <overhead-vent-front-left type="double">0</overhead-vent-front-left>
      <overhead-vent-front-right type="double">0</overhead-vent-front-right>
    </climate-control>
    <mooring>
      <automatic type="bool">false</automatic>
    </mooring>
    <flight>
      <rudder-trim-knob type="double">0</rudder-trim-knob>
    </flight>
  </controls>
  <consumables>
    <fuel>
      <save-fuel-state type="bool">false</save-fuel-state>
      <contamination_allowed type="bool">false</contamination_allowed>
      <tank>
        <level-gal_us type="double">19.9929402</level-gal_us>
      </tank>
      <tank n="1">
        <level-gal_us type="double">19.9929402</level-gal_us>
      </tank>
    </fuel>
  </consumables>
  <instrumentation>
    <save-switches-state type="bool">false</save-switches-state>
    <adf>
      <adf-btn type="bool">false</adf-btn>
      <bfo-btn type="bool">false</bfo-btn>
      <volume-norm type="double">0.5</volume-norm>
      <power-btn type="bool">true</power-btn>
      <frequencies>
        <standby-khz type="double">200</standby-khz>
        <selected-khz type="double">200</selected-khz>
      </frequencies>
    </adf>
    <clock>
      <lc2>
        <flight-meter-sec type="double">0</flight-meter-sec>
      </lc2>
    </clock>
  </instrumentation>
  <systems>
    <electrical>
      <save-battery-charge type="bool">false</save-battery-charge>
      <battery-charge-percent type="double">1</battery-charge-percent>
    </electrical>
  </systems>
</PropertyList>


I assume the "Instrumentation" section is the important one for this particular problem. Save Switches is False. As I've said, this works fine on my other machine. If it were you, would you uninstall, get rid of all previous FG version remnants and reinstall?
pb321
 
Posts: 140
Joined: Sun Nov 27, 2016 4:08 pm
Version: 2019.2.1
OS: Windows 10 Pro

Re: Save radio settings?

Postby WoodSTokk » Mon Sep 30, 2019 4:22 am

Is it possible that you fly a older version of that aircraft?
WoodSTokk
 
Posts: 294
Joined: Tue Oct 17, 2017 2:30 pm
Location: Milky Way/Sol/Earth/Europe
Callsign: OE-WST
IRC name: WoodSTokk
Version: 2018.3.1
OS: Debian Buster/Sid

Re: Save radio settings?

Postby xcvb » Mon Sep 30, 2019 4:39 am

It could be important that you close FlightGear via File->Exit instead of just closing the window.
xcvb
 
Posts: 88
Joined: Sat Mar 14, 2015 2:08 pm
Version: 2018.1.1
OS: Fedora 27

Re: Save radio settings?

Postby wlbragg » Mon Sep 30, 2019 4:57 am

You don't have near the data my "saved data" does, including no nav or com radio entries.

Code: Select all
<?xml version="1.0"?>

<PropertyList>
  <sim>
    <rendering>
      <shadow-volume type="bool">true</shadow-volume>
    </rendering>
    <model>
      <occupants type="bool">true</occupants>
      <c172p>
        <cockpit>
          <control-lock-placed type="bool">false</control-lock-placed>
        </cockpit>
        <securing>
          <pitot-cover-visible type="bool">false</pitot-cover-visible>
          <cowl-plugs-visible type="bool">false</cowl-plugs-visible>
          <chock type="bool">false</chock>
          <tiedownL-visible type="bool">false</tiedownL-visible>
          <tiedownR-visible type="bool">false</tiedownR-visible>
          <tiedownT-visible type="bool">false</tiedownT-visible>
        </securing>
        <brake-parking type="double">1</brake-parking>
        <enable-fog-frost type="bool">true</enable-fog-frost>
        <garmin196-visible type="bool">false</garmin196-visible>
        <digitalclock-visible type="bool">true</digitalclock-visible>
        <save-state type="bool">false</save-state>
        <ruddertrim-visible type="bool">false</ruddertrim-visible>
        <immat-on-panel type="bool">false</immat-on-panel>
      </c172p>
      <walker n="1">
        <animate>
          <enabled-triggers type="bool">true</enabled-triggers>
          <list>
            <sequence>
              <trigger-upon type="string">Standing</trigger-upon>
            </sequence>
            <sequence n="8">
              <trigger-upon type="string">Disabled</trigger-upon>
            </sequence>
          </list>
        </animate>
      </walker>
      <livery>
        <name type="string">4X-CHV (HD livery)</name>
      </livery>
    </model>
    <current-view>
      <user>
        <x-offset-m type="double">-0.21</x-offset-m>
        <y-offset-m type="double">0.248</y-offset-m>
        <z-offset-m type="double">0.41</z-offset-m>
        <pitch-offset-deg type="double">-4.828571429</pitch-offset-deg>
        <default-field-of-view-deg type="double">76.21946642</default-field-of-view-deg>
      </user>
    </current-view>
    <walker>
    </walker>
    <time>
      <hobbs>
        <engine type="double">41326.20001</engine>
        <engine n="1" type="double">3375.633333</engine>
      </hobbs>
    </time>
    <view n="100">
      <enabled type="bool">true</enabled>
    </view>
    <view n="101">
      <enabled type="bool">true</enabled>
    </view>
    <view n="102">
      <enabled type="bool">true</enabled>
    </view>
    <view n="103">
      <enabled type="bool">true</enabled>
    </view>
    <view n="110">
      <enabled type="bool">false</enabled>
    </view>
    <view n="111">
      <enabled type="bool">false</enabled>
    </view>
  </sim>
  <engines>
    <active-engine>
      <carb_icing_allowed type="bool">true</carb_icing_allowed>
      <oil_consumption_allowed type="bool">true</oil_consumption_allowed>
      <oil-service-hours type="double">12.11194444</oil-service-hours>
      <oil-level type="double">7.958311683</oil-level>
      <complex-engine-procedures type="bool">true</complex-engine-procedures>
    </active-engine>
    <engine>
    </engine>
  </engines>
  <fdm>
    <jsbsim>
      <engine>
        <damage-level type="double">2.019660272</damage-level>
      </engine>
      <settings>
        <damage type="bool">true</damage>
        <damage-flag type="bool">false</damage-flag>
      </settings>
      <running type="bool">false</running>
    </jsbsim>
  </fdm>
  <environment>
    <aircraft-effects>
      <cabin-heat-set type="double">0</cabin-heat-set>
      <cabin-air-set type="double">0</cabin-air-set>
    </aircraft-effects>
  </environment>
  <controls>
    <climate-control>
      <overhead-vent-front-left type="double">0.1</overhead-vent-front-left>
      <overhead-vent-front-right type="double">0</overhead-vent-front-right>
    </climate-control>
    <mooring>
      <automatic type="bool">false</automatic>
    </mooring>
    <flight>
      <rudder-trim-knob type="double">0</rudder-trim-knob>
      <flaps type="double">0</flaps>
      <elevator-trim type="double">0</elevator-trim>
    </flight>
    <lighting>
      <beacon type="bool">false</beacon>
      <landing-lights type="bool">false</landing-lights>
      <nav-lights type="bool">false</nav-lights>
      <strobe type="bool">false</strobe>
      <taxi-light type="bool">false</taxi-light>
      <gearled type="bool">false</gearled>
      <instruments-norm type="double">0</instruments-norm>
      <radio-norm type="double">0</radio-norm>
      <dome-white-norm type="double">1</dome-white-norm>
    </lighting>
    <switches>
      <magnetos type="int">0</magnetos>
      <master-bat type="bool">true</master-bat>
      <master-alt type="bool">false</master-alt>
      <master-avionics type="bool">true</master-avionics>
      <dome-red type="int">0</dome-red>
      <dome-white type="bool">false</dome-white>
    </switches>
    <anti-ice>
      <engine>
        <carb-heat type="bool">false</carb-heat>
      </engine>
      <pitot-heat type="bool">false</pitot-heat>
    </anti-ice>
    <engines>
      <current-engine>
        <throttle type="double">0</throttle>
        <mixture type="double">0</mixture>
      </current-engine>
      <engine>
        <primer-lever type="bool">false</primer-lever>
      </engine>
    </engines>
    <circuit-breakers>
      <aircond type="bool">true</aircond>
      <autopilot type="bool">true</autopilot>
      <bcnlt type="bool">true</bcnlt>
      <flaps type="bool">true</flaps>
      <instr type="bool">true</instr>
      <intlt type="bool">true</intlt>
      <landing type="bool">true</landing>
      <master type="bool">true</master>
      <navlt type="bool">true</navlt>
      <pitot-heat type="bool">true</pitot-heat>
      <radio1 type="bool">true</radio1>
      <radio2 type="bool">true</radio2>
      <radio3 type="bool">true</radio3>
      <radio4 type="bool">true</radio4>
      <radio5 type="bool">true</radio5>
      <strobe type="bool">true</strobe>
      <turn-coordinator type="bool">true</turn-coordinator>
    </circuit-breakers>
  </controls>
  <consumables>
    <fuel>
      <save-fuel-state type="bool">false</save-fuel-state>
      <contamination_allowed type="bool">true</contamination_allowed>
      <tank>
        <level-gal_us type="double">19.99570875</level-gal_us>
        <selected type="bool">true</selected>
      </tank>
      <tank n="1">
        <level-gal_us type="double">19.99570875</level-gal_us>
        <selected type="bool">true</selected>
      </tank>
    </fuel>
  </consumables>
  <instrumentation>
    <save-switches-state type="bool">false</save-switches-state>
    <dme>
      <power-btn type="bool">true</power-btn>
      <switch-min-kts type="bool">true</switch-min-kts>
      <switch-position type="int">2</switch-position>
      <frequencies>
        <source type="string">/instrumentation/nav[0]/frequencies/selected-mhz</source>
        <selected-mhz type="double">117</selected-mhz>
      </frequencies>
    </dme>
    <kma20>
      <test type="int">0</test>
      <auto type="int">1</auto>
      <com1 type="int">0</com1>
      <com2 type="int">0</com2>
      <nav1 type="int">0</nav1>
      <nav2 type="int">0</nav2>
      <adf type="int">0</adf>
      <dme type="int">0</dme>
      <mkr type="int">-1</mkr>
      <sens type="int">0</sens>
      <knob type="int">-1</knob>
    </kma20>
    <comm>
      <power-btn type="bool">true</power-btn>
      <volume-selected type="double">0.7</volume-selected>
      <frequencies>
        <selected-mhz type="double">123.4</selected-mhz>
        <standby-mhz type="double">123.4</standby-mhz>
        <dial-khz type="int">128</dial-khz>
        <dial-mhz type="int">36</dial-mhz>
      </frequencies>
      <channel-mode-selector type="bool">true</channel-mode-selector>
    </comm>
    <nav>
      <ident-audible type="bool">false</ident-audible>
      <power-btn type="bool">true</power-btn>
      <volume type="double">0.7</volume>
      <frequencies>
        <selected-mhz type="double">117</selected-mhz>
        <standby-mhz type="double">117</standby-mhz>
        <dial-khz type="int">120</dial-khz>
        <dial-mhz type="int">96</dial-mhz>
      </frequencies>
      <radials>
        <selected-deg type="double">284</selected-deg>
      </radials>
    </nav>
    <comm n="1">
      <power-btn type="bool">true</power-btn>
      <volume-selected type="double">0.7</volume-selected>
      <frequencies>
        <selected-mhz type="double">128.3</selected-mhz>
        <standby-mhz type="double">121.9</standby-mhz>
        <dial-khz type="int">0</dial-khz>
        <dial-mhz type="int">0</dial-mhz>
      </frequencies>
    </comm>
    <nav n="1">
      <ident-audible type="bool">false</ident-audible>
      <power-btn type="bool">true</power-btn>
      <volume type="double">0.7</volume>
      <frequencies>
        <selected-mhz type="double">112.4</selected-mhz>
        <standby-mhz type="double">113.6</standby-mhz>
        <dial-khz type="int">0</dial-khz>
        <dial-mhz type="int">0</dial-mhz>
      </frequencies>
      <radials>
        <selected-deg type="double">326</selected-deg>
      </radials>
    </nav>
    <altimeter>
      <setting-inhg type="double">29.92</setting-inhg>
    </altimeter>
    <attitude-indicator>
    </attitude-indicator>
    <heading-indicator>
    </heading-indicator>
    <adf>
      <rotation-deg type="double">0</rotation-deg>
      <frequencies>
        <dial-1-khz type="int">0</dial-1-khz>
        <dial-100-khz type="int">0</dial-100-khz>
        <standby-khz type="double">626</standby-khz>
        <selected-khz type="double">281</selected-khz>
      </frequencies>
      <adf-btn type="bool">true</adf-btn>
      <bfo-btn type="bool">false</bfo-btn>
      <volume-norm type="double">0.5</volume-norm>
      <power-btn type="bool">true</power-btn>
    </adf>
    <transponder>
      <inputs>
        <knob-mode type="int">4</knob-mode>
        <ident-btn type="bool">false</ident-btn>
        <digit type="int">0</digit>
        <digit n="1" type="int">0</digit>
        <digit n="2" type="int">2</digit>
        <digit n="3" type="int">1</digit>
      </inputs>
    </transponder>
    <clock>
      <lc2>
        <flight-meter-sec type="double">0</flight-meter-sec>
      </lc2>
    </clock>
  </instrumentation>
  <systems>
    <electrical>
      <save-battery-charge type="bool">false</save-battery-charge>
      <battery-charge-percent type="double">0.8239016776</battery-charge-percent>
    </electrical>
  </systems>
  <autopilot>
    <settings>
    </settings>
    <KAP140>
      <settings>
      </settings>
    </KAP140>
  </autopilot>
</PropertyList>
Kansas(2-27-15)/Ohio/Midwest scenery development.
KEQA (2-27-15), 3AU, KRCP Airport Layout
User avatar
wlbragg
 
Posts: 4906
Joined: Sat Aug 25, 2012 11:31 pm
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Debain/nVGT640

Re: Save radio settings?

Postby pb321 » Mon Sep 30, 2019 3:26 pm

Thank you very much @xcvb, @WoodSTock and @wlbragg!
It could be important that you close FlightGear via File->Exit instead of just closing the window.

Agree. That is how I've been quitting.
Is it possible that you fly a older version of that aircraft?

Checking "About" (aircraft), it indicates 2019.1
You don't have near the data my "saved data" does, including no nav or com radio entries.

Very interesting...something is very wrong with the installation on my desktop machine.
I am downloading 2019.1.2-rc.exe, thinking of uninstalling and reinstalling FG. I don't know what would happen if I try an install over the existing installation. The C-172P is a top-notch, very realistic plane, so I'm anxious to get it working as it should.
pb321
 
Posts: 140
Joined: Sun Nov 27, 2016 4:08 pm
Version: 2019.2.1
OS: Windows 10 Pro

Re: Save radio settings?  

Postby pb321 » Mon Sep 30, 2019 6:15 pm

Well, this is interesting. I uninstalled FG 2019.1.2. I downloaded FlightGear-2019.1.2-rc.exe and installed it without deleting settings from previous versions of FG. It did not behave any differently. I uninstalled it, and installed FlightGear-2019.2.0-nightly-full.exe (downloaded yesterday) without deleting settings from previous versions. It works, saving the radio settings!!
pb321
 
Posts: 140
Joined: Sun Nov 27, 2016 4:08 pm
Version: 2019.2.1
OS: Windows 10 Pro

Previous

Return to Flying

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests