]> git.mxchange.org Git - flightgear.git/log
flightgear.git
19 years agoDavid Culp:
ehofman [Thu, 26 Aug 2004 08:38:43 +0000 (08:38 +0000)]
David Culp:

Here is an update for the submodel system.  This will allow submodels to be
defined for any aircraft, and there are no default submodels.  To use this
submodel system you need to set up a binding (slight change in property name
from last one, but you can use any property name you like, as long as it
matches the name in the submodels.xml file, see below):

 <button n="0">
  <desc>Trigger</desc>
  <binding>
   <command>property-assign</command>
   <property>/systems/submodels/trigger</property>
   <value type="bool">true</value>
  </binding>
  <mod-up>
   <binding>
    <command>property-assign</command>
    <property>/systems/submodels/trigger</property>
    <value type="bool">false</value>
   </binding>
  </mod-up>
 </button>

Then in your *-set.xml file you need to define a path to the configuration
file (similar to the way the electrical system is now done):

<sim>
 ...
  <systems>
   <electrical>
    <path>Aircraft/Generic/generic-electrical.xml</path>
   </electrical>
   <submodels>
    <serviceable type="bool">true</serviceable>
    <path>Aircraft/FW190/submodels.xml</path>
   </submodels>
  </systems>
 ...
</sim>

Then you put the submodel configuration file in your aircraft's directory.
I've attached a file, submodels.xml, that can be used to define a gun that
works just like the former one did.

There are two things remaining to be done.  One is to change the function
SubmodelSystem::transform() to properly position the submodel.  This will
require some complicated matrix code that I might borrow from Yasim.

19 years agoInclude multipass clouds by default, enable it by specifying --prop:/sim/rendering...
ehofman [Tue, 24 Aug 2004 09:34:42 +0000 (09:34 +0000)]
Include multipass clouds by default, enable it by specifying --prop:/sim/rendering/multi-pass-clouds=true

19 years agoMove the atexit() handler over to bootstrap.cxx (which makes libMain.a behave like...
ehofman [Tue, 24 Aug 2004 08:40:41 +0000 (08:40 +0000)]
Move the atexit() handler over to bootstrap.cxx (which makes libMain.a behave like a real library) and fix a segmentation fault when running 'fgfs -h'. The exit handler tried to change the (still uninitialized) mouse cursor causing a core dump.

19 years agoFix another one of those mistakes. I really shouldn't mess with code from others...
ehofman [Mon, 23 Aug 2004 17:40:46 +0000 (17:40 +0000)]
Fix another one of those mistakes. I really shouldn't mess with code from others (without looking at it closely) :-(

19 years agoFix a mistake and make it possible to activate the submodel subsystem again.
ehofman [Mon, 23 Aug 2004 17:33:36 +0000 (17:33 +0000)]
Fix a mistake and make it possible to activate the submodel subsystem again.

19 years agoVivian Meazza:
ehofman [Mon, 23 Aug 2004 17:22:55 +0000 (17:22 +0000)]
Vivian Meazza:

Well here's some tracer stuff. If fiddled around with submodel.cxx. It now
does what it says - you need to put this:

<!-- trial gun system -->
    <systems>
      <submodel>
        <serviceable type="bool">true</serviceable>
        <amount type="int">120</amount>
      </submodel>
    </systems>

In the *-set.xml file NOT within <sim></sim>. Trouble is it still defaults
to serviceable=true, but it also defaults to amount=0. Unless this bit of
code is included it wont run, so other models can't fire inappropriate
tracer. Revised submodel.cxx file attached.

I've changed to a non-billboard solution. I tried to make the viewing angle
of the tracer less than 180 degs, but failed. Close enough I think. It's
still a bit big, but a reasonable compromise. .AC file attached.

I remain concerned about the tracer colour. In practice, red is better (and
it's what I am used to) but David seems set on white, and I don't want to
upset him. I'm going to adjust the texture a bit more tomorrow.

19 years agoI forgot a small patch.
ehofman [Sun, 22 Aug 2004 17:04:37 +0000 (17:04 +0000)]
I forgot a small patch.

19 years agoDavid Culp:
ehofman [Sun, 22 Aug 2004 16:22:18 +0000 (16:22 +0000)]
David Culp:

Right now the code is not very configurable, and there is only one submodel per airplane possible. It is implemented as an SGSubSystem, just like the electrics, vacuum, etc. systems.  To make it work you need to make a release binding like this (for my joystick trigger):

 <button n="0">
  <desc>Trigger</desc>
  <binding>
   <command>property-assign</command>
   <property>/systems/submodel/trigger</property>
   <value type="bool">true</value>
  </binding>
  <mod-up>
   <binding>
    <command>property-assign</command>
    <property>/systems/submodel/trigger</property>
    <value type="bool">false</value>
   </binding>
  </mod-up>
 </button>

Then, each airplane that uses the system should have something like this added to its *-set.xml file (note that this does *not* go within the <sim></sim> tags):

 <systems>
   <submodel>
    <serviceable type="bool">true</serviceable>
    <amount type="int">70</amount>
   </submodel>
 </systems>

Future improvements will include:
1)  more configurability, so the user can create multiple submodels, and can assign them different locations, and pitch and yaw adjustments, and nitial velocity.

2) sound?

