]> git.mxchange.org Git - flightgear.git/log
flightgear.git
22 years agoReplaced some debugging structure David inadvertantly removed.
curt [Sat, 16 Mar 2002 05:12:26 +0000 (05:12 +0000)]
Replaced some debugging structure David inadvertantly removed.

22 years agoPatches from Tony Peden to separate property XML I/O operations into a
david [Sat, 16 Mar 2002 00:18:38 +0000 (00:18 +0000)]
Patches from Tony Peden to separate property XML I/O operations into a
separate header file.  This change will help integrate properties into
JSBSim.

Also, I (David Megginson) removed most of the SimGear include
statements from globals.hxx, reducing the amount of recompilation
every time SimGear changes.  This required making minor changes to a
lot of files that were depending on the side-effects of the inclusions
in globals.hxx.

22 years agoRenamed /cockpit property to /sim/view/internal.
david [Fri, 15 Mar 2002 21:50:14 +0000 (21:50 +0000)]
Renamed /cockpit property to /sim/view/internal.

22 years agoPrint an error message before terminating on parse errors.
andy [Fri, 15 Mar 2002 19:02:07 +0000 (19:02 +0000)]
Print an error message before terminating on parse errors.

22 years agoMore work on saving and restoring flights. Restoring a flight is not
david [Thu, 14 Mar 2002 14:25:30 +0000 (14:25 +0000)]
More work on saving and restoring flights.  Restoring a flight is not
working in a running FlightGear session because of JSBSim trim-routine
problems, but it does work from the command-line now, i.e.

  fgfs fgfs.sav

22 years agoChange fog punch through value a bit. Either way it's a WAG for now, but
curt [Thu, 14 Mar 2002 00:52:38 +0000 (00:52 +0000)]
Change fog punch through value a bit.  Either way it's a WAG for now, but
at least it's less obviously wrong.

22 years agoRemoved some cout statements left in accidentally.
david [Thu, 14 Mar 2002 00:30:21 +0000 (00:30 +0000)]
Removed some cout statements left in accidentally.

22 years agoCentralized most view-management code in FGViewMgr. It's still a
david [Thu, 14 Mar 2002 00:29:20 +0000 (00:29 +0000)]
Centralized most view-management code in FGViewMgr.  It's still a
mess, but the mess is all in one place now.

22 years agoCombined and updated some code to calculate fog parameters.
curt [Wed, 13 Mar 2002 17:06:41 +0000 (17:06 +0000)]
Combined and updated some code to calculate fog parameters.

22 years agoFix several signed vs. unsigned warning messages.
curt [Wed, 13 Mar 2002 17:06:17 +0000 (17:06 +0000)]
Fix several signed vs. unsigned warning messages.

22 years agoAutopilot cleanup:
david [Wed, 13 Mar 2002 16:31:21 +0000 (16:31 +0000)]
Autopilot cleanup:

- implement the standard FGSubsystem interface, for consistency
- eliminate current_autopilot and add get/set_autopilot to FGGlobals,
  for consistency
- use private methods rather than static functions for tying
  properties

There should be no change in functionality.

22 years agoAdd "(" and ")" to ensure the expression is evaluated correctly.
curt [Wed, 13 Mar 2002 15:55:32 +0000 (15:55 +0000)]
Add "(" and ")" to ensure the expression is evaluated correctly.

