]> git.mxchange.org Git - flightgear.git/log
flightgear.git
22 years agoAdded files that only I use locally; it shouldn't hurt anyone else.
david [Fri, 28 Jun 2002 14:15:37 +0000 (14:15 +0000)]
Added files that only I use locally; it shouldn't hurt anyone else.

22 years agoUpdates to the OpenGC interface from John Wojnaroski.
curt [Thu, 27 Jun 2002 22:26:47 +0000 (22:26 +0000)]
Updates to the OpenGC interface from John Wojnaroski.

22 years agoInitialize a value so we don't see non-deterministic behavior.
curt [Thu, 27 Jun 2002 20:48:39 +0000 (20:48 +0000)]
Initialize a value so we don't see non-deterministic behavior.

22 years agoWrong units when interpreting <weight> tags.
andy [Mon, 24 Jun 2002 04:18:53 +0000 (04:18 +0000)]
Wrong units when interpreting <weight> tags.

22 years agoHack in an /accelerations/pilot-g property, for testing a new panel
andy [Thu, 20 Jun 2002 04:11:19 +0000 (04:11 +0000)]
Hack in an /accelerations/pilot-g property, for testing a new panel
instrument.  This needs to move somewhere permanent.

Also, remove a bogus fuel consumption setting that (1) was off by a factor
of 3600 (hours, not seconds) and (2) collided with identical code in FGFDM.

22 years agoAllow an empty virtual model, to which other submodels can be attached
david [Wed, 19 Jun 2002 03:25:40 +0000 (03:25 +0000)]
Allow an empty virtual model, to which other submodels can be attached
(when no path is specified).

22 years agoAvoid a segfault when a named object is not found for an animation.
david [Wed, 19 Jun 2002 02:58:06 +0000 (02:58 +0000)]
Avoid a segfault when a named object is not found for an animation.

Ensure that global animations are applied to the model.

22 years agoAdded fgAddChangeListener convenience functions.
david [Tue, 18 Jun 2002 03:27:21 +0000 (03:27 +0000)]
Added fgAddChangeListener convenience functions.

22 years agoUpdated to match changes in radiostack.[ch]xx
curt [Sun, 16 Jun 2002 15:23:22 +0000 (15:23 +0000)]
Updated to match changes in radiostack.[ch]xx

22 years agoA little prepratory code reorganization before modeling the King KR 87
curt [Sun, 16 Jun 2002 00:05:07 +0000 (00:05 +0000)]
A little prepratory code reorganization before modeling the King KR 87
Silver Crown Digital ADF.

22 years agoFinally fixed the flap drag issue. Drag modifications need to be based on
andy [Sat, 15 Jun 2002 05:40:02 +0000 (05:40 +0000)]
Finally fixed the flap drag issue.  Drag modifications need to be based on
the amount of drag that the produced lift *would* have produced given an
unflapped air surface.  A nifty trick involving the assumption that AoA is
small works for this, and produces plausible results in the high AoA case
as well.

Also, trim for approach using the elevator-trim control, not elevator.
Just cosmetic for current planes, but future ones might have differing
implementations of trim.

22 years agoErik Hofman:
curt [Fri, 14 Jun 2002 15:29:20 +0000 (15:29 +0000)]
Erik Hofman:
Specify default values for properties so we get expected behavior when
an option isn't specified in the sound config file.

22 years agoAndy Ross:
curt [Thu, 13 Jun 2002 19:22:32 +0000 (19:22 +0000)]
Andy Ross:
Fixes for uninitialized variables.

22 years agoErik Hofman:
curt [Wed, 12 Jun 2002 16:38:46 +0000 (16:38 +0000)]
Erik Hofman:
This is the small code fix which is needed for the new options.xml file.
It is needed because otherwise the "--prop:name=value" is showed
incorrectly.

There is another problem though, when compiling with --without-logging
the help message isn't displayed at all! We *must* change that somehow.

Curt: good point, the SG_LOG()'s have been switched to cout's ...

22 years agoBugfix. The engine thrust is recalculated based on the current N1 value
andy [Wed, 12 Jun 2002 08:23:05 +0000 (08:23 +0000)]
Bugfix.  The engine thrust is recalculated based on the current N1 value
(and not the throttle setting), but the recalculation left in a degeneracy
when the target/throttle setting was exactly zero.  Zero times a big number
is still zero.  Fixed to use real math, not theoretical math.

22 years agoUpdates to the 610x interface:
curt [Wed, 12 Jun 2002 06:16:23 +0000 (06:16 +0000)]
Updates to the 610x interface:
- More progress with proper radio freq tuning and proper interpreting of the
  hardware values.