3) a more accurate calculation of the submodels location at any pitch/roll/yaw.

4) a way to pre-load the model, so the AI code doesn't have to parse the model every time it creates an instance.

I think that's all of it.

19 years agoDavid Culp:
ehofman [Sat, 21 Aug 2004 12:24:54 +0000 (12:24 +0000)]
David Culp:

The AIBase code was updated to fix an uninitialized pointer, and the
AIBallistic code has an improved FDM.

19 years agoAdd the real-weather-fetch options.
ehofman [Sat, 21 Aug 2004 12:00:12 +0000 (12:00 +0000)]
Add the real-weather-fetch options.

19 years agoDisable weather fetching if there are 3 errors within a 3 second period. This also...
ehofman [Sat, 21 Aug 2004 11:43:48 +0000 (11:43 +0000)]
Disable weather fetching if there are 3 errors within a 3 second period. This also solves the problem where FlightGear 'hangs' when real-weather fetching is enabled, but no network connection is present.

19 years agoIRIX users want pretty colors too.
ehofman [Thu, 19 Aug 2004 12:22:52 +0000 (12:22 +0000)]
IRIX users want pretty colors too.

19 years agoMelchior FRANZ:
ehofman [Thu, 19 Aug 2004 11:54:57 +0000 (11:54 +0000)]
Melchior FRANZ:

All necessary elements for an ADF gauge had been migrated from
Cockpit/kr_87.cxx to Instrumentation/adf.cxx. Migrating the sound
related elements was apparently planned, but not done yet. This
intermediate state broke the ident morse sound: it couldn't get
turned off and it always indicated "SF", regardless of the tuned-in
frequency. The following patches continue the migration:

adf-radio.diff     => Base/Aircraft/Instruments/adf-radio.xml:
---------------------------------------------------------------
* sets maximum volume to 1 (rather than 2); Not only is 1
  loud enough (and 2 unpleasantly noisy), it also prevents
  the knob from being turned to non-existant positions.  :-)
* fixes wrong use of /instrumentation/adf/ident
* the voice/ident selector(?) remains unchanged, but as it's
  not switched to "IDENT", there'll be no ident sound by default
  this is consistent with other sounds and DME.

radiostack.diff    => src/Cockpit/radiostack.[ch]xx:
---------------------------------------------------------------
* comment out use of FGKR_87 class. kr_87.[ch]xx is now no
  longer used. kr-87adf.xml would no longer work, either, but
  isn't used anywhere, anyway. Future adf radios have to use
  the adf instrument, using xml/Nasal for specific hardware
  implementation details.

adf.diff           => src/Instrumentation/adf.[ch]xx:
---------------------------------------------------------------
* adds ident morse sound capability using two new input
  properties:
  - /instrumentation/adf/volume-norm  (double)
  - /instrumentation/adf/ident-audible  (bool)

19 years agoThe next version of the two hourly metar update from Melchior: add proxy handling.
ehofman [Tue, 17 Aug 2004 12:26:37 +0000 (12:26 +0000)]
The next version of the two hourly metar update from Melchior: add proxy handling.

19 years agoSome code cleanups, and add a number of command line options.
ehofman [Tue, 17 Aug 2004 08:45:45 +0000 (08:45 +0000)]
Some code cleanups, and add a number of command line options.

19 years agoShow the mouse cursor again, just before exiting. This could prevent an X windows...
ehofman [Sun, 15 Aug 2004 16:53:11 +0000 (16:53 +0000)]
Show the mouse cursor again, just before exiting. This could prevent an X windows crash for certain harware setups.

19 years agoMelchior FRANZ:
ehofman [Sun, 15 Aug 2004 14:37:42 +0000 (14:37 +0000)]
Melchior FRANZ:

this was always only meant to be a test program for the metar lib, but now
that people are referring to it as a means to get metar reports, I think a
usage info is desirable. The list of test ids, on the other hand, isn't
necessary any more. This can still be handled by a Makefile or the commandline.
I'm all for keeping this tool in cvs, however. And also the not-used stuff
therein is a welcome source for how to use the SGMetar class.

19 years agoiFrederic Bouvier: Postpone rendering the scene until the scenery is loaded. This...
ehofman [Sun, 15 Aug 2004 11:25:15 +0000 (11:25 +0000)]
iFrederic Bouvier: Postpone rendering the scene until the scenery is loaded. This means that the splash screen remains a bit longer, but the scenery loading time is cut in half.

19 years agoReplave libmk4.so.0 by libopenal.so.0
ehofman [Sun, 8 Aug 2004 11:32:28 +0000 (11:32 +0000)]
Replave libmk4.so.0 by libopenal.so.0

19 years agoUpdates.
ehofman [Sat, 7 Aug 2004 12:26:22 +0000 (12:26 +0000)]
Updates.

19 years agoAdd condition lever (for turbo props) to FGNetCtrls class.
curt [Fri, 6 Aug 2004 18:09:23 +0000 (18:09 +0000)]
Add condition lever (for turbo props) to FGNetCtrls class.

19 years agoReffer to /usr/locla/share/FlightGear now.
ehofman [Fri, 6 Aug 2004 08:55:41 +0000 (08:55 +0000)]
Reffer to /usr/locla/share/FlightGear now.

19 years agoTweaks for 0.9.5 release.
curt [Thu, 29 Jul 2004 21:54:15 +0000 (21:54 +0000)]
Tweaks for 0.9.5 release.

19 years agoTweaks for 0.9.5-pre3 release.
curt [Tue, 27 Jul 2004 21:40:37 +0000 (21:40 +0000)]
Tweaks for 0.9.5-pre3 release.

19 years agoDefault bump mapped clouds to off for the official release. They can still
curt [Tue, 27 Jul 2004 20:40:33 +0000 (20:40 +0000)]
Default bump mapped clouds to off for the official release.  They can still
be turned back on via the rendering options dialog box.

19 years agoAdd support for a turbo prop condition lever.
curt [Tue, 27 Jul 2004 20:39:56 +0000 (20:39 +0000)]
Add support for a turbo prop condition lever.
Add support in the aircraft config file for a low idle and high idle n2.

19 years agoChange condition lever position from an "int" to a "double".
curt [Tue, 27 Jul 2004 20:39:01 +0000 (20:39 +0000)]
Change condition lever position from an "int" to a "double".

19 years agoAdd a few else statements to make the checking work correct. Thanks Tiago Gusmao...
ehofman [Tue, 27 Jul 2004 16:35:34 +0000 (16:35 +0000)]
Add a few else statements to make the checking work correct. Thanks Tiago Gusmao for detecting this.

19 years agoGet rid of the double comma's for the file section of the generic protocol also.
ehofman [Sun, 25 Jul 2004 18:47:18 +0000 (18:47 +0000)]
Get rid of the double comma's for the file section of the generic protocol also.

19 years agoFix a problem where the protocol file could not be found when using the generic proto...
ehofman [Sun, 25 Jul 2004 16:38:33 +0000 (16:38 +0000)]
Fix a problem where the protocol file could not be found when using the generic protocol over TCP/IP.

19 years agoReduce the log-level of the airport not found
ehofman [Fri, 23 Jul 2004 18:58:42 +0000 (18:58 +0000)]
Reduce the log-level of the airport not found
message.

19 years agoJim Wilson:
ehofman [Fri, 23 Jul 2004 07:36:32 +0000 (07:36 +0000)]
Jim Wilson:

This is a workaround for an issue where the xml dialogs were shrinking on
subsequent pops.

Andy Ross says:

That looks like it should be fine for a release-time workaround.  The
2 pixel border on dialogs is at best a minor feature, and probably
invisible since the sub-frames all have their own padding.

Clearly the right fix would be to find out where the code is getting
confused by the previous layout.  In principle, the layout should be
idempotent: if you don't change the layout constraints, it shouldn't
change its layout.  There's still a bug in there somewhere.

19 years agoHow on earth???? Replace "and" by && and "or" by || to match C++ more closely......
ehofman [Fri, 23 Jul 2004 07:33:24 +0000 (07:33 +0000)]
How on earth???? Replace "and" by && and "or" by || to match C++ more closely........

