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

22 years agoThis module was filtering out all stations with localizer offset
david [Mon, 15 Apr 2002 15:28:11 +0000 (15:28 +0000)]
This module was filtering out all stations with localizer offset
>90deg, even though src/Cockpit/radiostack.cxx has code to deal with
those; as a result, no backcourses were getting through.

This fix allows the common case of backcourses to work again, but
breaks the uncommon case of a runway using the same frequency for two
separate localizers.  That special case will have to be detected
somehow.  Still, this fixes more approaches than it breaks.

22 years agoMSVC fix.
david [Sat, 13 Apr 2002 21:41:51 +0000 (21:41 +0000)]
MSVC fix.

22 years agoFix for vanishing-model problem: models are drawn in the same scene
david [Sat, 13 Apr 2002 21:36:22 +0000 (21:36 +0000)]
Fix for vanishing-model problem: models are drawn in the same scene
graph as the terrain, except for internal cockpit view.  The SSG
scene-graph variables (except for the lighting root -- I'll get that
later) are now held in globals.hxx.

FGModelMgr::draw() is obsolete; I'll remove it in a future revision.

22 years agoPatch from Jim Wilson:
david [Sat, 13 Apr 2002 16:25:49 +0000 (16:25 +0000)]
Patch from Jim Wilson:

Fix for problem where an incorrect frame or two got slipped in while
changing tiles.  Corrections to authorship in file level comments.

22 years agoPatch from Norm Vine to speed up model placement.
david [Sat, 13 Apr 2002 13:30:38 +0000 (13:30 +0000)]
Patch from Norm Vine to speed up model placement.

DPM: untabified file.

22 years agoPatch from Jim Wilson:
david [Sat, 13 Apr 2002 13:11:34 +0000 (13:11 +0000)]
Patch from Jim Wilson:

Minor fixes.  Made some changes to get lighting correct for time of day
for now. MSVC compatibility fix and returned to clearing z-buffer only in
LOOKFROM (formerly pilot view).

[dpm: removed the last one, since I had already made a similar patch]

22 years agoEnsure that the aircraft model is in the same clip plane as everything
david [Sat, 13 Apr 2002 12:11:27 +0000 (12:11 +0000)]
Ensure that the aircraft model is in the same clip plane as everything
else and *doesn't* clear the z-buffer when in external view; tighten
the far plane for internal view back to 100m to give us maximum
precision (this will be important for some instruments; I might even
move it to 50m).

22 years agoAdd and document a "range" (level-of-detail) animation for individual
david [Sat, 13 Apr 2002 12:10:20 +0000 (12:10 +0000)]
Add and document a "range" (level-of-detail) animation for individual
objects and a range for the model as a whole.

22 years agoJSBSim change:
david [Fri, 12 Apr 2002 17:24:17 +0000 (17:24 +0000)]
JSBSim change:

Set an arbitrary cutoff (5RPM) where friction causes the propeller to
stop spinning.

22 years agoFixed typo for indirect longitude property.
david [Fri, 12 Apr 2002 15:07:49 +0000 (15:07 +0000)]
Fixed typo for indirect longitude property.

22 years agoAdded support for additional animated, dynamic 3D models configured in
david [Fri, 12 Apr 2002 12:45:49 +0000 (12:45 +0000)]
Added support for additional animated, dynamic 3D models configured in
XML.

22 years agoPatch from Norman Vine to save some property lookups.
david [Fri, 12 Apr 2002 12:44:58 +0000 (12:44 +0000)]
Patch from Norman Vine to save some property lookups.

22 years agoRun a registered event as it's registered and then at the specified interval.
curt [Fri, 12 Apr 2002 05:07:28 +0000 (05:07 +0000)]
Run a registered event as it's registered and then at the specified interval.

22 years agoGet rid of non-portable fmax call.
david [Thu, 11 Apr 2002 19:09:15 +0000 (19:09 +0000)]
Get rid of non-portable fmax call.

22 years agoAdd support for /controls/parking-brake -- it effective overrides the
david [Thu, 11 Apr 2002 17:11:22 +0000 (17:11 +0000)]
Add support for /controls/parking-brake -- it effective overrides the
individual braking commands for the main gear.