- Filter ignition and flap switch values since the hardware implimentation has
  a dead zone where the value can go to zero in the middle of a change in
  switch position.

22 years agoErik Hofman:
curt [Tue, 11 Jun 2002 17:06:46 +0000 (17:06 +0000)]
Erik Hofman:
I've updated the FIXME in the code, and fixed a typo (descr instead of
description), but the SG_LOG() functions doesn't produce any output for
me. Could you confirm it's still working for you?

Curt Olson:
I did a bit of further tweaking and it all looks good now.  The tricky thing
is that SG_LOG() always appends an endl at the end of every message.

22 years agoErik Hofman:
curt [Tue, 11 Jun 2002 16:32:12 +0000 (16:32 +0000)]
Erik Hofman:
This patch solves an unknown reference to a function which showed up
when using no-inlining.

22 years agoErik Hofman:
curt [Mon, 10 Jun 2002 23:30:23 +0000 (23:30 +0000)]
Erik Hofman:
This is an enhanced version of the options patch.
It's more robust now, and gives some helpful information if something
goes wrong. Also the naming in the options.xml file has changed to the
syntax David suggested.

Since no one objected to the patch I think it is safe to included it.

22 years agoReally simple command line airplane compiler. Basically a test program;
andy [Mon, 10 Jun 2002 20:15:35 +0000 (20:15 +0000)]
Really simple command line airplane compiler.  Basically a test program;
not integrated into the Makefile.am stuff.

22 years agoSeparate the model geodetic position and orientation into a separate
david [Mon, 10 Jun 2002 13:20:26 +0000 (13:20 +0000)]
Separate the model geodetic position and orientation into a separate
class, FGModelPlacement, while FG3DModel retains control of animation.
This way, we can have a single, top-level placement, but multiple
layers of nested models underneath.  To include a nested model, use
something like this in the XML wrapper:

  <model>
   <path>Models/Stuff/my-component.xml</path>
   <offsets>
    <roll-offset-deg>45</roll-offset-deg>
   </offsets>
  </model>

22 years agoUse the density values from the environment subsystem, to properly handle
andy [Mon, 10 Jun 2002 08:47:29 +0000 (08:47 +0000)]
Use the density values from the environment subsystem, to properly handle
density variations due to humidity.

22 years agoModified --wind=DIR@SPEED option to allow both DIR and SPEED to
david [Sun, 9 Jun 2002 21:28:17 +0000 (21:28 +0000)]
Modified --wind=DIR@SPEED option to allow both DIR and SPEED to
contain colon-separated ranges.  For examples, winds from 180 degrees
10 knots gusting 15 knots would be

  --wind=180@10:15

Winds variable from 180-220 degrees 5 knots would be

  --wind=180:220@5

FGEnvironment does not yet support variable-direction winds, so
nothing will yet happen in the second case.

22 years agoSeparated some functionality out into reusable classes, and built a
david [Sun, 9 Jun 2002 15:39:44 +0000 (15:39 +0000)]
Separated some functionality out into reusable classes, and built a
simplistic, text-field oriented interface for major property groups.

The JAR is now executable, so the program can be launched with

  java -jar fgfsclient.jar <host> <port>

22 years agoIgnore class directory.
david [Sat, 8 Jun 2002 15:55:48 +0000 (15:55 +0000)]
Ignore class directory.

22 years agoInitial draft of a Java client library for FlightGear.
david [Sat, 8 Jun 2002 15:54:56 +0000 (15:54 +0000)]
Initial draft of a Java client library for FlightGear.

22 years agoIgnore generated Makefiles.
david [Sat, 8 Jun 2002 15:01:46 +0000 (15:01 +0000)]
Ignore generated Makefiles.

22 years agoOops. Previous versions caused compile errors
tony [Sat, 8 Jun 2002 03:20:37 +0000 (03:20 +0000)]
Oops.  Previous versions caused compile errors

22 years agoThe external atmosphere fix. Really this time.
tony [Sat, 8 Jun 2002 03:15:05 +0000 (03:15 +0000)]
The external atmosphere fix.  Really this time.

22 years agoJSBSim updates, including external atmosphere fix
tony [Sat, 8 Jun 2002 03:14:03 +0000 (03:14 +0000)]
JSBSim updates, including external atmosphere fix