19 years agoDurk Talsma:
ehofman [Thu, 22 Jul 2004 18:50:29 +0000 (18:50 +0000)]
Durk Talsma:

I've included the latest fixes to the Traffic Manager/AI flightplan generation
code. Most of the code changes are in AIFllightplan.cxx. This is the code
that runs without depending on predefined FlightPlans in
#FG_ROOT/Data/AI/Flightplans.i

As suggested by Dave, I've also added a new property in
preferences.xml: /sim/traffic-manager/enabled, which is used to control
whether or not the traffic manager is active.

I'm still working on a few more 737 traffic patterns, those are going to take
a little longer, so I didn't want to wait sending in this code.

Finally, I haven't put much effort into ensuring "aeronautical correctness" in
this version yet. The code works on my system, but what the AI plane do may
actaully be quite rediculous. But I'd like to leave that for the next
version.

19 years agoJim Wilson: This patch prevents FDM execution until intial scenery load completes...
ehofman [Thu, 22 Jul 2004 16:42:14 +0000 (16:42 +0000)]
Jim Wilson: This patch prevents FDM execution until intial scenery load completes making
midair starts in the KSFO area possible again.

19 years agoUpdates for v0.9.5-pre2.
curt [Wed, 21 Jul 2004 21:49:54 +0000 (21:49 +0000)]
Updates for v0.9.5-pre2.

19 years agoFix a numeric_limits problem for older stdc++ libraries.
ehofman [Wed, 21 Jul 2004 06:56:59 +0000 (06:56 +0000)]
Fix a numeric_limits problem for older stdc++ libraries.

19 years agoCurt:
curt [Tue, 20 Jul 2004 22:17:58 +0000 (22:17 +0000)]
Curt:

Stub in hooks for Propeller feathering controls and the turbo prop "condition"
lever.

I added a line in FGFDM.cpp to force control properties to exist if they
don't already.  This way you can specify anything you want and find them
in the property browser, otherwise no one else may create them and you are
stuck.

In PropEngine::solve() the code original sets _running = true at the
beginning and then sets running = false at the end.  I changed this to
save the current value at the start, set to true, solve(), and then
restore the original value at the end.  That way if we start off with
_running = true, we don't have to hack up the calc() routine which wasn't
using the value anyway.

Finally I added some very initial support to shut down a turbine engine
(_running = false) when the condition lever goes to zero.

19 years agoMake distance penalty math for opposite oriented navaids more correct.
curt [Tue, 20 Jul 2004 00:59:17 +0000 (00:59 +0000)]
Make distance penalty math for opposite oriented navaids more correct.

19 years agoEd Sirett submitted a patch to consider antenna orientation when searching
curt [Mon, 19 Jul 2004 18:02:00 +0000 (18:02 +0000)]
Ed Sirett submitted a patch to consider antenna orientation when searching
for localizers.  I further hacked this to support GS and DME transmitters
(although Robin's DME transmitter data doesn't convey orientation
unfortunately.)

19 years agoTest for alutInit in libopenal.so and in libalut.so for Cygwin builds.
ehofman [Mon, 19 Jul 2004 14:59:24 +0000 (14:59 +0000)]
Test for alutInit in libopenal.so and in libalut.so for Cygwin builds.

19 years agoalut is now part of libopenal.so
ehofman [Sat, 17 Jul 2004 14:01:36 +0000 (14:01 +0000)]
alut is now part of libopenal.so

19 years agoAdd the multiplay.* and jpg-httpd.* files to the EXTRA_DIST line so they get included...
ehofman [Sat, 17 Jul 2004 08:32:48 +0000 (08:32 +0000)]
Add the multiplay.* and jpg-httpd.* files to the EXTRA_DIST line so they get included in the official tarball.

19 years agoAdd the _os.* files to the EXTRA_DIST list, otherwise they won't end up in the offici...
ehofman [Sat, 17 Jul 2004 08:26:04 +0000 (08:26 +0000)]
Add the _os.* files to the EXTRA_DIST list, otherwise they won't end up in the official tarball.

19 years agoFix an indexing problem.
ehofman [Fri, 16 Jul 2004 20:02:36 +0000 (20:02 +0000)]
Fix an indexing problem.

19 years agoVarious tweaks for v0.9.5-pre1.
curt [Thu, 15 Jul 2004 18:07:02 +0000 (18:07 +0000)]
Various tweaks for v0.9.5-pre1.