22 years agoEliminate dependencie on tying variable pointers (in preparation for
david [Wed, 13 Mar 2002 15:16:24 +0000 (15:16 +0000)]
Eliminate dependencie on tying variable pointers (in preparation for
property-code simplification).

22 years agoAdded a final newline to avoid a compiler warning.
david [Wed, 13 Mar 2002 14:17:59 +0000 (14:17 +0000)]
Added a final newline to avoid a compiler warning.

22 years agoWorking on the start of a 'standard' <grin> remote FDM interface. This
curt [Wed, 13 Mar 2002 06:07:07 +0000 (06:07 +0000)]
Working on the start of a 'standard' <grin> remote FDM interface.  This
is a work in progress and needs severe enhancement before it will be
useful.  It provides a UDP data channel that goes both ways between
flightgear and the fdm.  It also provides a TCP 'command' channel so
flightgear can 'reliably' send commands to the remote fdm (such as set
starting position, reset on ground, etc.)

22 years agoBetter support of the newer more flexible object file format. This
curt [Wed, 13 Mar 2002 06:03:37 +0000 (06:03 +0000)]
Better support of the newer more flexible object file format.  This
includes the ability to specify per vertex normals rather than depending
the normals list being the same as the vertices list.  (Support for
previous binary file format scenery is maintained.)

22 years agoPatch from Jim Wilson to fix internal cockpit view rotations:
david [Wed, 13 Mar 2002 04:58:08 +0000 (04:58 +0000)]
Patch from Jim Wilson to fix internal cockpit view rotations:

This seems to pretty much correct the problem.  Part of the problem is that
rotations are occuring at the firewall (model origin) which seems a little
un-natural inside the cockpit.  The rest of the problem is I am just learning
how this stuff works (I know I've been saying this for a couple months
now...but hey I'm slow :-)).

22 years ago*** empty log message ***
curt [Tue, 12 Mar 2002 20:38:26 +0000 (20:38 +0000)]
*** empty log message ***

22 years agoFixes for Irix compatibility.
curt [Tue, 12 Mar 2002 20:01:54 +0000 (20:01 +0000)]
Fixes for Irix compatibility.
Fix several long standing irix compiler warnings.

22 years agoAdded a new 'delimiter' property to allow an alternative delimiter to
david [Tue, 12 Mar 2002 19:55:49 +0000 (19:55 +0000)]
Added a new 'delimiter' property to allow an alternative delimiter to
the comma, and fixed a constant that was causing CygWin compilation
problems.

22 years agoDocumented the new 'delimiter' property, allowing an alternative to
david [Tue, 12 Mar 2002 19:55:05 +0000 (19:55 +0000)]
Documented the new 'delimiter' property, allowing an alternative to
comma-delimited, and noted that no delimiter escaping is done in
property values.

22 years agoAdd support for elapsed time and logging.
david [Tue, 12 Mar 2002 16:30:27 +0000 (16:30 +0000)]
Add support for elapsed time and logging.

22 years agoBind a new property, /sim/time/elapsed-ms, giving the number of
david [Tue, 12 Mar 2002 16:29:32 +0000 (16:29 +0000)]
Bind a new property, /sim/time/elapsed-ms, giving the number of
milliseconds elapsed since the simulation began.

22 years agoAdded new logging module.
david [Tue, 12 Mar 2002 16:29:00 +0000 (16:29 +0000)]
Added new logging module.

22 years ago*** empty log message ***
curt [Tue, 12 Mar 2002 05:37:55 +0000 (05:37 +0000)]
*** empty log message ***

22 years agoPatches from Erik.
curt [Mon, 11 Mar 2002 22:55:52 +0000 (22:55 +0000)]
Patches from Erik.

22 years agoRemoved some extra debugging output that wasn't supposed to be committed.
curt [Mon, 11 Mar 2002 22:55:01 +0000 (22:55 +0000)]
Removed some extra debugging output that wasn't supposed to be committed.

22 years agoOops, make sure we are generating an ocean tile if we can't load a terrain
curt [Mon, 11 Mar 2002 22:50:23 +0000 (22:50 +0000)]
Oops, make sure we are generating an ocean tile if we can't load a terrain
tile.
Fixed a warning in the sound manager.

22 years agoCleaned up a couple compiler warnings.
curt [Mon, 11 Mar 2002 15:41:39 +0000 (15:41 +0000)]
Cleaned up a couple compiler warnings.

22 years agoRemoved badly out-of-date documents on 3D models and properties.
david [Mon, 11 Mar 2002 14:51:32 +0000 (14:51 +0000)]
Removed badly out-of-date documents on 3D models and properties.

22 years agoSound patch from Erik Hofman:
david [Sun, 10 Mar 2002 19:31:30 +0000 (19:31 +0000)]
Sound patch from Erik Hofman:

* Add new trigger types: raise, fall
* Add new trigger offset parameter
* Add new volume/pitch types: inv, abs, sqrt
* Add initial support for multiple events to intervere in a single sound
   (by using the same name, see the crank section of 172-sound.xml)
* Cached the volume/pitch type fucntions
   (No more if's inside the loops in update())

22 years agoAdded test-env-map.
david [Sun, 10 Mar 2002 19:25:00 +0000 (19:25 +0000)]
Added test-env-map.

22 years agoSgi doesn't define the != operator for string != char[] so we need to cast
curt [Fri, 8 Mar 2002 23:24:59 +0000 (23:24 +0000)]
Sgi doesn't define the != operator for string != char[] so we need to cast
the char array into a (string) type before doing the comparison.

22 years agoFirst baby steps towards restructuring the view architecture. I've
david [Wed, 6 Mar 2002 16:03:33 +0000 (16:03 +0000)]
First baby steps towards restructuring the view architecture.  I've
created a new class, FGViewPoint (declared in viewer.hxx) that holds a
single position in FlightGear coordinates, and have used it to factor
a lot of the common code out of viewer_lookat.cxx and viewer_rph.cxx.

I don't know whether this new class will stay or not; it might just be
a temporary step, or it might end up taking over much of the current
viewer functionality.  It would be a bad idea to code against it right
now.

22 years agoIf the (temporary) property /cockpit is true, set the near clipping
david [Wed, 6 Mar 2002 16:01:19 +0000 (16:01 +0000)]
If the (temporary) property /cockpit is true, set the near clipping
plane to 0.2; otherwise, use the old defaults.

This is a temporary step that will allow me to work on a 3D cockpit
without breaking current behaviour; the final approach will be to put
the 3D model in its own scene graph, with different clipping plane.

22 years agoTemporarily rolled out last change, pending a restructuring of the
david [Wed, 6 Mar 2002 15:54:25 +0000 (15:54 +0000)]
Temporarily rolled out last change, pending a restructuring of the
view infrastructure: vertical mouse panning wasn't working.

22 years agoPatch from Andy Ross to allow virtual panel to tilt with mouse view:
david [Wed, 6 Mar 2002 13:53:18 +0000 (13:53 +0000)]
Patch from Andy Ross to allow virtual panel to tilt with mouse view:

OK, attached is a replacement for mouse.cxx that works the view using
the view-offset/tilt interface, rather than the (kinda odd) GuiQuat
stuff.  It's kind of a hack job, as I left the hooks to GuiQuat in in
other places for fear of breaking something.  Still, it removed more
code from mouse.cxx than it added, which has to count for some
elegance points.

22 years agoPatch from Andy Ross to hide virtual panel when required:
david [Wed, 6 Mar 2002 13:51:05 +0000 (13:51 +0000)]
Patch from Andy Ross to hide virtual panel when required:

Oh yeah, I forgot to send that one along.  This one is my bug, I
goofed the precedence in the fgPanelVisible() function in panel.cxx
such that the panel was *always* visible if virtual cockpit was
enabled.  Here's a replacement.  I've modified the style from a single
boolean expression to an if-list, since that's more readable to my
eyes for expressions this big:

22 years agoAdded test-env-map.cxx - an environment map demo/test program.
curt [Wed, 6 Mar 2002 05:05:17 +0000 (05:05 +0000)]
Added test-env-map.cxx - an environment map demo/test program.

22 years agoTemporarily reverted change to near/far clip plane.
david [Tue, 5 Mar 2002 22:25:11 +0000 (22:25 +0000)]
Temporarily reverted change to near/far clip plane.

22 years agoStart of an internal 3-D view. If the property "/cockpit" (temporary
david [Tue, 5 Mar 2002 13:39:45 +0000 (13:39 +0000)]
Start of an internal 3-D view.  If the property "/cockpit" (temporary
and soon to be renamed) is true, FlightGear will draw the 3-D model
even in internal view.  This makes sense right now only with the C310
model, since the others don't have any kind of interiors modeled and
all surfaces in all models are one-sided.

This isn't quite working yet -- the view code is very hard to
disentangle, and currently, if the view is not forward, roll and pitch
are applied incorrectly.  It looks interesting (modulo a messy model)
on the ground, in level flight, or looking straight ahead under any
other flight conditions.

22 years agoChanged the near clip plane to 0.1f regardless. Previously, it jumped
david [Tue, 5 Mar 2002 13:35:48 +0000 (13:35 +0000)]
Changed the near clip plane to 0.1f regardless.  Previously, it jumped
to 10m after takeoff, but that doesn't really make sense any more,
especially if models are going to have interior views.  Is there any
real saving in pushing the near plane out anyway?

22 years agoFixed a bug with view-offset specification from the command line. There
curt [Mon, 4 Mar 2002 20:12:30 +0000 (20:12 +0000)]
Fixed a bug with view-offset specification from the command line.  There
was some confusion between degrees and radians which would lead to a huge
goal_view_offset value.  The display would sit and spin for a *long* time
trying to wind it's way up to this large value.

22 years agoFix a compiler warning.
curt [Mon, 4 Mar 2002 19:59:50 +0000 (19:59 +0000)]
Fix a compiler warning.

22 years agoFix a visibility condition bug in 3d panel.
curt [Mon, 4 Mar 2002 19:59:22 +0000 (19:59 +0000)]
Fix a visibility condition bug in 3d panel.

22 years agoThis patch creates a sample manager next to the sound manager. The
curt [Mon, 4 Mar 2002 16:03:11 +0000 (16:03 +0000)]
This patch creates a sample manager next to the sound manager. The
difference between the two is this: A sample is file related and sound
is a authonomus entity. This means you can have several sounds pointing
to a single sample. In that case, just one sample is loaded into memory.
The advantage is you can play the same sample with different pitch or
volume, but with just one  sample loaded into memory.

To fully support this there is a new fucntion call:

    FGSimpleSound *sample = new FGSimpleSound("filename");
    mgr->add(sample, "name");

should be replaced by:

    FGSimpleSound *sample = mgr->add("name", "filename");

But the old behaviour is still supported with one minor change, sounds
with the same name aren't supported anymore.

Erik

22 years agoFixed a couple compiler warnings.
curt [Mon, 4 Mar 2002 15:46:44 +0000 (15:46 +0000)]
Fixed a couple compiler warnings.

22 years agoPatch from Andy Ross:
david [Mon, 4 Mar 2002 13:27:53 +0000 (13:27 +0000)]
Patch from Andy Ross:

Actually, I think I'm off the hook here; the problem is pre-existing.
What's happening is that the x/y offsets enter the modelview matrix at
line 346 in the current panel.cxx.  But note that the same
transformation also occurs before each instrument rendered at line
403.  What's happening is that the instruments are double-translated
relative to the background.

Unless I'm not understanding something, the one inside the instrument
render loop looks unnecessary.  Removing it fixes the issue and
doesn't cause any bugs that I can find.  It also fixes a bug where you
could scroll the instruments on top of the 3D panel, where the offsets
are supposed to be ignored. :)

Attached is a new panel.cxx which fixes that bug, and substantially
simplifies the virtual panel code (the matrix inversion that I thought
was needed wasn't, but there were some offsetting scale bugs that hid
the problem).

22 years agoExport the gear compression to the property tree.
andy [Mon, 4 Mar 2002 07:57:43 +0000 (07:57 +0000)]
Export the gear compression to the property tree.

22 years agoFurther modifications and restructuring of the scenery loading process.
curt [Mon, 4 Mar 2002 02:36:06 +0000 (02:36 +0000)]
Further modifications and restructuring of the scenery loading process.

22 years agoAdd fake control-surface positions for 3D model animation.
david [Mon, 4 Mar 2002 01:28:17 +0000 (01:28 +0000)]
Add fake control-surface positions for 3D model animation.

22 years agoPatch from Jim Wilson:
david [Mon, 4 Mar 2002 01:05:59 +0000 (01:05 +0000)]
Patch from Jim Wilson:

Property sort now leaves "." and ".." at top of subdirectory list in their
expected sequence.

22 years agoPatch from Jim Wilson:
david [Mon, 4 Mar 2002 00:03:25 +0000 (00:03 +0000)]
Patch from Jim Wilson:

These changes add to the "Add Waypoint" dialog so that you can see the entire
list in the pui dialog that you are adding to.  Also made some minor changes
so that the autopilot is now activated (toward first waypoint target heading)
when a waypoint is added.

22 years agoFurther restructuring of the scenery loading code.
curt [Sun, 3 Mar 2002 23:20:55 +0000 (23:20 +0000)]
Further restructuring of the scenery loading code.

22 years agoAdded write-all parameter to save command. If set to true, the
david [Sun, 3 Mar 2002 22:48:40 +0000 (22:48 +0000)]
Added write-all parameter to save command.  If set to true, the
command will save *all* properties, rather than just those marked as
archivable.  This feature was requested by Tony Peden to make it
easier to write documentation on the properties, but it should also be
useful for debugging.  There is currently no default binding for the
command with the write-all parameter set to true.

22 years agoAdded final newline to prevent compiler warnings.
david [Sun, 3 Mar 2002 22:47:06 +0000 (22:47 +0000)]
Added final newline to prevent compiler warnings.

22 years agoUpdates to the scenery loading infrastructure to make it more flexible,
curt [Sun, 3 Mar 2002 20:29:31 +0000 (20:29 +0000)]
Updates to the scenery loading infrastructure to make it more flexible,
clean up some messiness, and lay more groundwork for runway lighting.

22 years agoAdded magnetos and starter to structure
curt [Sun, 3 Mar 2002 20:27:56 +0000 (20:27 +0000)]
Added magnetos and starter to structure

22 years agoErik Hofman's documentation for sound configuration, updated and moved
david [Sun, 3 Mar 2002 02:07:21 +0000 (02:07 +0000)]
Erik Hofman's documentation for sound configuration, updated and moved
from the base package.

22 years agoLogging cleanups from Martin Dressler.
david [Sun, 3 Mar 2002 00:38:56 +0000 (00:38 +0000)]
Logging cleanups from Martin Dressler.

22 years agoVirtual cockpit patches from Andy Ross:
david [Sun, 3 Mar 2002 00:06:24 +0000 (00:06 +0000)]
Virtual cockpit patches from Andy Ross:

What the attached patch does is map your panel definition onto a (non
z-buffered) quad in front of your face.  You can twist the view around
and see it move in the appropriate ways.

Apply the patch (let me know if folks need help with that step), and
then set the /sim/virtual-cockpit property to true.  You can do this
on the command line with --prop:/sim/virtual-cockpit=1, or via the
property picker.  Bind it to a key for fast toggling if you like.

The default bindings don't allow for "panning" the view, so you'll
have to modify yours.  These are the mappings to my joystick's hat
switch, for those who need hints:

   <axis n="6">
    <desc>View Direction</desc>
    <low>
     <repeatable>true</repeatable>
     <binding>
      <command>property-adjust</command>
      <property>/sim/view/goal-offset-deg</property>
      <step type="double">1.0</step>
     </binding>
    </low>
    <high>
     <repeatable>true</repeatable>
     <binding>
      <command>property-adjust</command>
      <property>/sim/view/goal-offset-deg</property>
      <step type="double">-1.0</step>
     </binding>
    </high>
   </axis>

   <axis n="7">
    <desc>View Elevation</desc>
    <low>
     <repeatable>true</repeatable>
     <binding>
      <command>property-adjust</command>
      <property>/sim/view/goal-tilt-deg</property>
      <step type="double">1.0</step>
     </binding>
    </low>
    <high>
     <repeatable>true</repeatable>
     <binding>
      <command>property-adjust</command>
      <property>/sim/view/goal-tilt-deg</property>
      <step type="double">-1.0</step>
     </binding>
    </high>
   </axis>

While the current implementation is happy with just plastering the
panel's notion of "screen" into the 3D world, this is actually more
general.  Each panel can, in principle, have it's own coordinate
system, and you could build a cockpit out of a bunch of them.  The
mapping is specified by providing a 3D coordinate for three corners of
the quad the panel should be mapped to; this should be pretty simple
to work with.

All that's needed for a perfectly general solution is a convention on
where to store the information (a cockpit xml file, or put it in the
aircraft -set file, or...), and some work on the panel's coordinate
system conventions (some of which don't coexist very nicely with a
generalized 3D environment).  Combine that with a plib model for the
non-panel interior of the cockpit, and we're golden.

I'm actually really pleased with this.  It worked better and more
quickly than I could have imagined, and impact on the surrounding code
is quite light -- a few property tests only.  But some stuff is still
missing:

+ No equivalent work was done to the HUD, so it still displays
   incorrect headings when the view changes.  The use of pixel
   coordinates deep in the HUD code is going to give me fits doing the
   port, I sure.  It's not nearly so well put together as the panel
   (where I just changed the setup code -- none of the rendering code
   changed at all).

+ I forgot that the panel was clickable. :)  Input events still have
   the screen coordinates, which essentially kills the interactivity
   when in virtual cockpit mode.  This won't be hard to fix; it's only
   broken because I forgot the feature existed.

And one note about the implementation choice: to get away from the
inevitable near clip plane issue, the virtual cockpit renderer simply
disables the z buffer.  This means that cockpits built using these
panels need to be z-sorted, which isn't too hard since they are static
geometry.  It also means that no two "virtual panels" can ever be
allowed to interpenetrate.  No biggie.

22 years agoFor property-scale, apply the squared option before factor, etc.
david [Sat, 2 Mar 2002 19:40:26 +0000 (19:40 +0000)]
For property-scale, apply the squared option before factor, etc.

22 years agoAdded min/max parameters to clamp range of movement. These are
david [Sat, 2 Mar 2002 16:07:42 +0000 (16:07 +0000)]
Added min/max parameters to clamp range of movement.  These are
actually very powerful when combined with factor and offset -- for
example, on the C310 model the nose wheel can now retract completely
before the doors start closing.

22 years agoFixed gear position property.
tony [Fri, 1 Mar 2002 20:56:15 +0000 (20:56 +0000)]
Fixed gear position property.

22 years agoSetting up some more ground work for lighting.
curt [Fri, 1 Mar 2002 18:08:30 +0000 (18:08 +0000)]
Setting up some more ground work for lighting.

22 years agoAttached is a reasonably large patch to add a proper ATC
curt [Fri, 1 Mar 2002 17:39:52 +0000 (17:39 +0000)]
Attached is a reasonably large patch to add a proper ATC
subsystem to Flightgear.  No more functionality is implemented
than at present (apart from an ATIS bug-fix - station wouldn't
change if the radio was switched directly from one station to
another) but it is much neater than the current hack and should be
easily extendable.

Some cruft is still probably left over in radiostack.[ch]xx such as
the bindings to the comm frequencies but I'll leave removing those
until I'm sure they're not needed there.

22 years agoThis is the change where autopilot bindings are moved from fg_props.cxx to
curt [Fri, 1 Mar 2002 16:54:50 +0000 (16:54 +0000)]
This is the change where autopilot bindings are moved from fg_props.cxx to
newauto.cxx.  Basically everything is the same functionally except for a
changed in the initial altitude setting to 3000ft instead of meters (the panel
is in feet).

22 years agoChanged -pct properties to -norm
tony [Fri, 1 Mar 2002 12:38:37 +0000 (12:38 +0000)]
Changed -pct properties to -norm

22 years agoAdded a property output feature to ControlMap that allows arbitrary binding
andy [Fri, 1 Mar 2002 06:47:28 +0000 (06:47 +0000)]
Added a property output feature to ControlMap that allows arbitrary binding
and scaling of control values to properties.  Also added a time interpolation
feature that replaces the hacked-in "retract-time" feature for the gear in
a more general way (applicable to flaps, too!).  Incompatibly breaks
the XML syntax; get new files!

22 years agoLatest version of hitlist.cxx from Norman Vine:
curt [Thu, 28 Feb 2002 23:59:28 +0000 (23:59 +0000)]
Latest version of hitlist.cxx from Norman Vine:
- Addresses some ot the recent profiling results.
- Added a 'lazy evaluation' in IntersectBranch and inlined a couple
  of HEAVILY called functions.

22 years agoCopy normalized control surface positions to property tree
tony [Thu, 28 Feb 2002 13:32:40 +0000 (13:32 +0000)]
Copy normalized control surface positions to property tree

22 years agoAdd support for normalized control surface positions and right and left ailerons
tony [Thu, 28 Feb 2002 13:31:56 +0000 (13:31 +0000)]
Add support for normalized control surface positions and right and left ailerons

22 years agoAdd support for normalized control surface positions
tony [Thu, 28 Feb 2002 13:30:25 +0000 (13:30 +0000)]
Add support for normalized control surface positions

22 years agoA few of Norman's changes I managed to get in.
curt [Thu, 28 Feb 2002 00:10:35 +0000 (00:10 +0000)]
A few of Norman's changes I managed to get in.
Added support for arrays of points (in addition to various forms of triangles)

22 years agoA single transformation can now be applied to more than one object by
david [Wed, 27 Feb 2002 20:32:24 +0000 (20:32 +0000)]
A single transformation can now be applied to more than one object by
including multiple <object-name> entries.

22 years agoMake sure when setting autopilot heading via the menu that the current
curt [Wed, 27 Feb 2002 18:05:17 +0000 (18:05 +0000)]
Make sure when setting autopilot heading via the menu that the current
heading value is presented between 0 and 360.

22 years agoMajor sound-effect architectural reworking from Eric Hofman, allowing
david [Wed, 27 Feb 2002 15:13:58 +0000 (15:13 +0000)]
Major sound-effect architectural reworking from Eric Hofman, allowing
individual aircraft to have different sounds (and cleaning up my code
a fair bit).  The most important user-visible change is the renaming
of the /sim/sound property to /sim/sound/audible.

22 years agoIgnore gmon.out, in case people are doing profiling runs.
david [Wed, 27 Feb 2002 14:59:04 +0000 (14:59 +0000)]
Ignore gmon.out, in case people are doing profiling runs.

22 years agoPatch from Andy Ross to sort properties in browser.
david [Wed, 27 Feb 2002 14:58:18 +0000 (14:58 +0000)]
Patch from Andy Ross to sort properties in browser.

22 years ago- added an 'offset' parameter for animations (it's applied before
david [Wed, 27 Feb 2002 12:46:38 +0000 (12:46 +0000)]
- added an 'offset' parameter for animations (it's applied before
  'factor')

- incorporated changes from Norman Vine to avoid expensive matrix
  operations

22 years agoWrong sense in the pilot acceleration coordinates (or maybe it's a panel
andy [Wed, 27 Feb 2002 08:24:37 +0000 (08:24 +0000)]
Wrong sense in the pilot acceleration coordinates (or maybe it's a panel
bug?  I'm not sure what points where anymore).

22 years agoAdded a post-solver "initEngines()" call to return the engines to a sane
andy [Wed, 27 Feb 2002 00:41:57 +0000 (00:41 +0000)]
Added a post-solver "initEngines()" call to return the engines to a sane
initial state.  No more starting up at cruise RPM.

22 years agoBasically complete support for piston engine startup, including power loss
andy [Wed, 27 Feb 2002 00:18:57 +0000 (00:18 +0000)]
Basically complete support for piston engine startup, including power loss
due to single-magneto operation.  Seems to work.

22 years agoTrimming in turn now works
tony [Tue, 26 Feb 2002 22:28:41 +0000 (22:28 +0000)]
Trimming in turn now works

22 years agoOutput control positions to properties
tony [Tue, 26 Feb 2002 22:27:42 +0000 (22:27 +0000)]
Output control positions to properties

22 years agoAdded rotation animations, and a factor parameter for scaling.
david [Tue, 26 Feb 2002 14:30:04 +0000 (14:30 +0000)]
Added rotation animations, and a factor parameter for scaling.

22 years agoStarted support for animations. Currently, the only supported type
david [Tue, 26 Feb 2002 00:10:06 +0000 (00:10 +0000)]
Started support for animations.  Currently, the only supported type
(other than "none") is "spin", which must be tied to a property giving
a value in RPM.  This gets the DC-3 propellers turning.  The next type
will be "rotation", which will allow the flaps, elevators, ailerons,
and rudders to move (and even gear, eventually).  Later, I'll add
"shift" for sliding things around, and will figure something out for
blinking lights.

22 years agoIf the model path specified ends with .xml, then read properties from
david [Mon, 25 Feb 2002 20:07:34 +0000 (20:07 +0000)]
If the model path specified ends with .xml, then read properties from
the XML file, including the path to the 3D file.

This change obsoletes the existing /sim/model/*-offset-deg and
/sim/model/*-offset-m properties in the main property tree, and
replaces them with /offsets/*-deg and /offsets/*-m in the model
property file.  The /path property in the model XML file is relative
to the XML file's location rather than FG_ROOT.

22 years agoMoved JSBSim.hxx to src/FDM/JSBSim/
curt [Mon, 25 Feb 2002 03:22:03 +0000 (03:22 +0000)]
Moved JSBSim.hxx to src/FDM/JSBSim/

22 years agoRemoved JSBSim/tests
curt [Mon, 25 Feb 2002 00:07:05 +0000 (00:07 +0000)]
Removed JSBSim/tests

22 years agoWorkaround for terrain altitude problem. Helps but doesn't work 100%
tony [Sun, 24 Feb 2002 21:56:38 +0000 (21:56 +0000)]
Workaround for terrain altitude problem.  Helps but doesn't work 100%

22 years agoRemoved orphaned 10520d engine modeling code. Thanks goes to Phil
curt [Sun, 24 Feb 2002 21:41:02 +0000 (21:41 +0000)]
Removed orphaned 10520d engine modeling code.  Thanks goes to Phil
Schubert for getting the ball rolling with engine modeling in
flightgear.  The existing engine modeling code is derived from
his initial efforts.

22 years agoFixed crash when using 3D model other than the C172.
david [Sun, 24 Feb 2002 21:14:38 +0000 (21:14 +0000)]
Fixed crash when using 3D model other than the C172.

22 years agoMoved to tests subdirectory.
curt [Sun, 24 Feb 2002 21:01:11 +0000 (21:01 +0000)]
Moved to tests subdirectory.

22 years agoMoved to JSBSim subdirectory.
curt [Sun, 24 Feb 2002 20:54:23 +0000 (20:54 +0000)]
Moved to JSBSim subdirectory.

22 years agoMoved JSBSim.cxx and JSBSim.hxx into src/FDM/JSBSim subdirectory
curt [Sun, 24 Feb 2002 20:53:46 +0000 (20:53 +0000)]
Moved JSBSim.cxx and JSBSim.hxx into src/FDM/JSBSim subdirectory
(similar to how YASim is setup.)

22 years agoSeparated 3D model-handling code from main.cxx out into its own
david [Sat, 23 Feb 2002 21:20:00 +0000 (21:20 +0000)]
Separated 3D model-handling code from main.cxx out into its own
subsystem, FGAircraftModel.

22 years agoAdded an #ifdef for compiling without --with-new-environment. Thanks
david [Sat, 23 Feb 2002 04:50:47 +0000 (04:50 +0000)]
Added an #ifdef for compiling without --with-new-environment.  Thanks
to Tony Peden for the catch.

22 years agoGeneral cleanups to cut cross-dependencies and speed up compilation.
david [Fri, 22 Feb 2002 23:37:45 +0000 (23:37 +0000)]
General cleanups to cut cross-dependencies and speed up compilation.

Added two new properties:

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

These are now supported in FGEnvironment as well, though they always
have the same value for now.  They need to be hooked up to the FDMs.

22 years agoAdded FGEnvironmentMgr to provide information on the environment in
david [Fri, 22 Feb 2002 22:51:34 +0000 (22:51 +0000)]
Added FGEnvironmentMgr to provide information on the environment in
different locations, and hitched it into FGGlobals.  FGEnvironmentMgr
has taken over as the subsystem, while FGEnvironment is simple the
information that it returns.  I've removed current_environment
completely -- everything now uses properties or goes through
FGGlobals.  FGGlobals itself has a couple of useful methods:

  const FGEnvironment * get_environment ();
  const FGEnvironment * get_environment (double lat, double lon, double alt);

The first one returns the environment data for the plane's current
position, while the second returns the environment data for any
arbitrary location.  Currently, they both return the same information,
but that will change soon.