]> git.mxchange.org Git - flightgear.git/log
flightgear.git
19 years agoMake a subtle change to tile loading/unloading policy in order to make the tile
curt [Wed, 15 Sep 2004 15:52:05 +0000 (15:52 +0000)]
Make a subtle change to tile loading/unloading policy in order to make the tile
paging system much more robust when position change is very rapid and sporadic.

Recall that we must load 3d models in the main render thread because model
loading can trigger opengl calls (i.e. with texture loading) and all opengl
calls *must* happen in the main render thread.

To accomplish this we load the base tile in the pager thread and build a work
queue of external models that need to be loaded.  We never allow a tile to be
paged out of the tile cache until all it's pending model loads are complete.

However, when changing position very rapidly, we can quickly create a huge
backlog of pending model loads because we are changing positions faster than we
can load the associated models for the existing tiles.  The end result is
that tiles that are long out of range can't be removed because there is still
a huge backlog of pending model load requests and memory blows up.

This change being committed allows the tile paging system to remove tiles
if they are out of range, even when there are pending models to load.  The
model loading code in the render thread can now check to see if the tile
exists and discard any model load request for tiles that no longer exist.

This situation should never occur in normal operation, but could occur in
"contrived" situations where an external script was rapidly changing
the simulator position to then be able to query FG terrain height, and doing
this for a large number of points that are distributed across a large area.

19 years agobzip2 the base package by default.
curt [Wed, 15 Sep 2004 15:41:33 +0000 (15:41 +0000)]
bzip2 the base package by default.

19 years agoSync w. JSBSim CVS
ehofman [Wed, 15 Sep 2004 12:19:46 +0000 (12:19 +0000)]
Sync w. JSBSim CVS

19 years agoVivan Meazza:
ehofman [Tue, 14 Sep 2004 08:27:55 +0000 (08:27 +0000)]
Vivan Meazza:

The maths, so far, is now correct. Roll and pitch are now both in the
correct sense. The aircraft velocity is added correctly to the
submodel velocity, and the submodel is now visible when instantiated.

However, the velocity is measured at the aircraft centre. To be totally
correct we ought to take into account the aircraft's rotational
velocity. We have pitch rate and roll rate available, but not yaw rate
(small anyway).

19 years agoA couple tweaks/optimizations to the script.
curt [Mon, 13 Sep 2004 21:47:32 +0000 (21:47 +0000)]
A couple tweaks/optimizations to the script.

19 years agoMake notion of -1 for count
ehofman [Sun, 12 Sep 2004 17:06:35 +0000 (17:06 +0000)]
Make notion of -1 for count

19 years agoSync. w. JSBSim CVS.
ehofman [Sat, 11 Sep 2004 12:41:05 +0000 (12:41 +0000)]
Sync. w. JSBSim CVS.

19 years agoBump the version number to the current one.
ehofman [Sat, 11 Sep 2004 11:00:02 +0000 (11:00 +0000)]
Bump the version number to the current one.

19 years agoFirst stab at a simple script that inputs a list of lon/lat coordinates via
curt [Fri, 10 Sep 2004 21:21:34 +0000 (21:21 +0000)]
First stab at a simple script that inputs a list of lon/lat coordinates via
stdin, and outputs the coordinates with FG ground elevation.  This requires
a running copy of FlightGear with --fdm=null and the telnet server enabled.
Of course you need to have scenery installed for all areas you are querying.
This is not fast and the scenery load wait time may need to be tuned for
individual systems.

19 years agoUpdates for 0.9.6-pre1.
curt [Fri, 10 Sep 2004 19:34:56 +0000 (19:34 +0000)]
Updates for 0.9.6-pre1.

19 years agoPreparations for the 0.9.6-pre1 release.
curt [Fri, 10 Sep 2004 18:34:00 +0000 (18:34 +0000)]
Preparations for the 0.9.6-pre1 release.

19 years agoRemove an unneeded #include.
curt [Fri, 10 Sep 2004 18:30:24 +0000 (18:30 +0000)]
Remove an unneeded #include.