19 years agoAdd a section about subsystems.
ehofman [Thu, 15 Jul 2004 17:09:29 +0000 (17:09 +0000)]
Add a section about subsystems.

19 years agoAdd some introduction documentation.
ehofman [Mon, 12 Jul 2004 12:11:07 +0000 (12:11 +0000)]
Add some introduction documentation.

20 years agoFrederic Bouvier:
ehofman [Sat, 3 Jul 2004 10:59:34 +0000 (10:59 +0000)]
Frederic Bouvier:

I have 3 issues that are fixed by this set of patches.

1. In extensions.cxx
  #else if !defined( WIN32 )  must be changed by
  #elif !defined( WIN32 ) because the text after #else
  seems to be ignored

2. banner is not available on windows, only cygwin

3. ANSI escape sequences are not interpreted on the
   windows console. We just have garbage that is hard
   to read.

20 years agoSync. with JSBSim CVS again. This fixes some small issues.
ehofman [Sun, 27 Jun 2004 19:35:54 +0000 (19:35 +0000)]
Sync. with JSBSim CVS again. This fixes some small issues.

20 years agoOn a reinit() subsystem event, reconfigure the joystick and other
david [Thu, 24 Jun 2004 02:08:38 +0000 (02:08 +0000)]
On a reinit() subsystem event, reconfigure the joystick and other
inputs.  This makes it possible to hot-plug a new joystick while
FlightGear is running (as long as the user explicitly reinits the
input subsystem).

20 years agoWhen searching for nav records ignore stations > 300nm away.
curt [Sun, 20 Jun 2004 18:58:44 +0000 (18:58 +0000)]
When searching for nav records ignore stations > 300nm away.

20 years agoIgnore generated files.
david [Tue, 15 Jun 2004 12:48:22 +0000 (12:48 +0000)]
Ignore generated files.