22 years agoPatch from Norman to do the code/base version comparison check a little
curt [Fri, 7 Jun 2002 23:26:07 +0000 (23:26 +0000)]
Patch from Norman to do the code/base version comparison check a little
more sensibly (and print the correct error message.)

22 years agoJames Turner:
curt [Fri, 7 Jun 2002 21:03:27 +0000 (21:03 +0000)]
James Turner:
Modifications to support querying navaid database by station ID (not just
frequency.)  Some corresponding changes to testnavs.cxx to test new
functionality.

22 years agoPatch from Jim Wilson:
david [Fri, 7 Jun 2002 20:16:54 +0000 (20:16 +0000)]
Patch from Jim Wilson:

This is a small patch that makes the autopilot work much better with big heavy
airliners as well as the small Cessnas.  Of course this doesn't address the
way autopilots should be modeled.

But by making a couple changes the "George" is now capable of landing either a
C172 or a 747 very close to the center line of the runway with a moderate
cross breeze (15-20kt).

The changes:
- Added turn configurability so that things like Max Aileron and Roll can be
configured per aircraft.
- Enhanced localizer routine (NAV mode) to begin lining up the aircraft as soon
as the cone is entered.  The former model is adopted for the last 5km of the
approach in order to ensure greater precision (makes a very slight difference).

[float cast added by David Megginson to keep G++ 3.0 happy]

22 years agoPatch from Jim Wilson:
david [Fri, 7 Jun 2002 19:52:00 +0000 (19:52 +0000)]
Patch from Jim Wilson:

This is a small patch that makes the autopilot work much better with big heavy
airliners as well as the small Cessnas.  Of course this doesn't address the
way autopilots should be modeled.

But by making a couple changes the "George" is now capable of landing either a
C172 or a 747 very close to the center line of the runway with a moderate
cross breeze (15-20kt).

The changes:
- Added turn configurability so that things like Max Aileron and Roll can be
configured per aircraft.
- Enhanced localizer routine (NAV mode) to begin lining up the aircraft as soon
as the cone is entered.  The former model is adopted for the last 5km of the
approach in order to ensure greater precision (makes a very slight difference).

[float cast added by David Megginson to keep G++ 3.0 happy]

22 years agoPatch from Melchior Franz:
david [Fri, 7 Jun 2002 19:43:40 +0000 (19:43 +0000)]
Patch from Melchior Franz:

FGViewer::updateFromModelLocation does otherwise complain several
times about non-initialized values

22 years agoFix two problems:
david [Fri, 7 Jun 2002 14:23:09 +0000 (14:23 +0000)]
Fix two problems:

1. Typo where /environment/density-inhg instead of
   /environment/density-slugft3 was flagged as archivable.

2. Density should no longer be archivable anyway, since it is
   calculated internally and not directly settable by the user.

22 years agoCorrect temperature value passed to FDM.
david [Fri, 7 Jun 2002 00:15:21 +0000 (00:15 +0000)]
Correct temperature value passed to FDM.

22 years agoAir density is now calculated automatically from air pressure,
david [Thu, 6 Jun 2002 00:21:23 +0000 (00:21 +0000)]
Air density is now calculated automatically from air pressure,
temperature, and dewpoint.  The /environment/density-sea-level-slugft3
property has been removed, and the /environment/density-slugft3
property is read-only.

22 years agoRenamed property /steam/vertical-speed-fpm to /steam/vertical-speed-fps.
david [Wed, 5 Jun 2002 22:39:00 +0000 (22:39 +0000)]
Renamed property /steam/vertical-speed-fpm to /steam/vertical-speed-fps.

22 years agoUse factors instead of offset in atmosphere model. The troposphere is
david [Wed, 5 Jun 2002 22:30:07 +0000 (22:30 +0000)]
Use factors instead of offset in atmosphere model.  The troposphere is
hard-coded for 38,000ft.

22 years agoPatch from Georg Kaiser.
david [Wed, 5 Jun 2002 21:43:44 +0000 (21:43 +0000)]
Patch from Georg Kaiser.

22 years agoTweak paths.
curt [Wed, 5 Jun 2002 21:05:41 +0000 (21:05 +0000)]
Tweak paths.

22 years agoInitial revision of a script to facilitate debugging with valgrind.
curt [Wed, 5 Jun 2002 19:58:07 +0000 (19:58 +0000)]
Initial revision of a script to facilitate debugging with valgrind.

22 years agoMove initial setup of cloud layers to Main/main.cxx to ensure that
david [Wed, 5 Jun 2002 17:45:42 +0000 (17:45 +0000)]
Move initial setup of cloud layers to Main/main.cxx to ensure that
they are done only once, and ensure that all properties are untied in
unbind().

