]> git.mxchange.org Git - flightgear.git/log
flightgear.git
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.

22 years agoMac OS X patches from Jonathan Polley.
david [Sat, 11 May 2002 12:30:22 +0000 (12:30 +0000)]
Mac OS X patches from Jonathan Polley.

22 years agoProperty patches from Frederic Bouvier:
david [Sat, 11 May 2002 00:59:26 +0000 (00:59 +0000)]
Property patches from Frederic Bouvier:

The FlightGear patch is to take account the change in the getChildren
function that now returns a vector<SGPropertyNode_ptr>. If the
removeChild functionnality is to be added in FlightGear, all those
SGPropertyNode * floating around should be changed to
SGPropertyNode_ptr.

22 years agoMac OS X fixes and MSVC warning fixes from Jonathan Polley.
david [Fri, 10 May 2002 23:35:06 +0000 (23:35 +0000)]
Mac OS X fixes and MSVC warning fixes from Jonathan Polley.

22 years agoPatch from Melchior Franz:
david [Thu, 9 May 2002 21:57:07 +0000 (21:57 +0000)]
Patch from Melchior Franz:

- don't send "set" confirmation when in data mode. If an external
  program really cares if the settings were accepted, which is
  rather unlikely, it simply has to "get" the property again.
  The returned line would have been a pain to parse, anyway
  (something like "from-model =  'true'  (bool)").
- do not only "set" the first token, but concatenate all given
  tokens with a space in between. This won't be used much, but
  makes sense for setting strings, while it does no harm when setting
  numbers. Silently ignoring all but the first token is impolite. ;-)
- remove old, commented out debug message that doesn't make much
  sense any more.

22 years agoPatch from Melchior Franz:
david [Thu, 9 May 2002 21:56:31 +0000 (21:56 +0000)]
Patch from Melchior Franz:

Due to jumpy joystick read-outs the UFO jitters a lot in turns.
This patch implements simple damping for aileron/elevator/throttle.
Furthermore it lets the UFO fly backwards if brake[0] is active
(by default associated with the joystick's fire button). After all,
everyone knows that UFO's can fly backwards!

22 years agoPatch from Melchior Franz:
david [Thu, 9 May 2002 21:56:07 +0000 (21:56 +0000)]
Patch from Melchior Franz:

It's cumbersome to use the MagicCarpet as 3D cursor, because everytime
you shoot over the target you have first to turn by 180 degrees and to
fly back.

This patch lets the magic carpet fly backwards if brake[0] is active,
which is by default associated with the joystick's fire button.

22 years agoPatch from Jim Wilson:
david [Thu, 9 May 2002 21:15:01 +0000 (21:15 +0000)]
Patch from Jim Wilson:

Turns out it was a problem with a long string, not the font.  Plib is limited
to 80 characters in things like this listbox.  BTW I checked and all the fonts
are missing those characters.  So, no point in changing.

Description:
Fixed segfault caused by long string.

22 years agoRobert Deters:
curt [Thu, 9 May 2002 05:02:36 +0000 (05:02 +0000)]
Robert Deters:
> I have attached some new additions to the UIUC code.  Most of the
> changes allow for the addition of apparent mass.  This is very
> useful with light aircraft and gliders.

22 years agoCameron Moore:
curt [Thu, 9 May 2002 04:39:10 +0000 (04:39 +0000)]
Cameron Moore:
* Added FTP passwd qna
* Added FTP user limit qna

22 years agoErik Hofman:
curt [Thu, 9 May 2002 04:24:39 +0000 (04:24 +0000)]
Erik Hofman:

I changed the sound code to let it use FGCondition. This changes the
code and configuration files rather drastically. Furthermore I've added
an in-transit mode which plays the sound only when the tied property is
changing.

Changes:

Code:
* Added condition support to trigger an event
* Removed the <type> section from the main event definition
   (this could be done using conditions)
* Removed the abillity to use several events with the same name,
   instead it is required to use conditions.
* Updated the README.xmlsound

Base package:
* Changed the configuration files accordingly.
* Changed flaps and gear to use the new in-stransit mode.
* Changed the flps.wav file so it can be looped.
* Created a new gear.wav file (whcih can be looped)
   and a gear-lck.wav file for gear locking sound.

IMPORTANT:
To change existing configuration files to the new ones, it is important
to pack events with the same name together into one singel event, using
the condition specification. Also, when using special types (inverted,
flip-flop, raise or fall) these should be changed to a conditions also.
For more information, please look at
FLightGear/docs-mini/README.xmlsound and the supplied aircraft
configuration files located under FlightGear/Aircraft (espesially
c172/c172-sound.xml and c310/c310-sound.xml).

22 years agoLast rev was based on an old version and blew away recent changes.
david [Tue, 7 May 2002 23:11:16 +0000 (23:11 +0000)]
Last rev was based on an old version and blew away recent changes.
Reverted to the current JSBSim CVS version of each.

22 years agoAdded an interface for an environment controller, together with a
david [Tue, 7 May 2002 00:03:54 +0000 (00:03 +0000)]
Added an interface for an environment controller, together with a
default implementation that uses user-supplied params.  Currently, the
only parameters are

  /environment/params/base-wind-speed-kt
  /environment/params/gust-wind-speed-kt

but others will show up soon (i.e. sheer, variable direction, variable
visibility, etc.).  To activate these properties, you have to
configure --with-new-environment.

The gusting function is simplistic and needs to be replaced with
something better, though it doesn't feel too far off.

22 years agoAdded stall hysteresis modeling, nose should fall through nicely in a stall now.
tony [Sat, 4 May 2002 17:38:06 +0000 (17:38 +0000)]
Added stall hysteresis modeling, nose should fall through nicely in a stall now.

22 years agoAdded a new 'billboard' animation type. This animation takes one
david [Fri, 3 May 2002 21:09:14 +0000 (21:09 +0000)]
Added a new 'billboard' animation type.  This animation takes one
subproperty, 'spherical', which is true if the object has spherical
symmetry and should rotate around both the x-axis and z-axis to face
the camera (i.e. a simple cloud), and false if the object has only
cylindrical symmetry and should rotate only around the z-axis (i.e. a
tree).

22 years agoNorman Vine's speed optimizations
tony [Fri, 3 May 2002 13:56:09 +0000 (13:56 +0000)]
Norman Vine's speed optimizations

22 years agoRegularized the position initialization:
david [Wed, 1 May 2002 23:13:36 +0000 (23:13 +0000)]
Regularized the position initialization:

1. If /position/longitude-deg and /position/latitude-deg are in range,
   use them.
2. Otherwise, if /sim/startup/airport-id is not empty, use it.
3. Otherwise, set the lon/lat to the middle of the KSFO field.

The default used to be Globe, AZ, but that doesn't make sense since we
don't distribute that scenery by default any more.

With this change, starting from a save file seems to work properly:

  fgfs myflight.sav

22 years agoFix dumb typo. Very embarassing, but oddly not fatal...
andy [Wed, 1 May 2002 01:17:33 +0000 (01:17 +0000)]
Fix dumb typo.  Very embarassing, but oddly not fatal...

22 years agoJSBSim updates, including MSVC fixes from Bernie Bright
tony [Tue, 30 Apr 2002 13:42:26 +0000 (13:42 +0000)]
JSBSim updates, including MSVC fixes from Bernie Bright

22 years agoCleaned up initialization of parking brake to be more consistent.
david [Fri, 26 Apr 2002 01:53:41 +0000 (01:53 +0000)]
Cleaned up initialization of parking brake to be more consistent.

22 years agoPass along the status of the gear up/down control lever.
curt [Thu, 25 Apr 2002 22:41:13 +0000 (22:41 +0000)]
Pass along the status of the gear up/down control lever.

22 years agoBernie Bright:
curt [Thu, 25 Apr 2002 20:31:38 +0000 (20:31 +0000)]
Bernie Bright:
- Major rewrite making it more member function friendly.

22 years agoBernie Bright:
curt [Thu, 25 Apr 2002 20:31:14 +0000 (20:31 +0000)]
Bernie Bright:
- Added initial_value argument, in milliseconds, that specifies when
  event is first run.  The default value of -1 triggers the event
  immediately as per the existing behaviour.  A repeat_value greater than
  zero runs the event no less than every 'repeat_value' milliseconds
  afterwards.  A repeat_value of zero deletes the event.
- Modified run queue behaviour such that only one event per frame is
  run.

22 years agoCameron Moore:
curt [Thu, 25 Apr 2002 19:51:33 +0000 (19:51 +0000)]
Cameron Moore:
- Updates to MSFS import question

22 years agoPatch from Norman Vine:
david [Thu, 25 Apr 2002 19:44:27 +0000 (19:44 +0000)]
Patch from Norman Vine:

Yikes  --
Looks like I broke the scenery.current_normal when I last
reworked the hitlist code.

I guess this is proof that no one has been using it.

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 19:35:04 +0000 (19:35 +0000)]
Patch from Melchior Franz:

the parking_brake state is requested in saveInitialState before it
is first set

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 19:26:47 +0000 (19:26 +0000)]
Patch from Melchior Franz:

the states of all the volume buttons are requested in saveInitialState before
they are first set

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 19:26:18 +0000 (19:26 +0000)]
Patch from Melchior Franz:

ATCmgr.cxx:148 says:
// Returns true if the airport is found in the map

Yes, it returns true if the airport has been found. But it fails
to return the airport data. Just plays around with a local pointer.  ;-)

22 years agoPatch from Melchior Franz:
david [Thu, 25 Apr 2002 19:25:53 +0000 (19:25 +0000)]
Patch from Melchior Franz:

FGAIEntity::FastWorldCoordinate (AIEntity.cxx:96) uses this->hdg
uninitialized.

22 years agoUFO FDM patches from Jonathan Polley:
david [Thu, 25 Apr 2002 16:23:16 +0000 (16:23 +0000)]
UFO FDM patches from Jonathan Polley:

I have finished working the bugs out of my "Enhanced" version of the Magic
Carpet FDM.  The UFO FDM works the same as the Magic Carpet with the
following exceptions:

The aircraft's pitch is determined by the Elevator setting (with a pitch
rate of 45 degrees per second).
Climb is forward velocity * sin(pitch)
Speed is forward velocity * soc(pitch)

Roll is tied to the aileron (again, with a roll rate of 45 degrees per
second)
Turn rate is sin(roll) * 45 degrees.

Yes, this does mean that turning is quite a bit more sluggish than
climbing.

If you are wondering why a UFO FDM, it is because it's best that I not
replace the existing magic carpet and this FDM does behave like a UFO (it
hovers, can spin and pitch while hovering, and does not obey the laws of
physics ;)

22 years agoUpdated am2dsp.cfg from Bernie.
curt [Mon, 22 Apr 2002 22:42:23 +0000 (22:42 +0000)]
Updated am2dsp.cfg from Bernie.

22 years agoComment out ATC AI manager init() and update() calls until we can resolve
curt [Mon, 22 Apr 2002 22:28:00 +0000 (22:28 +0000)]
Comment out ATC AI manager init() and update() calls until we can resolve
the tremendous performance hit they are imposing.

22 years agoFix a couple "make dist" problems that crept in since the last release.
curt [Sun, 21 Apr 2002 05:51:37 +0000 (05:51 +0000)]
Fix a couple "make dist" problems that crept in since the last release.
Regengerate msvc project files.

22 years agoTweaks.
curt [Sun, 21 Apr 2002 04:42:02 +0000 (04:42 +0000)]
Tweaks.

22 years agoFix for reset causing view problems when not in pilot view.
curt [Sun, 21 Apr 2002 03:27:34 +0000 (03:27 +0000)]
Fix for reset causing view problems when not in pilot view.

22 years agoUpdated for 0.7.10.
curt [Sun, 21 Apr 2002 03:13:00 +0000 (03:13 +0000)]
Updated for 0.7.10.

22 years agoMake an animation with no object name apply to the model as a whole.
david [Sat, 20 Apr 2002 17:07:47 +0000 (17:07 +0000)]
Make an animation with no object name apply to the model as a whole.
This replaces the old "range" subtree with something more general.

22 years agoThere was an integer overflow in the way elapsed_time_ms. Because the
curt [Sat, 20 Apr 2002 14:52:43 +0000 (14:52 +0000)]
There was an integer overflow in the way elapsed_time_ms.  Because the
SGTimeStamp "-" operator returns it's result in usec's, there is an upper bound of 37.8 minutes on the maximum difference this operator can reliably report
before the math overflows.  I change the global "int elapsed_time_ms" variable
to a "double sim_time_ms" and restructured how the value is calculated.
----
The practical result of the overflow bug is that a large negative dt was
passed to the event manager and the end effect was that no events would
be run until their counters caught up ... in another 37.8 minutes or so.

22 years agoExplicitly include model.hxx, since acmodel.hxx no longer includes it.
david [Sat, 20 Apr 2002 14:08:06 +0000 (14:08 +0000)]
Explicitly include model.hxx, since acmodel.hxx no longer includes it.

22 years agoAdd support for interpolation tables for non-linear animations.
david [Sat, 20 Apr 2002 14:07:34 +0000 (14:07 +0000)]
Add support for interpolation tables for non-linear animations.

Remove header dependencies where possible, to speed up rebuilds.