22 years agoAdded /controls/parking-brake and moved all control setters into the
david [Thu, 11 Apr 2002 17:10:46 +0000 (17:10 +0000)]
Added /controls/parking-brake and moved all control setters into the
cxx file (getters are still inline).

22 years agoReplace --with-new-mouse with --with-old-mouse, defaulting to 'no'.
david [Thu, 11 Apr 2002 17:09:06 +0000 (17:09 +0000)]
Replace --with-new-mouse with --with-old-mouse, defaulting to 'no'.

22 years agoUpdated licensing terms to GPL since this file inherits a goodly proportion
curt [Thu, 11 Apr 2002 16:40:59 +0000 (16:40 +0000)]
Updated licensing terms to GPL since this file inherits a goodly proportion
of previously GPL'd code.

22 years agoMSVC fixes.
curt [Thu, 11 Apr 2002 16:35:37 +0000 (16:35 +0000)]
MSVC fixes.

22 years agoBernie Bright:
curt [Thu, 11 Apr 2002 16:25:12 +0000 (16:25 +0000)]
Bernie Bright:

Here are the Boost-less FGEventMgr updates I promised.

Removed Boost dependencies from FGEventMgr.
Removed Boost configure check.
fgMethodCallback now handles const member functions.

I've successfully tested these changes with gcc and msvc.

22 years agoFinally getting around to being able to specify host name and ports for
curt [Thu, 11 Apr 2002 05:40:34 +0000 (05:40 +0000)]
Finally getting around to being able to specify host name and ports for
remote fdm application.

22 years agoChange constructor parameter order.
curt [Thu, 11 Apr 2002 05:39:56 +0000 (05:39 +0000)]
Change constructor parameter order.

22 years agoThis patch includes the FGLocation class, a few fixes, cleanup in viewer code.
curt [Thu, 11 Apr 2002 04:26:07 +0000 (04:26 +0000)]
This patch includes the FGLocation class, a few fixes, cleanup in viewer code.

Synced to CVS 19:36 EDT 2002-04-10 (after this evenings JSMsim and Base
package updates).

Description:
Added FGLocation class which is new home for calculating matrix rotations.
Viewer can now be configured to access rotations created by the model rather
than repeating the same calculations again.

Changed model initialization for the time being so that its location data is
available for the viewer (currently required by other subsystems).  At some
point we can move this back to fg_init along with the viewer initialization.

Seperated the update from the draw function in the model code.  The viewer
code needs the same matrix data, and moving the update portion at this time
does not increase the number of matrix math iterations.

Moved the model draw so that it always appears "in front" of lights and clouds.

Reogranized viewer update routine for using the FGLocation class and
simplified some more tasks.  The routine is fairly easy to follow now, with
the steps ordered and spelled out in comments.

Viewmgr only updates the current (visible) view now, with the exception of an
old reference to "chase view" that will be corrected in forthcoming changes.
Also will be doing some work on the viewmgr outputs.