20 years agoAlternator should still put out some output when RPM < 800. (Yes I know this
curt [Mon, 14 Jun 2004 21:36:10 +0000 (21:36 +0000)]
Alternator should still put out some output when RPM < 800.  (Yes I know this
is hard coded for the C172, but so far no one has asked to do this more
generically.)

20 years agoPending white space tweaks I forgot to commit the other day.
curt [Mon, 14 Jun 2004 18:47:21 +0000 (18:47 +0000)]
Pending white space tweaks I forgot to commit the other day.

20 years ago- Track a saved mouse pointer location from the previous frame so we can detect
curt [Mon, 14 Jun 2004 18:46:58 +0000 (18:46 +0000)]
- Track a saved mouse pointer location from the previous frame so we can detect
  motion.

- Track a timeout value so we can optionally hide the mouse pointer after
  some user specified timeout period.

- in doMouseMotion() always update m.x and m.y even if we return early because
  pui wanted the event.  Without this, we can't reliably detect motion vs.
  inactivity.

- in _update_mouse() add a dt parameter so we can decriment the timeout value
  in "real" time.

- in _update_mouse() optionally hide the mouse pointer if m.timeout goes to
  zero.  Restore the pointer (and the timeout counter) if the mouse is moved.

20 years agoChange the fps toggle property name a bit and add a toggle switch in the
curt [Mon, 14 Jun 2004 16:38:44 +0000 (16:38 +0000)]
Change the fps toggle property name a bit and add a toggle switch in the
gui/dialog/rendering box.

20 years agoMake the onscreen fps display toggleable via a boolean property.
curt [Mon, 14 Jun 2004 16:25:32 +0000 (16:25 +0000)]
Make the onscreen fps display toggleable via a boolean property.

20 years agoSync w. JSBSim CVS
ehofman [Mon, 14 Jun 2004 11:40:45 +0000 (11:40 +0000)]
Sync w. JSBSim CVS

20 years agoMelchior FRANZ:
ehofman [Sun, 13 Jun 2004 18:47:55 +0000 (18:47 +0000)]
Melchior FRANZ:

Remove an unused test, counter_hack is initialized to 0 and the test never reaches the increment section but instead will always call loader.update();

20 years agoWork around a potential never ending loop problem. A proper fix will be in the next...
ehofman [Sun, 13 Jun 2004 18:44:21 +0000 (18:44 +0000)]
Work around a potential never ending loop problem. A proper fix will be in the next JSBSim update.

20 years agoPut the sqrt() back in. That was part of another attempt to optimize the code, but...
ehofman [Sat, 12 Jun 2004 11:37:47 +0000 (11:37 +0000)]
Put the sqrt() back in. That was part of another attempt to optimize the code, but it hadn't fully matured yet.

20 years agoNo need to do he calculations twice. FGAIBAse::update() handles them already.
ehofman [Sat, 12 Jun 2004 11:34:05 +0000 (11:34 +0000)]
No need to do he calculations twice. FGAIBAse::update() handles them already.

20 years agoMove the radar update code to the AIBase class. There seems to be a problem where...
ehofman [Fri, 11 Jun 2004 13:49:07 +0000 (13:49 +0000)]
Move the radar update code to the AIBase class. There seems to be a problem where all targets disappear whenever one of them disappears, but that was present in the previous update also.

20 years agoRemove an unnecessary property set.
ehofman [Fri, 11 Jun 2004 08:09:55 +0000 (08:09 +0000)]
Remove an unnecessary property set.

20 years agoOops, fix a bug (introduced recently) that could cause the glide slope
curt [Thu, 10 Jun 2004 19:51:27 +0000 (19:51 +0000)]
Oops, fix a bug (introduced recently) that could cause the glide slope
indicator to read incorrectly for many approaches.

20 years agoIntroduce a radar/in-range boolean property, end check this to see whether the CPU...
ehofman [Thu, 10 Jun 2004 19:14:19 +0000 (19:14 +0000)]
Introduce a radar/in-range boolean property, end check this to see whether the CPU intensive radar calculations need to be done. If not, skip them.

20 years agoDME units report a distance based on the assumption that the ground station
curt [Wed, 9 Jun 2004 20:21:18 +0000 (20:21 +0000)]
DME units report a distance based on the assumption that the ground station
will delay it's reply by 50ms.  The ground station can change it's reply delay
to trick the airborn dme unit into reporting a distance that is offset from
the true distance by some constant value.  In FG we model this by subtracting
a fixed distance from the actual distance.

It is thus possible in our implimentation for the displayed distance to become
negative.  This patch clamp DME distance to a minimum value of 0.00 so it can
never go negative.

20 years agoOften, the elevation of an ILS component is not listed in our nav database.
curt [Wed, 9 Jun 2004 03:13:13 +0000 (03:13 +0000)]
Often, the elevation of an ILS component is not listed in our nav database.
A good elevation is critical for proper glide slope modeling.  This patch
assigns the average field elevation to any ILS component that doesn't have
a valid elevation.

Also, for an ILS approach, use the GS transmitter elevation for glide slope
calculations rather than the localizer elevation, in some cases this can
make a big difference.

20 years agoiSwitch position changes.
curt [Wed, 9 Jun 2004 00:49:04 +0000 (00:49 +0000)]
iSwitch position changes.

20 years agoMelchior FRANZ:
ehofman [Tue, 8 Jun 2004 15:32:09 +0000 (15:32 +0000)]
Melchior FRANZ:

Wouldn't it be better to prepare the whole list of paths (or two
separate ones for Terrain/Objects if necessary) in FGGlobals::set_fg_scenery,
and to pass the vector<string>s to FGTileEntry::load? It doesn't seem to make
a lot of sense to split the path up, modify it, mount it together to one string
again, and then let FGTileEntry::load split it up again.

Here we go:

Main/globals.cxx
================
As fg_scenery is now a string_list, we don't need initialization. Furthermore,
this list is cleared with every set_fg_scenery() call.

ctor: create default dir from fg_root if necessary. Otherwise check all paths
of --fg-scenery/FG_SCENERY: If the path doesn't exist, ignore it. If it contains
a dir Terrain and/or Objects, then only add that to the list. If it contains
neither, then use the path as is.

Scenery/tileentry.cxx
=====================
Trivial: don't split a "base path", but use the given path_list as is.
(I considered a variable name "path_list" better suited than "search".)

Scenery/FGTileLoader.cxx
========================
No more fiddling with sub-paths. This has to be delivered by get_fg_scenery
already.

20 years agoRemove some debugging code.
ehofman [Mon, 7 Jun 2004 09:55:55 +0000 (09:55 +0000)]
Remove some debugging code.

20 years agoMake use of the new SGPath::add() function and automatically append 'Terren' and...
ehofman [Mon, 7 Jun 2004 09:52:11 +0000 (09:52 +0000)]
Make use of the new SGPath::add() function and automatically append 'Terren' and 'Objects' the the scenery path when one or both of those subdirectories exsist.