22 years agoSet up cloud layers when thesky is allocated, to ensure that they are
david [Wed, 5 Jun 2002 17:44:39 +0000 (17:44 +0000)]
Set up cloud layers when thesky is allocated, to ensure that they are
created only once.

22 years agoReplace cout statement with SG_LOG.
david [Wed, 5 Jun 2002 17:44:09 +0000 (17:44 +0000)]
Replace cout statement with SG_LOG.

22 years agoInitialize default SLP to 29.92inHG.
david [Wed, 5 Jun 2002 14:44:30 +0000 (14:44 +0000)]
Initialize default SLP to 29.92inHG.

22 years agoSet control surface positions when using an external network fdm.
curt [Wed, 5 Jun 2002 05:22:42 +0000 (05:22 +0000)]
Set control surface positions when using an external network fdm.
Fetch all pending remote fdm network packets so there is not chance of
  getting behind.
Add support for driving control panel lights.
Working on better modeling KX 155 tuning behavior.

22 years agoErik Hofman:
curt [Tue, 4 Jun 2002 16:27:20 +0000 (16:27 +0000)]
Erik Hofman:
* Small updates and fixes
* Add random as an internal ( <intenral>random</internal> is now possible)

22 years agoUninitialized data problem. As it turns out, this never bit us because
andy [Tue, 4 Jun 2002 07:23:34 +0000 (07:23 +0000)]
Uninitialized data problem.  As it turns out, this never bit us because
the _chord member is only used uninitialized in circumstances where the
result is thrown away.  Still, bad practice.  Found with valgrind.

22 years agoAdded flap_deflection so that remote fdm can pass back actual flap deflection
curt [Mon, 3 Jun 2002 23:35:43 +0000 (23:35 +0000)]
Added flap_deflection so that remote fdm can pass back actual flap deflection
in order to drive the flap sound effects and animation.

22 years agoNeed to call recalc() on the RigidBody during solution, or else it
andy [Sat, 1 Jun 2002 19:59:38 +0000 (19:59 +0000)]
Need to call recalc() on the RigidBody during solution, or else it
won't apply the right gross weight due to fuel differences.

When solving for zero force, do so in the global frame, not the
aircraft's.  In principle, this shouldn't matter (zero is zero in all
frames), but in practice this should help to avoid oscillations.
Calculating lift as force perpendicular to the ground (and not the
wing plane) is clearly the Right Thing, anyway.

Also added support for a /yasim/gross-weight-lbs property, which
should be generically useful.

22 years agoProperty name typo. This resulted in all temperatures being 273K,
andy [Thu, 30 May 2002 18:54:08 +0000 (18:54 +0000)]
Property name typo.  This resulted in all temperatures being 273K,
which is far too warm at altitude.  Thus, air density (and aircraft
performance) was too low for a given altitude.

22 years agoCheck for the proper base package version.
curt [Thu, 30 May 2002 15:37:39 +0000 (15:37 +0000)]
Check for the proper base package version.

22 years agoPatch from Melchior Franz:
david [Wed, 29 May 2002 22:38:11 +0000 (22:38 +0000)]
Patch from Melchior Franz:

The new dt/multiloop method requires new damping parameters.

22 years agoDefault to glider again when model is not present.
david [Wed, 29 May 2002 22:04:36 +0000 (22:04 +0000)]
Default to glider again when model is not present.

22 years agoModify solution heuristics. Do the cruise AoA and tail incidence only
andy [Wed, 29 May 2002 08:41:13 +0000 (08:41 +0000)]
Modify solution heuristics.  Do the cruise AoA and tail incidence only
when the lift/drag are really solid.  And defer the approach trim until
the all four of the other variables are perfect.  I believe this should
fix the solution failures under gcc 2.95.2.

22 years agoOops. Stray checkin. Revert.
andy [Wed, 29 May 2002 07:09:41 +0000 (07:09 +0000)]
Oops.  Stray checkin.  Revert.

22 years agoThe incidence setting only works on a compiled object. If setIncidence
andy [Wed, 29 May 2002 07:07:29 +0000 (07:07 +0000)]
The incidence setting only works on a compiled object.  If setIncidence
is called on a non-compiled object, make sure to re-set it after compilation.

22 years agoJSBSim change:
david [Tue, 28 May 2002 13:50:51 +0000 (13:50 +0000)]
JSBSim change:

Reverse sense of rudder surface position, for consistency with
ailerons and FlightGear controls.