19 years agoAdd support for "co-pilot" toe brakes.
curt [Fri, 10 Sep 2004 17:53:34 +0000 (17:53 +0000)]
Add support for "co-pilot" toe brakes.

19 years agoMore fixes to get the code working when threads are disabled.
ehofman [Fri, 10 Sep 2004 07:54:45 +0000 (07:54 +0000)]
More fixes to get the code working when threads are disabled.

19 years agoAdd an example submodels definition file.
ehofman [Thu, 9 Sep 2004 08:46:33 +0000 (08:46 +0000)]
Add an example submodels definition file.

19 years agoDavid Culp:
ehofman [Thu, 9 Sep 2004 08:40:08 +0000 (08:40 +0000)]
David Culp:

Here are some things I've added to the submodel code.

First, I added a first_time value that is true when the trigger is pressed and
false when the trigger is released.  The true value is also made false after
the first pass through release().  Release() then uses this to force the
first dt (per salvo) to be zero.  I was hoping this would make the submodel
appear closer to the airplane, but I don't notice a difference with the
tracers.  In a prior test I found that the first dt is about 2.5 times larger
than subsequent ones.  Maybe this will be effective with slower submodels,
like smoke, contrails, etc.

Secondly, I updated the IC.elevation and IC.azimuth calcs to correctly add in
the yaw and pitch offsets, corrected for bank angle.  Actually this is still
an estimation.  A proper calculation will sum the submodels vector with the
airplane's vector.  Until that's done only models which are fired forward
will have proper IC.

19 years agoFrederic Bouvier:
ehofman [Thu, 9 Sep 2004 08:32:11 +0000 (08:32 +0000)]
Frederic Bouvier:

Olivier discovered that environment_ctrl.cxx doesn't compile
when ENABLE_THREADS is not defined. The simple patch to correct
that is attached.

19 years agoMove depreciated files to the bitbucket.
ehofman [Thu, 9 Sep 2004 08:29:51 +0000 (08:29 +0000)]
Move depreciated files to the bitbucket.

19 years agoMake sure the pointer is not being used after deletion, and tie the elapsed time...
ehofman [Wed, 8 Sep 2004 14:02:25 +0000 (14:02 +0000)]
Make sure the pointer is not being used after deletion, and tie the elapsed time to the particular class instance.

19 years agoRearrange ID related code. The (this) pointer is now the unique ID of the AIModel...
ehofman [Wed, 8 Sep 2004 13:21:40 +0000 (13:21 +0000)]
Rearrange ID related code. The (this) pointer is now the unique ID of the AIModel which fixes a number of problems along the way.

19 years agoAdd documentation about directional sound.
ehofman [Wed, 8 Sep 2004 11:47:37 +0000 (11:47 +0000)]
Add documentation about directional sound.

19 years agoInternally keep track of the number of models per type. This really speeds up searchi...
ehofman [Tue, 7 Sep 2004 19:56:22 +0000 (19:56 +0000)]
Internally keep track of the number of models per type. This really speeds up searching for the number of submodels of one type.

19 years agoVivian Meazza:
ehofman [Tue, 7 Sep 2004 19:10:10 +0000 (19:10 +0000)]
Vivian Meazza:

Testing revealed that the code was not reading y-offset - a
typo in the original code, and roll was in the wrong sense. All readily
fixable, and it now works.

19 years agoMake use of a pointer to a structure to pass multiple parameters around.
ehofman [Tue, 7 Sep 2004 09:53:23 +0000 (09:53 +0000)]
Make use of a pointer to a structure to pass multiple parameters around.

19 years agoVivian Meazza:
ehofman [Sun, 5 Sep 2004 09:45:34 +0000 (09:45 +0000)]
Vivian Meazza:

I've added another parameter to the submodel - wind.

It's activated by the entry <wind>true</wind> in the ../submodel.xml file.
If true, the submodel is affected by the local wind, otherwise not. The
parameter defaults to false. This is useful for exhausts and smoke, and
possibly all objects.