20 years agoWindows uses ';' instead of ':' as a path separator.
ehofman [Sun, 6 Jun 2004 19:34:31 +0000 (19:34 +0000)]
Windows uses ';' instead of ':' as a path separator.

20 years agoSearch in share/FlightGear instead of lib/FlightGear
ehofman [Sun, 6 Jun 2004 19:31:42 +0000 (19:31 +0000)]
Search in share/FlightGear instead of lib/FlightGear

20 years agoMake it possible to split the Scenery into Scenery/Terrain and Scenery/Objects in...
ehofman [Sun, 6 Jun 2004 19:15:04 +0000 (19:15 +0000)]
Make it possible to split the Scenery into Scenery/Terrain and Scenery/Objects in preparation for the next scenery release.

20 years agoIncorporate some of the changes from the Linspire diff.
ehofman [Sun, 6 Jun 2004 14:28:45 +0000 (14:28 +0000)]
Incorporate some of the changes from the Linspire diff.

20 years agoDavid Culp:
ehofman [Sun, 6 Jun 2004 08:50:17 +0000 (08:50 +0000)]
David Culp:

Here's some additions to AI that allow refueling from an AI tanker (the actual
onload of fuel must be handled by the user's FDM of course, this just lets
the FDM know that the user is in position to refuel).

I've added a new class of AIAircraft called "tanker".  It uses the same
performance struct as a jet transport.  An AI tanker is just like an AI jet
transport, except it uses the already-existing radar data to control the
boolean property systems/refuel/contact.  The code change was minimal.

An AI tanker can be created like this:

  <entry>
   <callsign>Esso 1</callsign>
   <type>aircraft</type>
   <class>tanker</class>
   <model>Aircraft/737/Models/boeing733.xml</model>
   <latitude>37.61633</latitude>
   <longitude>-122.38334</longitude>
   <altitude>3000</altitude>
   <heading>020</heading>
   <speed>280</speed>
   <roll>-15</roll>
  </entry>

This puts a tanker over KSFO at 3000 feet, in a left-hand orbit.  When the
user gets within refueling range (contact position) then the property
systems/refuel/contact will be true.  Otherwise it is false.

The dimensions of the refueling envelope are pretty rough right now, but still
usable.  The user must be behind the tanker (ie. radar y_offset > 0).  The
user must be at or below the tanker's altitude (ie. radar elevation > 0).
The user's lat/lon must be within 250 feet of the tanker's lat/lon (ie. radar
range_ft < 250).  This last requirement is loose because the radar data is
only updated every 100 ms, which is accurate enough for radar use, but
which is sloppy for air refueling.  This could be tightened up by increasing
the radar update rate to once every sim cycle.

I'm going to add a light to the T-38 instrument panel that will monitor the
property systems/refuel/contact.  This will make it easier to explore the
boundaries of the refueling envelope.

20 years agoMSVC fixes
ehofman [Sun, 6 Jun 2004 08:35:09 +0000 (08:35 +0000)]
MSVC fixes

20 years agoChange the default rsync module to Scenery-0.9.5
curt [Sat, 5 Jun 2004 18:46:36 +0000 (18:46 +0000)]
Change the default rsync module to Scenery-0.9.5

20 years agoIngnore some generated files."
ehofman [Sat, 5 Jun 2004 08:51:29 +0000 (08:51 +0000)]
Ingnore some generated files."

20 years agoAdd the AIModel based air traffic subsystem from Durk Talsma.
ehofman [Thu, 3 Jun 2004 17:59:14 +0000 (17:59 +0000)]
Add the AIModel based air traffic subsystem from Durk Talsma.

20 years agoUpdates ias requested by Melchior.
ehofman [Tue, 1 Jun 2004 13:29:04 +0000 (13:29 +0000)]
Updates ias requested by Melchior.

20 years agoSome (small) modifications.
ehofman [Tue, 1 Jun 2004 11:42:05 +0000 (11:42 +0000)]
Some (small) modifications.

20 years agoUpdates.
ehofman [Tue, 1 Jun 2004 08:36:27 +0000 (08:36 +0000)]
Updates.

20 years agoDavid Culp:
ehofman [Sat, 29 May 2004 11:39:10 +0000 (11:39 +0000)]
David Culp:

Here's some new AI stuff.

1)  AI objects must now be defined in a scenario file, not in preferences.xml
or a *-set file.  (Of course this doesn't prevent objects from being created
dynamically, as with Durk's traffic manager).

2)  A new demo_scenario file is attached.  It creates 3 aircraft, a sailboat,
and a thunderstorm.