22 years agoWe don't handle propellers turning backwards. This got clamped
andy [Thu, 23 May 2002 19:47:19 +0000 (19:47 +0000)]
We don't handle propellers turning backwards.  This got clamped
implicitly in PropEngine by disallowing negative torques, but that was
removed at some point.  We really need the explosion protection here
at the source.

22 years agoYank the "castering" attribute and replace it with a ControlMap-enabled
andy [Thu, 23 May 2002 19:30:56 +0000 (19:30 +0000)]
Yank the "castering" attribute and replace it with a ControlMap-enabled
control that can be set via the property system.  This allows implementation
of the DC-3 wheel lock.

22 years agoInclude autogen.sh in the distribution.
curt [Thu, 23 May 2002 15:47:11 +0000 (15:47 +0000)]
Include autogen.sh in the distribution.

22 years agoOops, left debug code in the checkin.
andy [Tue, 21 May 2002 18:45:56 +0000 (18:45 +0000)]
Oops, left debug code in the checkin.

22 years agoSolve for the elevator control input during approach. It turns out that
andy [Tue, 21 May 2002 07:40:46 +0000 (07:40 +0000)]
Solve for the elevator control input during approach.  It turns out that
the downforce from the tail due to elevator trim is a significant contribution
to total lift.

22 years agoErik Hofman:
curt [Mon, 20 May 2002 16:28:21 +0000 (16:28 +0000)]
Erik Hofman:
This patch adds "elapsed time" support to the sound code.
It is now possible to define <internal>dt_play</internal> or
<internal>dt_stop</internal> instead of a propery in the <volume> and
<pitch> sections of the configuration file.

22 years agoTony Peden:
curt [Mon, 20 May 2002 16:19:26 +0000 (16:19 +0000)]
Tony Peden:
Defeated the invasion once and for all.

22 years agoJim Wilson:
curt [Mon, 20 May 2002 16:13:37 +0000 (16:13 +0000)]
Jim Wilson:
This is a small fix for what turned out to be a major bug.  Ground elevation
was calculated incorrectly when distant from one of the view locations. This
resulted in several problems including bizarre gear trimming, mid air
"crashes" (as in thinking we hit the ground) and so on when close to or on the
ground.

Unfortunately it does require a second ssg traversal when in tower view
(only), but the increased load isn't all that noticable.  For the time being
this really is the best solution.  In a future update I will be eliminating
the unecessary per frame traversals for the static views (without having to
maintain multiple ssgRoots).

When we go to multiple FDM instances we will perhaps need to put the ssg
traversal and ground elevation queries for the FDMs into an event timer that
updates the FDMs ground elevation in a round robin fashion (maybe every 1/n
seconds where n is the number of FDM instances running).

22 years agoBernie Bright:
curt [Mon, 20 May 2002 15:53:14 +0000 (15:53 +0000)]
Bernie Bright:
Ensure lines sent to clients are CRLF terminated.
Ensure the dump command null terminates its output string.
Removed view command and comments.

22 years agoJim Wilson:
curt [Fri, 17 May 2002 21:02:40 +0000 (21:02 +0000)]
Jim Wilson:
Fix for the sound cranking bug.