22 years agoRemove header dependencies where possible, to speed up rebuilds.
david [Sat, 20 Apr 2002 14:07:03 +0000 (14:07 +0000)]
Remove header dependencies where possible, to speed up rebuilds.

22 years agoUpdated docs for this directory.
david [Sat, 20 Apr 2002 14:05:49 +0000 (14:05 +0000)]
Updated docs for this directory.

22 years agoJim Wilson:
curt [Fri, 19 Apr 2002 15:48:27 +0000 (15:48 +0000)]
Jim Wilson:
Also move tower when teleporting to a new airport.

22 years agoJim Wilson:
curt [Fri, 19 Apr 2002 15:36:51 +0000 (15:36 +0000)]
Jim Wilson:
Fix a scrolling problem where last item doesn't show in prop_picker.
Removed include for unreferenced header in viewmgr.

22 years agoDetect and recover from a math overflow that can possibly prevent panel text
curt [Fri, 19 Apr 2002 14:05:58 +0000 (14:05 +0000)]
Detect and recover from a math overflow that can possibly prevent panel text
from updating if the instrument panel is not drawn for more then 35.7
minutes.

22 years agoJSBSim fix:
david [Fri, 19 Apr 2002 12:15:46 +0000 (12:15 +0000)]
JSBSim fix:

Corrected typo "flaps-pos-deg" to "flap-pos-deg".  JSBSim now reports
the normalized flap position to FlightGear, and the model animation
works again.

22 years agoFixed an "==" vs. "=" typo.
curt [Fri, 19 Apr 2002 04:11:32 +0000 (04:11 +0000)]
Fixed an "==" vs. "=" typo.

22 years agoStop the sound when paused. We really need a separate control for
david [Fri, 19 Apr 2002 04:00:02 +0000 (04:00 +0000)]
Stop the sound when paused.  We really need a separate control for
muting, but that will have to wait until someone has time.

22 years agoJim Wilson:
curt [Fri, 19 Apr 2002 00:25:25 +0000 (00:25 +0000)]
Jim Wilson:
Minor patch for flicker glitch when crossing from one tile to another.

22 years agoTracked down a potential segfault when trying to audibly ident a vor station.
curt [Thu, 18 Apr 2002 21:43:00 +0000 (21:43 +0000)]
Tracked down a potential segfault when trying to audibly ident a vor station.
This led to an investigation into why the ident playing didn't work anymore.
Recent changes in the sound manager broke some assumptions the radiostack
code was making.  These patches should hopefully fix all that back up.
Erik, please review these changes to double check I didn't do more damage
than good. :-)

22 years agoAdded groundwork for reading a joystick name from the latest plib CVS
david [Thu, 18 Apr 2002 20:18:33 +0000 (20:18 +0000)]
Added groundwork for reading a joystick name from the latest plib CVS
code.  It doesn't do anything but print a message, so far.

22 years agoJim Wilson:
curt [Thu, 18 Apr 2002 16:51:47 +0000 (16:51 +0000)]
Jim Wilson:
These are the updates for the View manager properties.  Removed the last of
items (within the viewer/viewmgr) hard coded to view number.  Added support
for per view configuration of ground level nearplane value.  Tower views look
very nice with little or no z-buffer problem in the models.  Pilot offset
dialog can be used to move eye in all views.

22 years agoReplaced spaces with <tab> since this is a makefile.
curt [Tue, 16 Apr 2002 20:42:58 +0000 (20:42 +0000)]
Replaced spaces with <tab> since this is a makefile.

22 years agoSmall tweak to make the Irix compiler happy.
curt [Tue, 16 Apr 2002 17:28:57 +0000 (17:28 +0000)]
Small tweak to make the Irix compiler happy.

22 years agoLatest JSBSim changes.
david [Tue, 16 Apr 2002 13:15:29 +0000 (13:15 +0000)]
Latest JSBSim changes.

22 years agoFixed a recently introduced bug which cause the ground lighting to be
curt [Tue, 16 Apr 2002 06:33:56 +0000 (06:33 +0000)]
Fixed a recently introduced bug which cause the ground lighting to be
wrongly "lifted" a very, very, very large amount more than it was supposed
to be.  I guess the moral of the story is what goes up, must come down. :-)

22 years agoOf all the ILS stations that match the specified frequency and are in range,
curt [Mon, 15 Apr 2002 17:53:05 +0000 (17:53 +0000)]
Of all the ILS stations that match the specified frequency and are in range,
return the one that is pointed most directly at us.