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

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.