22 years agoNo longer initialize static cloud layers (handled dynamically in
david [Fri, 17 May 2002 19:04:20 +0000 (19:04 +0000)]
No longer initialize static cloud layers (handled dynamically in
environment_mgr.cxx).  The /environment/clouds/status property is now
checked each frame, so clouds can be turned on or off in the middle of
a session.

22 years agoRemoved old --clouds-asl option and initialization of clouds-asl
david [Fri, 17 May 2002 19:03:20 +0000 (19:03 +0000)]
Removed old --clouds-asl option and initialization of clouds-asl
property, since neither makes sense for multiple cloud layers.

22 years agoModified to work with new cloud properties (sort-of).
david [Fri, 17 May 2002 19:02:43 +0000 (19:02 +0000)]
Modified to work with new cloud properties (sort-of).

22 years agoAdded support for initializing and maintaining up to five cloud
david [Fri, 17 May 2002 19:02:24 +0000 (19:02 +0000)]
Added support for initializing and maintaining up to five cloud
layers.  The properties controlling each layer are inside
/environment/clouds/layer[n], and the available properties are type
("clear", "overcast", "mostly-cloudy", "mostly-sunny", or "cirrus"),
span-m (should be about 40000), elevation-ft, thickness-ft, and
transition-ft.

22 years agoCorrected "#ifdef 0" to "#if 0" to keep ANSI-conformant compilers
david [Fri, 17 May 2002 18:56:13 +0000 (18:56 +0000)]
Corrected "#ifdef 0" to "#if 0" to keep ANSI-conformant compilers
happy.

22 years ago.cvsignore files for new directories.
david [Fri, 17 May 2002 18:48:40 +0000 (18:48 +0000)]
.cvsignore files for new directories.

22 years agoFrom: "Jim Wilson" <jimw@kelcomaine.com>
curt [Fri, 17 May 2002 17:25:28 +0000 (17:25 +0000)]
From: "Jim Wilson" <jimw@kelcomaine.com>
This is a new improved patch for the previous tile manager fixes.

Rather than building dependencies between FGlocation or the viewer or fdm with
tilemgr what I ended up doing was linking the pieces together in the Mainloop
in main.cxx.  You'll see what I mean...it's been commented fairly well.  More
than likely we should move that chunk somewhere...just not sure where yet.

The changes seem clean now. As I get more ideas there could be some further
improvement in organizing the update in tilemgr.  You'll note that I left an
override in there for the tilemgr::update() function to preserve earlier
functionality if someone needs it (e.g. usage independent of an fdm or
viewer), not to mention there are a few places in flightgear that call it
directly that have not been changed to the new interface (and may not need to be).

The code has been optimized to avoid duplicate traversals and seems to run
generally quite well.  Note that there can be a short delay reloading tiles
that have been dropped from static views.  We could call the tile scheduler on
a view switch, but it's not a big deal and at the moment I'd like to get this
in so people can try it and comment on it as it is.

Everything has been resycned with CVS tonight and I've included the
description submitted earlier (below).

Best,

Jim

Changes synced with CVS approx 20:30EDT 2002-05-09 (after this evenings updates).

Files:
http://www.spiderbark.com/fgfs/viewer-update-20020516.tar.gz
 or
http://www.spiderbark.com/fgfs/viewer-update-20020516.diffs.gz

Description:
In a nutshell, these patches begin to take what was one value for ground
elevation and calculate ground elevation values seperately for the FDM and the
viewer (eye position).  Several outstanding view related bugs have been fixed.

With the introduction of the new viewer code a lot of that Flight Gear code
broke related to use of a global variable called "scenery.cur_elev".

Therefore the ground_elevation and other associated items (like the current
tile bucket) is maintained per FDM instance and per View.  Each of these has a
"point" or location that can be identified.  See changes to FGLocation class
and main.cxx.

Most of the problems related to the new viewer in terms of sky, ground and
runway lights, and tower views are fixed.

There are four minor problems remaining.  1) The sun/moon spins when you pan
the "lookat" tower view only (view #3).  2) Under stress (esp. magic carpet
full speed with max visibility), there is a memory leak in the tile caching
that was not introduced with these changes.  3) I have not tested these
changes or made corrections to the ADA or External FDM interfaces.  4) The
change view function doesn't call the time/light update (not a problem unless
a tower is very far away).

Details:
FDM/flight.cxx, flight.hxx - FGInterface ties to FGAircraftModel so that it's
 location data can be accessed for runway (ground elevation under aircraft)
 elevation.

FDM/larsim.cxx, larcsim.hxx - gets runway elevation from FGInterface now.
Commented out function that is causing a namespace conflict, hasn't been
called with recent code anyway.

FDM/JSBSim/JSBSim.cxx, YASim/YASim.cxx - gets runway elevation from
FGInterface now.

Scenery/newcache.cxx, newcache.hxx - changed caching scheme to time based
(oldest tiles discard).

Scenery/tileentry.cxx, tileentry.hxx - added place to record time, changed
rendering to reference viewer altitude in order to fix a problem with ground
and runway lights.

Scenery/tilemgr.cxx, tilemgr.hxx - Modified update() to accept values for
multiple locations.   Refresh function added in  order to periodically make
the tiles current for a non-moving view (like a tower).

Main/fg_init.cxx - register event for making tiles current in a non-moving
view (like a tower).

Main/location.hxx - added support for current ground elevation data.

Main/main.cxx - added second tilemgr call for fdm, fixed places where viewer
position data was required for correct sky rendering.

Main/options.cxx - fixed segfault reported by Curtis when using --view-offset
command line parameter.

Main/viewer.cxx, viewer.hxx - removed fudging of view position. Fixed numerous
bugs that were causing eye and target values to get mixed up.

22 years agoBernie Bright:
curt [Fri, 17 May 2002 17:01:16 +0000 (17:01 +0000)]
Bernie Bright:
Reverted fgUsage() to previous version that works on all platforms.