19 years agoAdd the missing buoyancy patch.
ehofman [Wed, 1 Sep 2004 21:05:04 +0000 (21:05 +0000)]
Add the missing buoyancy patch.

19 years agoVivian Meazza:
ehofman [Wed, 1 Sep 2004 08:32:54 +0000 (08:32 +0000)]
Vivian Meazza:

Attached are the modified files to add buoyancy as a parameter for a
ballistic object. It may be set by adding

<buoyancy>x</buoyancy> to the submodel .xml file, where x is the appropriate
value (ft per sec2):

32   neutral buoyancy - contrails
>32  positive buoyancy - exhaust plumes
(0   non-op - default value)

If <buoyancy>x</buoyancy> is not used, then there is no effect on the
current ballistic model

19 years agoTie the count into the property tree instead of using snprintf every frame. Add the...
ehofman [Mon, 30 Aug 2004 11:13:29 +0000 (11:13 +0000)]
Tie the count into the property tree instead of using snprintf every frame. Add the life-timer to the property tree under sim/time/elapsed-sec for AI object animation (blending and/or scaling).

19 years agoDavid Culp: This is n idea from Vivian, it allows setting the count to a negative...
ehofman [Mon, 30 Aug 2004 09:15:04 +0000 (09:15 +0000)]
David Culp: This is n idea from Vivian, it allows setting the count to a negative number which will give unlimited submodels (as long as the trigger is true). This is useful for contrails.

19 years agoDavid Culp: Here are small changes that allow one to set a life-span for submodels.
ehofman [Mon, 30 Aug 2004 09:11:59 +0000 (09:11 +0000)]
David Culp: Here are small changes that allow one to set a life-span for submodels.

19 years agoDavid Culp:
ehofman [Thu, 26 Aug 2004 16:25:54 +0000 (16:25 +0000)]
David Culp:

Silly me.  I was starting the timer at zero, so the first tracer didn't fly
until 0.25 seconds after pulling the trigger.  Now the timer starts at the
same value as "delay", so the first round comes out immediately.

Also, I've added an optional configuration attribute that allows you to change
the ballistics of the submodel.  This allows parachutes, or anything else
that has ballistics different from a bullet.  The attribute is called "eda",
which is the equivalent drag area.  Default value is 0.007, which gives the
same ballistics as the current tracers.  Increasing this value gives more
drag.  A value of 2.0 looks good for a parachute.

math stuff
########################################################################
The deceleration of the ballictic object is now given by:

[ (rho) (Cd) ] / [ (1/2) (m) ] * A * (V * V)

where rho is sea-level air density, and Cd and m are fixed, bullet-like
values. So the calculation is:

0.0116918 * A * (V * V)

The value "A" is what I'm calling the "eda" (equivalent drag area).
########################################################################

A parachute model will have to be built so that the parachutist's feet
are in the forward x-direction.
Here is the submodel.xml config I use for "parachutes":

  <submodel>
    <name>flares</name>
    <model>Models/Geometry/flare.ac</model>
    <trigger>systems/submodels/submodel[0]/trigger</trigger>
    <speed>0.0</speed>
    <repeat>true</repeat>
    <delay>0.85</delay>
    <count>4</count>
    <x-offset>0.0</x-offset>
    <y-offset>0.0</y-offset>
    <z-offset>-4.0</z-offset>
    <yaw-offset>0.0</yaw-offset>
    <pitch-offset>0.0</pitch-offset>
    <eda>2.0</eda>
  </submodel>

19 years agoDavid Culp, Vivian Meazza:
ehofman [Thu, 26 Aug 2004 12:27:39 +0000 (12:27 +0000)]
David Culp, Vivian Meazza:

Last night I sent these new files to Vivian to fix a problem he found.  Since
we can have more than one submodel we need more than one "count" property.
The new code creates a property systems/submodels/submodel[n]/count for each
submodel.  Vivian is using this count property for his sound.

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.