3)  Objects without flightplans live forever.

4)  FGAIShip::ProcessFlightplan() is not yet implemented.

5)  preferences.xml should now define only <enabled> and <scenario>

20 years agoRemove some left over debugging output.
curt [Fri, 28 May 2004 21:47:11 +0000 (21:47 +0000)]
Remove some left over debugging output.

20 years agoAllow a "threshold" value to determine which localizers to snap to the
curt [Fri, 28 May 2004 20:57:05 +0000 (20:57 +0000)]
Allow a "threshold" value to determine which localizers to snap to the
runway heading or not.

20 years agoFix a gxx 3.3 compiler problem.
ehofman [Fri, 28 May 2004 19:03:55 +0000 (19:03 +0000)]
Fix a gxx 3.3 compiler problem.

20 years agoCurt Olson:
curt [Fri, 28 May 2004 16:24:43 +0000 (16:24 +0000)]
Curt Olson:

These change add some code that at initialization time will snap all
localizers into perfect alignment with their runways.  It's my experience
that the DAFIF/FAA data reports runway and localizer headings to a level
of precision that is great for making charts, or adjusting your OBS, etc.
But the level of precision of this data can be far enough off to make you
visibly *un*aligned with the runway when the CDI needle is centered.

There are probably cases where the localizer isn't really perfectly
aligned with the runway, or intentionally misaligned to avoid obstacles
or terrain.  So I have made this configurable for those that trust the
data more than I do.  Just set "/sim/navdb/auto-align-localizers" to
true/false in the preferences file to turn this feature on or off in the
code.

20 years agoUse SGRawValueMethods rather than SGRawValueFunctions because that allows one to...
ehofman [Fri, 28 May 2004 08:46:33 +0000 (08:46 +0000)]
Use SGRawValueMethods rather than SGRawValueFunctions because that allows one to pass the 'this' pointer. Remove some debug code.

20 years agoAnd again ...
curt [Fri, 28 May 2004 05:33:10 +0000 (05:33 +0000)]
And again ...

20 years agoOne more ...
curt [Fri, 28 May 2004 05:31:11 +0000 (05:31 +0000)]
One more ...

20 years agoOops, and another similar one.
curt [Fri, 28 May 2004 05:29:04 +0000 (05:29 +0000)]
Oops, and another similar one.

20 years agoFix a compile error I missed in the first round.
curt [Fri, 28 May 2004 05:27:40 +0000 (05:27 +0000)]
Fix a compile error I missed in the first round.

20 years agoThis set of changes impliments the following:
curt [Fri, 28 May 2004 05:24:54 +0000 (05:24 +0000)]
This set of changes impliments the following:

- FG now directly supports Robin's native nav database file format.
- His latest data now separates out dme, gs, loc, and marker beacon
  transmitters rather than lumping them all into a single "ILS" record.
- These new data structure changes prompted me to do some code restructuring
  so that internally these different types of navaids are all kept as
  separate lists and searched and handled separately.
- This structural change had a cascading affect on any code that
  references or uses the nav databases.  I've gone and "touched" a lot of
  nav related code in a lot of places.
- As an added bonus, the new data (and code) adds DME bias so these will
  all now read as they do in real life.

- Added Navaids/navdb.cxx and Navaids/navdb.hxx which provide a front
  end loaders for the nav data.
- Added Navaids/navrecord.hxx which is a new "generic" nav data record.
- Removed Navaids/ils.hxx, Navaids/ilslist.cxx, Navaids/ilslist.hxx,
  Navaids/mkrbeacons.cxx, and Navaids/mkrbeacons.hxx which are all now
  depricated.

20 years agoAdd the this pointer to the tied function calls. This makes it possible to make a...
ehofman [Thu, 27 May 2004 13:16:53 +0000 (13:16 +0000)]
Add the this pointer to the tied function calls. This makes it possible to make a distinction between the different aircraft models.

20 years agoMove navaids and fixes out of "global" name space into the FGGlobals
curt [Wed, 26 May 2004 18:15:19 +0000 (18:15 +0000)]
Move navaids and fixes out of "global" name space into the FGGlobals
structure.

20 years agoAdd simple icing state.
curt [Wed, 26 May 2004 18:13:34 +0000 (18:13 +0000)]
Add simple icing state.

20 years agoUpdate fix management code to read Robin's native fix.dat format.
curt [Wed, 26 May 2004 16:40:27 +0000 (16:40 +0000)]
Update fix management code to read Robin's native fix.dat format.