22 years agoBernie Bright:
curt [Fri, 17 May 2002 16:41:27 +0000 (16:41 +0000)]
Bernie Bright:
I've defined snprintf as _snprintf in compiler.h for MSVC and MINGW
targets and removed duplicate definitions from FG sources.

22 years agoTemporarily modified to support changes in SGSky and SGCloudLayer;
david [Fri, 17 May 2002 01:23:00 +0000 (01:23 +0000)]
Temporarily modified to support changes in SGSky and SGCloudLayer;
this will soon be removed into a separate module that allows dynamic
changes to cloud layers.

22 years agoRevert the recent changes to Atmosphere.cpp. They were actually in
andy [Thu, 16 May 2002 07:49:22 +0000 (07:49 +0000)]
Revert the recent changes to Atmosphere.cpp.  They were actually in
the wrong place.  The Atmosphere::getStd*() calls are used by the
solver, and thus really need to return values for a "standard"
atmosphere.  Otherwise, an aircraft started up in Moscow will behave
differently than one initialized in Cairo. :)

The place where environmental pressure and temperature get inspected
at runtime is in YASim.cxx.  The changes there, happily, end up being
even smaller than the ones to Atmosphere.  This ends up replacing code
only, and removing some comments.

22 years agoBernie Bright:
curt [Thu, 16 May 2002 06:02:31 +0000 (06:02 +0000)]
Bernie Bright:
To make MSVC happy it appears we need backslashes on string literals
spanning multiple lines.

22 years agoAdded a scripts subdirectory with support for running external python
curt [Wed, 15 May 2002 21:45:39 +0000 (21:45 +0000)]
Added a scripts subdirectory with support for running external python
scripts that communicate with FlightGear via it's "telnet" interface.

22 years agoBernie Bright:
curt [Wed, 15 May 2002 21:44:34 +0000 (21:44 +0000)]
Bernie Bright:

Here is the new super improved telnet property interface.  CVS changelog
is at the end of this message.  Once this new telnet code is in and
compiles every where we can remove Network/props.[ch]xx.  I've added a
--telnet=<port> command line option to invoke the new server.  Later on
we could remove the --props option, or least change it to invoke the new
server.  I'll let you decide.

I've added some new commands to the telnet interface:

view next      Select the next view.
view prev      Select the previous view.
view set <n>   Select view 'n'
view get       Return index of current view

I'm not sure if these same effects could be achieved through property
operations.  The commands provide a convenient shortcut in any case.

I'm also planning on adding a panel command to manipulate panels and
objects contained therein (eg simulated mouse clicks).  There is going
to be some commonality with the command objects so we may need to
rationalize this in the near future.

Finally, I've also included my python stuff.  This is still very much a
work in progress, basically I've been using it to test the new telnet
server.  I have  tested it with python 2.2.  Feel free to add it to the
repository if you want.  I would suggest a scripts/python directory

CVS Changelog

Network/telnet.cxx: New property telnet protocol interface.  It supports
the same user interface provided by the --props server.  Additionally it
handles multiple simultaneous connections.  Added "view" command to
manipulate viewmgr.

Network/protocol.hxx: Added protocol configuration exception.

Main/fg_io.cxx:  Added new "telnet" protocol.  Added protocol
configuration parse exceptions.  Simplified protocol configuration
parsing.

Main/options.cxx: Added --telnet=<port> command line option and help
message.

22 years agoTake the static temperature, static pressure, and density values from
david [Wed, 15 May 2002 12:10:48 +0000 (12:10 +0000)]
Take the static temperature, static pressure, and density values from
an external source if requested by the
/environment/params/control-fdm-atmosphere property.

22 years agoComment out set_Static_pressure, set_Static_temperature, and
david [Wed, 15 May 2002 12:06:33 +0000 (12:06 +0000)]
Comment out set_Static_pressure, set_Static_temperature, and
set_Density; since JSBSim doesn't override the get_* methods from
FGInterface as well, the wrong values are always set anyway.

Take the static temperature, static pressure, and density values from
an external source if requested by the
/environment/params/control-fdm-atmosphere property.  This isn't
working properly yet for JSBSim because of interactions with the
trimming routine.

22 years agoActively manage the static temperature, static pressure, and density
david [Wed, 15 May 2002 12:04:25 +0000 (12:04 +0000)]
Actively manage the static temperature, static pressure, and density
values in the FDM if requested by the
/environment/params/control-fdm-atmosphere property.