Model is now clears the z-buffer in all modes.  This will be changed with the
next viewmgr update.  The only side effect is that models always disappear
when over 5km distant from the eye point (can't really see them anyway:-)).

Other than a flag to indicate "internal" view I don't anticipate the
configuration interface for viewmgr/views will be changed a lot for now.  It
is close to done.  The next viewmgr update will however rework the outputs so
may change location.

This code will run with the previous version of preferences.xml, but will run
faster with the newer version.  I am attaching a preferences.xml that should
not be commited before the code.  All the changes are in the /sim/view section
and should show a simpler view configuration that references model locations.
 Note that I've added a 2nd tower view in "lookfrom" mode for illustration
purposes. You can look around using the mouse.  You may want to remove that or
comment it out.

22 years agoThis patch includes the FGLocation class, a few fixes, cleanup in viewer code.
curt [Thu, 11 Apr 2002 04:25:30 +0000 (04:25 +0000)]
This patch includes the FGLocation class, a few fixes, cleanup in viewer code.

Synced to CVS 19:36 EDT 2002-04-10 (after this evenings JSMsim and Base
package updates).

Description:
Added FGLocation class which is new home for calculating matrix rotations.
Viewer can now be configured to access rotations created by the model rather
than repeating the same calculations again.

Changed model initialization for the time being so that its location data is
available for the viewer (currently required by other subsystems).  At some
point we can move this back to fg_init along with the viewer initialization.

Seperated the update from the draw function in the model code.  The viewer
code needs the same matrix data, and moving the update portion at this time
does not increase the number of matrix math iterations.

Moved the model draw so that it always appears "in front" of lights and clouds.

Reogranized viewer update routine for using the FGLocation class and
simplified some more tasks.  The routine is fairly easy to follow now, with
the steps ordered and spelled out in comments.

Viewmgr only updates the current (visible) view now, with the exception of an
old reference to "chase view" that will be corrected in forthcoming changes.
Also will be doing some work on the viewmgr outputs.

Model is now clears the z-buffer in all modes.  This will be changed with the
next viewmgr update.  The only side effect is that models always disappear
when over 5km distant from the eye point (can't really see them anyway:-)).

Other than a flag to indicate "internal" view I don't anticipate the
configuration interface for viewmgr/views will be changed a lot for now.  It
is close to done.  The next viewmgr update will however rework the outputs so
you can expect that the data that viewmgr is writing to the property tree
may change location.

This code will run with the previous version of preferences.xml, but will run
faster with the newer version.  I am attaching a preferences.xml that should
not be commited before the code.  All the changes are in the /sim/view section
and should show a simpler view configuration that references model locations.
 Note that I've added a 2nd tower view in "lookfrom" mode for illustration
purposes. You can look around using the mouse.  You may want to remove that or
comment it out.

22 years agoFixed reversed sign for nosewheel steering.
david [Thu, 11 Apr 2002 00:14:10 +0000 (00:14 +0000)]
Fixed reversed sign for nosewheel steering.

22 years agoLet's try it again, with the correct file name this time.
curt [Wed, 10 Apr 2002 17:51:34 +0000 (17:51 +0000)]
Let's try it again, with the correct file name this time.

22 years agoRecover this file. We are not able to use boost as a replacement because
curt [Wed, 10 Apr 2002 17:39:34 +0000 (17:39 +0000)]
Recover this file.  We are not able to use boost as a replacement because
of current Irix compiler incompatibilities.

22 years agoThe 3D aircraft model scene is now managed by
david [Tue, 9 Apr 2002 21:08:28 +0000 (21:08 +0000)]
The 3D aircraft model scene is now managed by
FGAircraftModel::update.  We should do the same thing for the scenery,
to simplify the top-level loop.

22 years agoRemoved current_model global variable and added a reference in
david [Tue, 9 Apr 2002 18:58:24 +0000 (18:58 +0000)]
Removed current_model global variable and added a reference in
FGGlobals instead (we still need to do the same with current_input and
a few other globals).

22 years agoChange the idle MP to reduce idle power a bit. This is basically a
andy [Tue, 9 Apr 2002 04:55:16 +0000 (04:55 +0000)]
Change the idle MP to reduce idle power a bit.  This is basically a
hack, and should be replaced with a sane idle model that has some
physical justification.

22 years agoAdded support for sending:
curt [Mon, 8 Apr 2002 19:57:45 +0000 (19:57 +0000)]
Added support for sending:
- Throttle control position
- Mixture control position
- Magneto/starter control position

Added support for receiving:
- Engine state (off, cranking, running)
- RPM
- Fuel Flow
- EGT
- Oil Temp
- Oil Pressure
- Fuel tank quantity
- Weight on wheels

22 years agoJSBSim change:
david [Mon, 8 Apr 2002 16:15:14 +0000 (16:15 +0000)]
JSBSim change:

Reduced the steering gain again, but still left it much higher than it
used to be.

22 years agoPatch from Frederic Bouvier (FIXME comments added by David Megginson):
david [Sun, 7 Apr 2002 21:20:16 +0000 (21:20 +0000)]
Patch from Frederic Bouvier (FIXME comments added by David Megginson):

I made these modifications to correct the problem of getter functions
returning pointers to local variables. Those variables are no longer
locals and become static. One should be aware that it kills reentrancy
!

22 years agoPatch from Martin Dressler:
david [Sun, 7 Apr 2002 21:13:56 +0000 (21:13 +0000)]
Patch from Martin Dressler:

This patch moves built-in Class (for now only mag-ribbon) into special
directory as you have written it in TODO: in comments of this class in
panel_io.cxx.  IMHO it is good idea.  I want to play with built-in
classes and OpenGC and this will be useful.

22 years agoPatches from Norm Vine to improve framerate and add a new
david [Sun, 7 Apr 2002 15:24:32 +0000 (15:24 +0000)]
Patches from Norm Vine to improve framerate and add a new
#ifdef'ed-out mode for syncing fullscreen with user settings in
Windows.

22 years agoPatch from Jim Wilson:
david [Sun, 7 Apr 2002 15:04:49 +0000 (15:04 +0000)]
Patch from Jim Wilson:

Made a couple more adjustments, now the function builds the
transformation matrix (sans the translation) directly from the five
inputs.  After realizing that it may be necessary for the new location
class to publish a world up vector, comments were added indicating
which values constitute world up.

22 years agoCorrected typo /position/altitude-deg to /position/altitude-ft.
david [Sat, 6 Apr 2002 23:45:24 +0000 (23:45 +0000)]
Corrected typo /position/altitude-deg to /position/altitude-ft.

22 years agoViewer update from Jim Wilson:
david [Sat, 6 Apr 2002 17:23:18 +0000 (17:23 +0000)]
Viewer update from Jim Wilson:

Minor patches to initial tower view code.  Added calculation for "tower" at
any airport, placed a couple fractions of a degree off the center.  Moved the
farplane from 100m to 5km so that "lookfrom" mode can see the model.  5km is
still in a reasonable range for a depth buffer.  Note that looking at a model
anything but a small distance will cause some problems on older cards.
Temporarily changed viewer to always report elevation/lon/lat of the aircraft
in order to avoid a problem with the ground trim getting recalculated when
tower and aircraft are on different tiles.

22 years agoConverted FCS to use property tree internally, documentation updates.
tony [Sat, 6 Apr 2002 16:03:16 +0000 (16:03 +0000)]
Converted FCS to use property tree internally, documentation updates.

22 years agoHere is the 'boostified' event manager plus relevant changes to
curt [Fri, 5 Apr 2002 20:03:49 +0000 (20:03 +0000)]
Here is the 'boostified' event manager plus relevant changes to
radiostack.cxx, fg_init.cxx and main.cxx.  If these changes are accepted
then you can remove Time/event.[ch]xx and Include/fg_callback.hxx from
the repository.

22 years agoViewer update from Jim Wilson:
david [Fri, 5 Apr 2002 18:49:04 +0000 (18:49 +0000)]
Viewer update from Jim Wilson:

Tower View and viewer config is in place.  Note that the interface is
still in a state of flux.  A couple of the config items (namely the
offsets) are still using the old settings.  The tower is hard coded
into the base package for a position off the starting runway at KSFO
and is probably not in the right place for there even.  Looks pretty
cool though!  Tower View is the third view.  If you aren't at KSFO
you'll just see blank space in view 3. It's looking through the earth or
something like that :-).  Important note: zoom in with a few
hits of the "x" key to see the plane better in tower view.

22 years agoPatch from Jim Wilson to realign model slightly in new model code:
david [Fri, 5 Apr 2002 18:48:04 +0000 (18:48 +0000)]
Patch from Jim Wilson to realign model slightly in new model code:

This should fix it.  The problem wasn't the rotations but a difference in
the translations.  Note that this fix also puts the wheels back on top of the
pavement when in external view.

22 years agoRemoved dependency on viewmgr.hxx from globals.hxx, so that changes to
david [Fri, 5 Apr 2002 18:46:47 +0000 (18:46 +0000)]
Removed dependency on viewmgr.hxx from globals.hxx, so that changes to
the viewer code do not require most of FlightGear to be rebuilt.
Added some now-required includes to environment.cxx.

22 years agoJSBSim fix:
david [Fri, 5 Apr 2002 16:55:30 +0000 (16:55 +0000)]
JSBSim fix:

Changed the steering gain from +/-0.1 to +/-1.0, so that the steering
angle for the nosewheel (when present) is the same as the rudder
deflection angle.  That's probably not exactly right, but it's much
better than we had before -- you can now steer the plane on the ground
reasonably during taxiing.

22 years agoMoved FGAircraftModel subsystem out into its own directory, and
david [Fri, 5 Apr 2002 03:19:34 +0000 (03:19 +0000)]
Moved FGAircraftModel subsystem out into its own directory, and
separated out a new class, FG3DModel, that allows any arbitrary 3D
model to be positioned, oriented, and animated (not just the
aircraft).

22 years agoVarious code cleanups.
curt [Fri, 5 Apr 2002 00:38:55 +0000 (00:38 +0000)]
Various code cleanups.

22 years agoInitial revision.
curt [Thu, 4 Apr 2002 20:50:05 +0000 (20:50 +0000)]
Initial revision.

22 years agoFix a warning message.
curt [Thu, 4 Apr 2002 20:48:21 +0000 (20:48 +0000)]
Fix a warning message.

22 years agoA few small updates to make ATC IRIX compliant.
curt [Thu, 4 Apr 2002 20:47:23 +0000 (20:47 +0000)]
A few small updates to make ATC IRIX compliant.

22 years agoMore platform/compiler compatibility fixes.
curt [Thu, 4 Apr 2002 20:41:15 +0000 (20:41 +0000)]
More platform/compiler compatibility fixes.

22 years agoLet exceptions fall through to main, and use cerr to report them (in
david [Thu, 4 Apr 2002 17:51:40 +0000 (17:51 +0000)]
Let exceptions fall through to main, and use cerr to report them (in
case logging is disabled).  This way, when people specify a
non-existant aircraft or have an error in a custom XML file, they'll
get an error report, at least.

22 years agoOops, misunderstanding, this copy of runways.cxx wasn't supposed to go here.
curt [Thu, 4 Apr 2002 16:30:00 +0000 (16:30 +0000)]
Oops, misunderstanding, this copy of runways.cxx wasn't supposed to go here.

22 years agoRe-arranged include files to reduce external dependencies for a slight
curt [Thu, 4 Apr 2002 06:05:51 +0000 (06:05 +0000)]
Re-arranged include files to reduce external dependencies for a slight
improvement in compilation speed.

22 years agoMake the base package check [failed] message a bit more informative about
curt [Thu, 4 Apr 2002 05:03:18 +0000 (05:03 +0000)]
Make the base package check [failed] message a bit more informative about
where it was looking.

22 years agoChanged cockpit near plane to 0.01m for interior view. Far plane is
david [Thu, 4 Apr 2002 01:32:57 +0000 (01:32 +0000)]
Changed cockpit near plane to 0.01m for interior view.  Far plane is
100m, so it should be OK.

22 years ago- fixed ANSI C++ namespace problems
david [Thu, 4 Apr 2002 01:32:00 +0000 (01:32 +0000)]
- fixed ANSI C++ namespace problems

- added final newlines to files to avoid compiler warnings

- adjusted for FG_NEW_ENVIRONMENT

22 years agoCommented out code setting view position offsets until we sort out
david [Thu, 4 Apr 2002 01:04:09 +0000 (01:04 +0000)]
Commented out code setting view position offsets until we sort out
what is what.

22 years agoAttached are a fairly extensive series of patches to the ATC
curt [Wed, 3 Apr 2002 23:54:44 +0000 (23:54 +0000)]
Attached are a fairly extensive series of patches to the ATC
system.  A chap from Germany called Alexander Kappes (cc'd) got
in touch with me a few weeks ago and has written the start of
Approach control.  At the moment tuning in to a valid approach
frequency (Dortmund or East Midlands) should result in vectors to
a spot about 3 miles from the active runway, and a telling off if you
stray too far from the correct course, in the console window.  He
seems to know what he's doing so expect this to improve rapidly!!

I've added a rudimentry AI manager and a hardwired Cessna at
KEMT on the runway - I'll remove it before the next release if I don't
have it flying by then.  There seems to be an issue with framerate
which drops alarmingly when looking at it - I've a feeling that I've
possibly created several Cessnas on top of each other, but am not
sure.

22 years agoThe previous version used a feature (language extension?) of gcc that
curt [Wed, 3 Apr 2002 00:57:06 +0000 (00:57 +0000)]
The previous version used a feature (language extension?) of gcc that
isn't supported by all other compilers.  Notably, MSVC and IRIX puked.

22 years agoChanged far clip plane for cockpit interior to 100m.
david [Tue, 2 Apr 2002 20:57:32 +0000 (20:57 +0000)]
Changed far clip plane for cockpit interior to 100m.

22 years agoI have attached revisions to the UIUC code. The revisions include the
curt [Mon, 1 Apr 2002 21:37:33 +0000 (21:37 +0000)]
I have attached revisions to the UIUC code.  The revisions include the
ability to run a nonlinear model with flaps.  The files ls_model.c and
uiuc_aero.c were changed since we had some functions with the same
name.  The name changes doesn't affect the code, it just makes it a
little easier to read.  There are changes in LaRCsim.cxx so UIUC
models have engine sound.  Could you send me an email when you receive
this and/or when the changes make it to the CVS?  Thanks.

Also I noticed you have some outdated files that are no longer used in
the UIUCModel directory.  They are uiuc_initializemaps1.cpp,
uiuc_initializemaps2.cpp, uiuc_initializemaps3.cpp, and
uiuc_initializemaps4.cpp

Rob

22 years agoUpdated Cameron's entry.
curt [Mon, 1 Apr 2002 21:05:43 +0000 (21:05 +0000)]
Updated Cameron's entry.

22 years agoAdded select animation type (using a condition), and allow all
david [Mon, 1 Apr 2002 14:00:08 +0000 (14:00 +0000)]
Added select animation type (using a condition), and allow all
animations to be named.

22 years agoInitial revision.
david [Mon, 1 Apr 2002 13:55:58 +0000 (13:55 +0000)]
Initial revision.

22 years agoMajor restructuring: the Animation class is now an abstract interface,
david [Sat, 30 Mar 2002 21:24:19 +0000 (21:24 +0000)]
Major restructuring: the Animation class is now an abstract interface,
and specific animation types are derived from it.  This change makes
the code much easier to read, maintain, and extend.

Added a 'translate' animation type for a scaled, 3D linear translation
(such as a sliding throttle knob).

Renamed the 'offset' property to 'offset-m' or 'offset-deg' as
appropriate; ditto for 'min' and 'max' properties.

22 years agoStart tracking delta time in milliseconds and passing it to the update
david [Sat, 30 Mar 2002 21:22:02 +0000 (21:22 +0000)]
Start tracking delta time in milliseconds and passing it to the update
method of each subsystem.

22 years ago* src/Input/input.hxx
david [Sat, 30 Mar 2002 12:52:55 +0000 (12:52 +0000)]
* src/Input/input.hxx

MSVC fix from Bernie Bright:

You can keep the enum private if you add the following declarations
immediately afterwards:

  struct mouse;
  friend struct mouse;

It seems that MSVC doesn't grant the nested mouse decl. any special
access privileges to its surrounding class.

22 years agoPatch from Jim Wilson:
david [Sat, 30 Mar 2002 12:52:24 +0000 (12:52 +0000)]
Patch from Jim Wilson:

Clear frame buffer and render model after rest of 3D scene. This has a
small frame rate cost (YMV). But who thought 3D cockpit would be cheap?
If anyone has a better idea, have at it!

Just did some more careful testing and I see little or no frame rate loss
with the depth buffer clear.  Also you can change the near plane to 0.1
and get rid of the "sunroof" (so I don't have to make up another set of
patches.

22 years agoPatch from Melchior Franz:
david [Sat, 30 Mar 2002 12:51:42 +0000 (12:51 +0000)]
Patch from Melchior Franz:

My last patch fixed the initialization problem only for the main branch, but
ignored the _MWERKS_ branch.
- merged the branches, only the loop head needs different treatment;
- don't access n.type before it is initialized (valgrind complaint)
- created a constructor; the operator>> wouldn't have initialized all
  variables in case of a broken default.nav.gz entry, so we would have
  got a mixture of the broken one and the previous one; in case of
  the first entry, that would have made nice random values ... ;-)
- move the automatic FGNav variable into the loop, so that the gets
  cleanly constructed for every database entry.
- commented out the frequency min/max exploration, which isn't used at all
- updated the commented out debug output statements, which were simply
  copied over from the nav* files, but never adapted (I needed them :-)

22 years agoPatch from Melchior Franz:
david [Sat, 30 Mar 2002 12:51:02 +0000 (12:51 +0000)]
Patch from Melchior Franz:

altitude_mode is still undefined when FGAutopilot::update is
first run.

22 years ago* src/ATC/atis.cxx
david [Sat, 30 Mar 2002 12:50:30 +0000 (12:50 +0000)]
* src/ATC/atis.cxx
* src/ATC/atislist.cxx

Patch from Melchior Franz:

- merged the _MWERKS_ & generic #ifdef branch, only the loop head needs
  different treatment
- commented out a "n >> skipeol" that is used in navlist.cxx to gobble
  the starting C++-style comment from default.nav.gz; atis inherited
  that, but there is no such comment in default.atis.gz, so the first
  data entry got thrown away
- commented out min/max frequency exploration (-> only for debugging)
- enhanced the constructor; the operator>> wouldn't have initialized all
  variables in case of a broken default.atis.gz entry, so we would have
  got a mixture of the broken one and the previous one;
- move the automatic FGATIS variable into the loop, so that it gets
  cleanly constructed for every database entry.
- don't access a.type before it is initialized
- updated the commented out debug output statements; they were still
  designed for the FGNav class ...

22 years agoPatch from Melchior Franz:
david [Sat, 30 Mar 2002 12:50:01 +0000 (12:50 +0000)]
Patch from Melchior Franz:

- merged the _MWERKS_ and the generic branch, only the loop head needs
  different treatment
- created a constructor; the operator>> wouldn't have initialized all
  variables in case of a broken default.fix.gz entry, so we would have
  got a mixture of the broken one and the previous one; (valgrind
  complained ...)
- move the automatic FGFix variable into the loop, so that the gets
  cleanly constructed for every database entry.
- don't access fix.type before it is initialized
- updated the commented out debug output statements (they were copied
  over from navlist.cxx but never adapted)

22 years agoPatch from Melchior Franz:
david [Sat, 30 Mar 2002 12:49:17 +0000 (12:49 +0000)]
Patch from Melchior Franz:

radiostack.cxx:703 says
      bool light_on = ( outer_blink || middle_blink || inner_blink );
but none of the flags has ever been initialized when this line is first
executed.

22 years agoFixed buffer size again.
david [Thu, 28 Mar 2002 17:16:37 +0000 (17:16 +0000)]
Fixed buffer size again.

22 years agoPatches from Jim Wilson:
david [Thu, 28 Mar 2002 16:14:04 +0000 (16:14 +0000)]
Patches from Jim Wilson:

This patch creates a seperate scene graph for the cockpit.  The near plane is
only moved up when in the interior (pilot) view.  This is because with
rounding (I presume) it the visible ground is a bit up higher than it is with
the older nearplane setting.  Not much, but it is enough to bury the wheels.
I suspected this might be true but spliting to two sg's confirms it.  If
necessary we can adjust the model up a bit when in interior view.  This might
be good so we can set the near plane even closer when in the cockpit (its
still at 0.2m).

In general this looks a lot better on my Voodoo with this patch.  No
perceptibel change in frame rate on my system.  In terms of future plans I'd
see the sense in making the model plug into either scene.  This will be
necessary when we have multiple model instances in the frame.

22 years agoMake sure that saved mouse position is reset when mouse is centred on
david [Thu, 28 Mar 2002 16:12:26 +0000 (16:12 +0000)]
Make sure that saved mouse position is reset when mouse is centred on
mode change.

22 years agoMouse changes suggested by Norm Vine. Cursor always centres on mode
david [Thu, 28 Mar 2002 15:57:02 +0000 (15:57 +0000)]
Mouse changes suggested by Norm Vine.  Cursor always centres on mode
changes, and wrap-around is smoother.

22 years agoCreated a new /devices property subtree to hold input device status
david [Wed, 27 Mar 2002 23:45:11 +0000 (23:45 +0000)]
Created a new /devices property subtree to hold input device status
(currently just the mouse, but later the joystick and keyboard as
well).  Publish mouse button status to the property tree.

22 years agoFixed bug reported by Norman Vine:
david [Wed, 27 Mar 2002 22:34:43 +0000 (22:34 +0000)]
Fixed bug reported by Norman Vine:

Mouse was not working properly with PUI dialogs that use sliders.  It
turned out that the up/down sense was reversed.

22 years agoPatch from Norm Vine:
david [Wed, 27 Mar 2002 20:27:52 +0000 (20:27 +0000)]
Patch from Norm Vine:

patch to enpower HUD to  display elevator trimval

22 years agoChanges corresponding to recent property manager changes
curt [Wed, 27 Mar 2002 18:47:31 +0000 (18:47 +0000)]
Changes corresponding to recent property manager changes
Remove bogus warning messages
Documentation changes
Minor speedups

22 years agoPatch from Melchior Franz:
david [Wed, 27 Mar 2002 15:53:15 +0000 (15:53 +0000)]
Patch from Melchior Franz:

The matrix doesn't define some cells, which are actually used
in the multiplication. That makes the result unpredictable.
I have no idea if 0.0 is the correct value for these, but
garbage is hardly the correct value either. Should some of them
be set to 1.0?

22 years agoViewer patches from Jim Wilson:
david [Wed, 27 Mar 2002 14:52:19 +0000 (14:52 +0000)]
Viewer patches from Jim Wilson:

Think my brain is getting clogged with matrices :-).  Well I've got the funky
orientation offset bug out of the model code.  In the process the model.cxx
got optimized a bit.  At some point we'll need to liberate model.cxx from the
viewer class, but it is no longer hard coded to access the  "pilot view" to
get it's data. Instead it uses whatever the "current" view happens to be.  I
may try and do that final bit of having models rotate independant of the view
tomorrow night, or start right in on the viewmgr and get a tower view up and
running.  You guys have any preference?  My brother's family is coming to
visit for a few days so what I don't get done tomorrow night probably won't
get done until after the weekend.

22 years agoPatch from Frederic Bouvier:
david [Wed, 27 Mar 2002 13:00:57 +0000 (13:00 +0000)]
Patch from Frederic Bouvier:

The compiler complains about too long names for instanciated templates
that result in name truncation. There are warnings but finally it ends
with a fatal errors. I found that ignoring the warning cure the
problem.

22 years agoFixed a bug report from Frederic Bouvier:
david [Wed, 27 Mar 2002 13:00:25 +0000 (13:00 +0000)]
Fixed a bug report from Frederic Bouvier:

A sloppy coder already defined min and max as macros with 2 arguments

22 years agoFixed a bug report from Frederic Bouvier:
david [Wed, 27 Mar 2002 12:59:53 +0000 (12:59 +0000)]
Fixed a bug report from Frederic Bouvier:

as a follow-up of my previous message, I found that in panel.cxx, function
const char *FGTextLayer::Chunk::getValue () const, there is the use of a
member variable _buf that seems to be uninitialized.

22 years agoRemoved outdated reference to fgSimTime.
david [Wed, 27 Mar 2002 12:53:50 +0000 (12:53 +0000)]
Removed outdated reference to fgSimTime.