22 years agoMinor tweaks and additional comments.
david [Wed, 15 May 2002 12:03:41 +0000 (12:03 +0000)]
Minor tweaks and additional comments.

22 years agoFinished off the atmosphere model (Troposphere and lower
david [Wed, 15 May 2002 03:00:41 +0000 (03:00 +0000)]
Finished off the atmosphere model (Troposphere and lower
Stratosphere).  The atmospheric properties are as follow:

/environment/temperature-sea-level-degc
/environment/temperature-degc
/environment/pressure-sea-level-inhg
/environment/pressure-inhg
/environment/density-sea-level-slugft3
/environment/density-slugft3

Setting either the sea-level or altitude value automatically sets the
other value appropriate, except for temperature at altitude above the
Troposphere (where there's no reliable way to back-calculate it).  The
atmosphere model appears in the atmosphere_data array in
environment.cxx, and can easily be extended into the upper
stratosphere and beyond.

These are not yet tied into the FDMs or steam module.

22 years agoFixed handling of delta time (just a kludge for now): VSI behaves
david [Tue, 14 May 2002 14:21:27 +0000 (14:21 +0000)]
Fixed handling of delta time (just a kludge for now): VSI behaves
reasonably again, and DG doesn't drift too fast any more.

22 years agoMoved some scenery component initialization into FGScenery.
curt [Tue, 14 May 2002 06:08:28 +0000 (06:08 +0000)]
Moved some scenery component initialization into FGScenery.

22 years agoConsolodating scenery structures in scenery.hxx.
curt [Tue, 14 May 2002 05:49:47 +0000 (05:49 +0000)]
Consolodating scenery structures in scenery.hxx.

22 years agoMoved "scenery" from being declaried in scenery.cxx to being declared
curt [Tue, 14 May 2002 05:22:52 +0000 (05:22 +0000)]
Moved "scenery" from being declaried in scenery.cxx to being declared
in globals.hxx.

22 years agoRemoved configuration option --with-old-mouse and FG_OLD_MOUSE macro.
david [Sun, 12 May 2002 00:12:19 +0000 (00:12 +0000)]
Removed configuration option --with-old-mouse and FG_OLD_MOUSE macro.

Removed configuration option --with-new-environment and
FG_NEW_ENVIRONMENT macro.

Added configuration option --with-weathercm and FG_WEATHERCM macro.

FGEnvironment is now the default; use --with-weathercm to get the old
weather.

22 years agoChanged WeatherPrecision to double; this may help to avoid compile
david [Sat, 11 May 2002 23:27:03 +0000 (23:27 +0000)]
Changed WeatherPrecision to double; this may help to avoid compile
errors (untested).

22 years agoEnvironment manager overhaul -- return a copy of an FGEnvironment
david [Sat, 11 May 2002 23:23:42 +0000 (23:23 +0000)]
Environment manager overhaul -- return a copy of an FGEnvironment
object rather than a pointer.

FGEnvironment now has the beginning of an atmospheric model, and will
recalculate temperature (not pressure or density, yet) based on
elevation.

FGEnvironment has a copy constructor.

22 years agoModified to use FGEnvironment as well as WeatherCM.
david [Sat, 11 May 2002 23:22:24 +0000 (23:22 +0000)]
Modified to use FGEnvironment as well as WeatherCM.

22 years agoRemove some dead code.
david [Sat, 11 May 2002 21:10:11 +0000 (21:10 +0000)]
Remove some dead code.

22 years agoFix maximum speed bug.
david [Sat, 11 May 2002 21:09:53 +0000 (21:09 +0000)]
Fix maximum speed bug.

22 years agoMajor overhaul:
david [Sat, 11 May 2002 16:28:50 +0000 (16:28 +0000)]
Major overhaul:

- changed FGSubsystem::update(int) to
  FGSubsystem::update(delta_time_sec); the argument is now delta time
  in seconds rather than milliseconds

- added FGSubsystem::suspend(), FGSubsystem::suspend(bool),
  FGSubsystem::resume(), and FGSubsystem::is_suspended(), all with
  default implementations; is_suspended takes account of the master
  freeze as well as the subsystem's individual suspended state

- the FDMs now use the delta time argument the same as the rest of
  FlightGear; formerly, main.cxx made a special case and passed a
  multiloop argument

- FDMs now calculate multiloop internally instead of relying on
  main.cxx

There are probably some problems -- I've done basic testing with the
major FDMs and subsystems, but we'll probably need a few weeks to
sniff out bugs.