]> git.mxchange.org Git - flightgear.git/log
flightgear.git
19 years agoAdd a *really* crude model of ITT, Oil Temp, and Oil Pressure. This
curt [Tue, 23 Nov 2004 21:35:30 +0000 (21:35 +0000)]
Add a *really* crude model of ITT, Oil Temp, and Oil Pressure.  This
currently just returns a lagged normalized value in the range of 0-1 that
is proportional to N1.  It's up to the engine gauge to scale to the right
range.  This is for lack of a real model of these items so we can have
something to drive the engine gauges.

19 years agoMathias Fröhlich:
ehofman [Mon, 22 Nov 2004 10:10:33 +0000 (10:10 +0000)]
Mathias Fröhlich:

I have now split out the ground cache functions into src/FDM/groundcache.[ch]xx
Attached are the two files and the patch to integrate that cache into
FGInterface.

The code is nowhere used at the moment, the fdm's need to be updated to use
that ground cache. The JSBSim-dropin.tar.gz from Martins ftp server does this
for example.

The carrier's scenegraph is not yet processed to be visible for ground
intersection testing. So the only benefit up to now is that the api is set
up. Using this I can put the changes to make JSBSim work with that into
JSBSim's cvs. Also I aim to provide Andy a patch to make use of that with
YASim.

19 years agoMore FreeBSD fixes ... add -lusbhid where needed.
curt [Sun, 21 Nov 2004 03:15:19 +0000 (03:15 +0000)]
More FreeBSD fixes ... add -lusbhid where needed.

19 years agoMelchior FRANZ:
ehofman [Sat, 20 Nov 2004 13:04:26 +0000 (13:04 +0000)]
Melchior FRANZ:

Use a suggested exit method as described in the SDL_Quit man page. (fgOSExit() is still uncalled in both fg_os.cxx (glut) and fg_os_sdl.cxx, which makes these functions kind-of useless.) The other changes are fixes for gcc 3.3.4 warnings.

19 years agoMacOS X fix.
ehofman [Sat, 20 Nov 2004 12:47:42 +0000 (12:47 +0000)]
MacOS X fix.

19 years agoAdd some missing bits from Mathias' carrier code.
ehofman [Sat, 20 Nov 2004 12:44:42 +0000 (12:44 +0000)]
Add some missing bits from Mathias' carrier code.

19 years agoVarious property name changes relating to moving the kr-87 adf to
curt [Fri, 19 Nov 2004 23:56:12 +0000 (23:56 +0000)]
Various property name changes relating to moving the kr-87 adf to
/instrumentation

19 years agoRoy Ovesen: remove src files from Cockpit and move them over to Instrumentation.
curt [Fri, 19 Nov 2004 23:10:44 +0000 (23:10 +0000)]
Roy Ovesen: remove src files from Cockpit and move them over to Instrumentation.

19 years agoChanges by Roy Ovesen to begin migrating the avionics out of the Cockpit
curt [Fri, 19 Nov 2004 23:01:34 +0000 (23:01 +0000)]
Changes by Roy Ovesen to begin migrating the avionics out of the Cockpit
directory and over to the Instrumentation directory and make them modular
in the sense of being able to pick and choose what you include with any
particular aircraft.

19 years agoFix my mailing address by replacing it with my web page.
curt [Fri, 19 Nov 2004 22:10:41 +0000 (22:10 +0000)]
Fix my mailing address by replacing it with my web page.

19 years agoI have added Aaron Wilson's virtual 3d runway projection to the HUD.
curt [Fri, 19 Nov 2004 18:31:02 +0000 (18:31 +0000)]
I have added Aaron Wilson's virtual 3d runway projection to the HUD.
Aaron says:

I just got the virtual runway hud projection working on all views and
2D & 3D HUDs.  It is working awesome(see below).  I have attached every
file that was modified (hud.hxx, hud.cxx, and the default.xml for the hud)
and every file that was added (hud_rwy.cxx and runwayinstr.xml).

Just a quick overview of how the instrument works.

The virtual runway is projected by getting the "cockpit view" of the
runway in 3D and projecting the points on to the 2D HUD.  Therefore, the
virtual runway will be displayed the same in every view.  For example,
you can land an aircraft from the "Tower View" by flying the HUD.  Also
if you're in "Cockpit View" and it is centered then the virtual runway
lines will perfectly outline the actual runway.  I am getting the active
runway via the wind like done in the ATC classes, which may need changed.
Also, I made the assumption the view 0, in view manager, is always the
cockpit view, which may need changed as well.

The runway configuration file will allow you to specify a center offset
(x,y) and a bounding box (width,height).  You can also configure the line
stipple pattern for the outside and the center line.  For instance, if
you wanted a 0xFAFA pattern, then specify 64250 as the value.  If you
want a solid line, you can specify -1 or 65535 (0xFFFF) and zero will
turn the line off.  It also draws a runway indication arrow when the
runway is not in the HUD or it can be drawn all the time if arrow_always
is true.  The arrow will point in the direction of the runway (2D) by
rotating around the center  at a radius of arrow_radius.  If you wish to
turn the arrow off, you must set the arrow_scale <=0.  The arrow really
should be 3D arrow that points to the runway (or points in the direction
of the aircraft-to-runway vector).

19 years agoMathias FröhlichMathias Fröhlich:
ehofman [Fri, 19 Nov 2004 12:33:53 +0000 (12:33 +0000)]
Mathias FröhlichMathias Fröhlich:

Add some controls required for carrier operations:

/controls/gear/launchbar

should be 1.0 if the launchbar is lowered, that means the aircraft should now
be arrested at the catapult.

/controls/gear/catapult-launch-cmd

Should be set to 1.0 when the aircraft should be launched from tha catapult.

19 years agoMathias Fröhlich:
ehofman [Fri, 19 Nov 2004 12:33:08 +0000 (12:33 +0000)]
Mathias Fröhlich:

The moving ai models will jump around realtive to the moving aircraft model.
I can see that with the carrier but others have noticed that too with ai
aircraft before.
The reason is that all SGSystems are called with a dt value which is not
necessarily a multiple of 1/hz.
In contrast, most FDM's use the _calc_multiloop function from FGInterface
which forces the time update to be a multiple of 1/hz for the FDM aircraft.
As a result, in the worst case, the FDM aircraft has moved nearly 1/hz seconds
further than the rest of flightgear (1/120sec*300kts that is about 1.3m).
That patch forces the time update to be a multiple of 1/hz.

19 years agoMigrate FlightGear code to use "#include SG_GL*" defined in
curt [Thu, 18 Nov 2004 19:53:00 +0000 (19:53 +0000)]
Migrate FlightGear code to use "#include SG_GL*" defined in
"#include <simgear/compiler.h>".

19 years agoThis code is written on top of a driver interface only available with linux
curt [Thu, 18 Nov 2004 17:40:03 +0000 (17:40 +0000)]
This code is written on top of a driver interface only available with linux
(/proc file system) so it doesn't make sense to have other OS's trying to
open these files because they could never exist.

19 years ago- ATC-Inputs.cxx: Fix some portability problems for non-linux operating
curt [Thu, 18 Nov 2004 05:04:35 +0000 (05:04 +0000)]
- ATC-Inputs.cxx: Fix some portability problems for non-linux operating
  systems.  Fix a couple bugs/oversights.

- atc610x.cxx: Much code has moved into the configurable input mapper
  (ATC-Inputs.cxx) and the remaining input massaging code has moved into
  the atcsim.nas module.

19 years agoTweak the atcsim command line interface.
curt [Thu, 18 Nov 2004 05:01:19 +0000 (05:01 +0000)]
Tweak the atcsim command line interface.

19 years agoMinor white space fix.
curt [Thu, 18 Nov 2004 05:00:44 +0000 (05:00 +0000)]
Minor white space fix.

19 years agoAdd a local copy of the nasal documentation.
curt [Wed, 17 Nov 2004 02:54:04 +0000 (02:54 +0000)]
Add a local copy of the nasal documentation.

19 years agoGet rid of a stray character that must have introduced itself with my random
curt [Tue, 16 Nov 2004 19:48:42 +0000 (19:48 +0000)]
Get rid of a stray character that must have introduced itself with my random
keyboard fumbling.

19 years agoRemove some changes I had put in to make it compile. those are no longer needed.
ehofman [Tue, 16 Nov 2004 19:48:09 +0000 (19:48 +0000)]
Remove some changes I had put in to make it compile. those are no longer needed.

19 years agoBegin work on revamping the ATC hardware interface so it is infinitely more
curt [Tue, 16 Nov 2004 19:47:11 +0000 (19:47 +0000)]
Begin work on revamping the ATC hardware interface so it is infinitely more
configurable.

19 years agocommit some pending updates from Vivian
ehofman [Tue, 16 Nov 2004 09:33:21 +0000 (09:33 +0000)]
commit some pending updates from Vivian

19 years agoMelchior caught a missing return value that is now an error on newer gcc versions
andy [Mon, 15 Nov 2004 18:15:33 +0000 (18:15 +0000)]
Melchior caught a missing return value that is now an error on newer gcc versions

19 years agoRoy Vegard Ovesen:
ehofman [Sat, 13 Nov 2004 15:00:00 +0000 (15:00 +0000)]
Roy Vegard Ovesen:

We have decided that hardcoded initialization of instruments and systems is
bad. So we remove them.

Hardcoded initialization is bad because it can't be overridden from config
files or from the command line. We prefer to do it through config files that
should be, eventually, aircraft specific (*-set.xml), not global
(preferences.xml).

19 years agoVivian Meazza:
ehofman [Sat, 13 Nov 2004 14:45:57 +0000 (14:45 +0000)]
Vivian Meazza:

I attach the latest version  of Nimitz. The textures have been improved. A glide-path has been added, it is on by default, but can be switched off by means of the properties browser: /ai/models/ship/controls/glide-path. The origin has been adjusted to the turning pivot and approximate roll center.

Modified AiShip files are also attached. These allow the radius of the turning circle of a ship to be input. The turning circle is adjusted for speed and rudder angle. Roll has been corrected so that a ship leans out of a turn, not inwards like an aircraft. The roll angle is adjusted for speed and rudder angle (yes, application of more rudder reduces roll angle - rudders act as stabilizers).

TODO

Add a relative wind calculation so that a carrier can be turned to the appropriate launch and recovery courses.

Add a 'flight plan' so that the carrier can carry out a racetrack for flight ops.

Add a projector landing sight.

Add auto-land facilities.

19 years agoReverted last changes, because they caused needle flips near 0.
david [Wed, 10 Nov 2004 20:01:28 +0000 (20:01 +0000)]
Reverted last changes, because they caused needle flips near 0.

19 years agoMelchior FRANZ:
ehofman [Mon, 8 Nov 2004 17:41:30 +0000 (17:41 +0000)]
Melchior FRANZ:

The caption should already be set when the window is opened. This is
important for some window managers. (KDE's kwin, for example, can store
special settings for certain windows, such as "no border" and "always
on top". KDE uses the window title to determine if a special rule is
to be applied. KDE will be made more tolerant, too.)

19 years agoDavid Culp:
ehofman [Sun, 7 Nov 2004 14:46:21 +0000 (14:46 +0000)]
David Culp:

Here are files to get automated contrails working.  I've set up contrails for
the 737, using my simple, untextured contrail model.  Vivian has made another
contrail model, but I'm still trying to get his to work.  I'm hoping others
will try to make contrail models also.

Here's some code that defines a top to thermals.  When the top of a thermal is
reached the strength is phased-out linearly over the next 100 feet of
altitude.  At first I tried just capping the thermal at the top, but the
change in thermal strength was too fast for the FDM to handle well.

Included is a new version of the thermal scenario that includes a top
(height-msl) to the thermal.  The default value is 5000 feet.

19 years agoMSVC fix.
ehofman [Sun, 7 Nov 2004 14:23:48 +0000 (14:23 +0000)]
MSVC fix.

19 years agoUse angular momentum so that the compass can overshoot and oscillate
david [Sat, 6 Nov 2004 16:23:18 +0000 (16:23 +0000)]
Use angular momentum so that the compass can overshoot and oscillate
before settling.

19 years agoFixed typo that prevented DME groundspeed display.
david [Sat, 6 Nov 2004 16:22:17 +0000 (16:22 +0000)]
Fixed typo that prevented DME groundspeed display.

19 years agoMinor code clean-up.
david [Sat, 6 Nov 2004 16:21:41 +0000 (16:21 +0000)]
Minor code clean-up.

19 years agoAdded acceleration error to compass (most obvious during heavy braking
david [Fri, 5 Nov 2004 00:18:58 +0000 (00:18 +0000)]
Added acceleration error to compass (most obvious during heavy braking
on the ground) -- this is based on some wild guesses, but it seems
reasonable for now.

The next step will be to give the compass some angular momentum so
that it does not snap instantly to a heading, and so that it can
overshoot a heading and oscillate.

19 years agoAdd errors for pitch, based on a modified equation contributed by
david [Thu, 4 Nov 2004 02:24:46 +0000 (02:24 +0000)]
Add errors for pitch, based on a modified equation contributed by
Chris Metzler.

19 years agoBegin a rewrite of the magnetic compass code. So far, only northerly
david [Wed, 3 Nov 2004 15:59:49 +0000 (15:59 +0000)]
Begin a rewrite of the magnetic compass code.  So far, only northerly
turning error is supported, and I don't know if this works properly in
the southern hemisphere.

19 years agoBegin a rewrite of the magnetic compass code. So far, only northerly
david [Wed, 3 Nov 2004 15:15:32 +0000 (15:15 +0000)]
Begin a rewrite of the magnetic compass code.  So far, only northerly
turning error is supported, and I don't know if this works properly in
the southern hemisphere.

19 years agoMake FlightGear work with 16bpp:
david [Wed, 3 Nov 2004 04:18:27 +0000 (04:18 +0000)]
Make FlightGear work with 16bpp:

1. Check that SDL actually initializes successfully and sets up its
   video mode.

2. Do not try to enable stencil in 16bpp.

19 years agoMake separate left/right flap surface positions in the net_fdm.hxx
curt [Fri, 29 Oct 2004 00:13:32 +0000 (00:13 +0000)]
Make separate left/right flap surface positions in the net_fdm.hxx
structure for future use.  Right now they are tied together.

19 years agogcc fixes.
ehofman [Thu, 28 Oct 2004 11:03:15 +0000 (11:03 +0000)]
gcc fixes.

19 years agoBoris Koenig:
ehofman [Thu, 28 Oct 2004 09:37:21 +0000 (09:37 +0000)]
Boris Koenig:

After applying the attached patches (based on latest CVS) you should
have a new option available within your version that should also
show up using fgfs --help, the syntax is:

    fgfs --min-status={level} --show-aircraft

whereas "level" can be anything between

    "alpha","beta","early-production" and "production"

Of course running something like

    fgfs --min-status=alpha --show-aircraft

should not return any aircraft right now, as none of the
current aircraft definition files in your base-package is using the
required

    <status></status>

tag - but you can easily give it a try by adding something like

    <status>alpha</status>

The tag should be placed as a sub-tag within <sim> - so directly behind
the <description> tag would be just fine and straight-forward.

19 years agoMove the submodels from the /systems proprty subtree into /ai instead.
ehofman [Thu, 28 Oct 2004 08:44:24 +0000 (08:44 +0000)]
Move the submodels from the /systems proprty subtree into /ai instead.

19 years agoDavid Culp:
ehofman [Thu, 28 Oct 2004 08:33:55 +0000 (08:33 +0000)]
David Culp:

Here's code to support a new AICarrier class, which I think will be
sufficiently different from a basic AIShip that it should have its own class.

19 years agoVivian Meazza:
ehofman [Thu, 28 Oct 2004 08:29:15 +0000 (08:29 +0000)]
Vivian Meazza:

As a result of recent requests, I've implemented the ability to switch off
aerodynamic stabilisation:

This has to be added to the submodel.xml files:

<aero-stabilised>false</aero-stabilised>

When false the submodel retains the pitch given at instantiation.

It defaults to true.

19 years agoFix some warnings.
ehofman [Tue, 26 Oct 2004 12:09:31 +0000 (12:09 +0000)]
Fix some warnings.

19 years agoRoy Vegard Ovesen:
ehofman [Tue, 26 Oct 2004 12:06:45 +0000 (12:06 +0000)]
Roy Vegard Ovesen:

I've made an encoder and a transponder. The transponder gets C-Mode altitude
information from the encoder. These two might not be very usefull right now,
but I think they might come in handy when the ATC network gets going.

19 years agoMelchior FRANZ:
ehofman [Sun, 24 Oct 2004 14:45:52 +0000 (14:45 +0000)]
Melchior FRANZ:

input.cxx allocates memory for js->getNumAxes() axes and for jsCaps.wNumButtons
or MAX_JOYSTICK_BUTTONS buttons per joystick. But it doesn't check if some
xml config defines bindings for more axes/buttons, in which case it writes
to unallocated memory and causes crashes. This is a real world example:
sidewinder-force-feed-pro.xml defines 7 axes, but only newer versions of
this js do actually have that many. Older ones (-> gameport) don't. The patch
drops unused and unusable bindings.

19 years agoRoy Vegard Ovesen:
ehofman [Sun, 24 Oct 2004 11:05:14 +0000 (11:05 +0000)]
Roy Vegard Ovesen:

I've added two new debug log types for the instrumentation and systems. They
used to use the autopilot debug log, because I couldn't figure out how to
make new log types. Well, now I have figured it out.  ;-)

19 years agoAdd loadxml/savexml commands and textbox gui dialog.
ehofman [Sun, 24 Oct 2004 09:26:00 +0000 (09:26 +0000)]
Add loadxml/savexml commands and textbox gui dialog.

19 years agoAdd commands to load and save property (sub)trees from or to an XML file.
ehofman [Sun, 24 Oct 2004 09:13:17 +0000 (09:13 +0000)]
Add commands to load and save property (sub)trees from or to an XML file.

19 years agoMove the submodels code from the Systems manager into it's own Subsystem manager.
ehofman [Fri, 22 Oct 2004 09:58:24 +0000 (09:58 +0000)]
Move the submodels code from the Systems manager into it's own Subsystem manager.

19 years agoBoris Koenig:
ehofman [Fri, 22 Oct 2004 09:26:51 +0000 (09:26 +0000)]
Boris Koenig:

This will modify menubar.cxx/hxx so that it exports the
entire menubar (from menubar.xml) to the property tree, so that it can
now be changed dynamically  using Nasal's setprop() instruction and
afterwards running a newly added fgcommand to update the menubar
based on those changes using the appropriate menubar path within
the property tree.

By default the menubar from menubar.xml will be stored within:

    /sim/menubar/default

Erik:

I have moved the loading of menubar.xml into preferences.xml and
made sure that the menubar is destroyed every time a new menubar
is created.

19 years agoComment out the unalias code also.
ehofman [Thu, 21 Oct 2004 09:27:40 +0000 (09:27 +0000)]
Comment out the unalias code also.

19 years agoFrederic Bouvier:
ehofman [Thu, 21 Oct 2004 09:21:05 +0000 (09:21 +0000)]
Frederic Bouvier:

I think I found the problem in props.hxx. I have an exception when copying properties. An alias to a property that has no value trigger this exception. The code that generate that is in AIManager.cxx  :

void FGAIAircraft::bind() {
   FGAIBase::bind();

   props->tie("controls/gear/gear-down",
              SGRawValueMethods<FGAIAircraft,bool>(*this,
                                             &FGAIAircraft::_getGearDown));

   props->getNode("controls/lighting/landing-lights", true)
          ->alias("controls/gear/gear-down");
}

controls/gear/gear-down has no value ( _type == NONE ) and controls/lighting/landing-lights is copied somewhere.

Erik:

Frederic's fix was to change props.hxx but he has expressed his doubts.
For now I've commented out the line that causes the problem so we have more
time to look deeper into the problem.

cvs -z4 -q diff -u props.hxx (in directory I:\FlightGear\cvs\SimGear\simgear\props\)
Index: props.hxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/props/props.hxx,v
retrieving revision 1.4
diff -u -r1.4 props.hxx
--- props.hxx 19 Sep 2004 09:08:12 -0000 1.4
+++ props.hxx 21 Oct 2004 07:10:54 -0000
@@ -622,7 +622,7 @@
   /**
    * Test whether this node contains a primitive leaf value.
    */
-  bool hasValue () const { return (_type != NONE); }
+  bool hasValue () const { return (_type != ALIAS && _type != NONE) || (_type == ALIAS && _value.alias->_type != NONE); }

   /**

19 years agoAccelerations should be added to the velocity, not multiplied
ehofman [Wed, 20 Oct 2004 14:27:29 +0000 (14:27 +0000)]
Accelerations should be added to the velocity, not multiplied

19 years agoUse the right conversion factor and multiply the accelrations by dt.
ehofman [Wed, 20 Oct 2004 09:47:37 +0000 (09:47 +0000)]
Use the right conversion factor and multiply the accelrations by dt.

19 years agoDirectly updating the right properties doesn't work when not uing --fdm=null, create...
ehofman [Wed, 20 Oct 2004 09:21:08 +0000 (09:21 +0000)]
Directly updating the right properties doesn't work when not uing --fdm=null, create a separate branch instead.

19 years agoMelchior:
ehofman [Wed, 20 Oct 2004 08:18:29 +0000 (08:18 +0000)]
Melchior:

Don't overwrite user settings from config files.

fgfs had in any case set bump-mapping to false, no matter if this
node did already exist (because it was defined in a config file).

19 years agoFrederic:
ehofman [Wed, 20 Oct 2004 08:15:55 +0000 (08:15 +0000)]
Frederic:

compilation without ENABLE_SP_FMDS defined gave me a lot of link errors. It appeared that symbol used by ADA was still in use in the HUD.

There is also a typo from Curt in instrument_mgr.cxx where he #include "kr_87.cxx" instead of "kr_87.hxx"

19 years agoMSVC fix.
ehofman [Wed, 20 Oct 2004 08:12:55 +0000 (08:12 +0000)]
MSVC fix.

19 years agoFix the kr-87 search functionality so it works in the subsystem/instrumentation
curt [Tue, 19 Oct 2004 19:07:24 +0000 (19:07 +0000)]
Fix the kr-87 search functionality so it works in the subsystem/instrumentation
infrastructure.

19 years agoA first stab at an ACMS (Aircraft Condition Monitoring System) Special Purpose suppor...
ehofman [Tue, 19 Oct 2004 11:10:20 +0000 (11:10 +0000)]
A first stab at an ACMS (Aircraft Condition Monitoring System) Special Purpose support FDM. Move the ADA FDM into the Special Purpose directory and make the SP FDM's a configure option.

19 years agoMoved kr_87.[ch]xx and made it a configurable instrumentation item.
curt [Mon, 18 Oct 2004 19:58:37 +0000 (19:58 +0000)]
Moved kr_87.[ch]xx and made it a configurable instrumentation item.

19 years agoMove the kr_87 code over to the instrumentation directory.
curt [Mon, 18 Oct 2004 19:56:24 +0000 (19:56 +0000)]
Move the kr_87 code over to the instrumentation directory.

19 years agoDon't assign a const char* variable to the c_str() value of a temporary (local) string.
ehofman [Mon, 18 Oct 2004 13:29:16 +0000 (13:29 +0000)]
Don't assign a const char* variable to the c_str() value of a temporary (local) string.

19 years agoAdd a tad more information, although it actually might mean nothing at all.
ehofman [Sun, 17 Oct 2004 17:59:02 +0000 (17:59 +0000)]
Add a tad more information, although it actually might mean nothing at all.

19 years agoFrederic Bouvier:
ehofman [Sun, 17 Oct 2004 17:29:34 +0000 (17:29 +0000)]
Frederic Bouvier:

This is a patch to make display list usage optional. They are on by default.
Use --prop:/sim/rendering/use-display-list=false to use immediate mode.
There is also a change in exception handling in main.cxx and bootstrap.cxx

19 years agochange an emaul address.
ehofman [Sun, 17 Oct 2004 17:25:14 +0000 (17:25 +0000)]
change an emaul address.

19 years agoFrederic Bouvier:
ehofman [Sun, 17 Oct 2004 17:23:19 +0000 (17:23 +0000)]
Frederic Bouvier:

This is a patch to make display list usage optional. They are on by default.
Use --prop:/sim/rendering/use-display-list=false to use immediate mode.
There is also a change in exception handling in main.cxx and bootstrap.cxx

19 years agoRoy Vegard Ovesen:
ehofman [Sat, 16 Oct 2004 12:37:39 +0000 (12:37 +0000)]
Roy Vegard Ovesen:

Instrumentation and systems are now configureable from xml files. The two
generic configurations generic-systems.xml and generic-instrumentation.xml
configures the systems and instrumentation as it was hardcoded. You can
override the generic configurations in a similar way as you override the
autopilot configuration.

19 years agoprevent a segmentation error under certain circumstances.
ehofman [Sat, 16 Oct 2004 11:24:48 +0000 (11:24 +0000)]
prevent a segmentation error under certain circumstances.

19 years agoFix some bugs
ehofman [Fri, 15 Oct 2004 12:23:36 +0000 (12:23 +0000)]
Fix some bugs

19 years agoSet the format default to float instead of int.
ehofman [Fri, 15 Oct 2004 11:29:09 +0000 (11:29 +0000)]
Set the format default to float instead of int.

19 years agoAdd generic input support
ehofman [Fri, 15 Oct 2004 11:11:37 +0000 (11:11 +0000)]
Add generic input support

19 years agoRoy Vegard Ovesen:
ehofman [Thu, 14 Oct 2004 11:29:07 +0000 (11:29 +0000)]
Roy Vegard Ovesen:

I've put together a readme file that describes how to configure the digital
filters.

19 years agoIt's usually not a good idea to assign a const char* to a node of a temporary propert...
ehofman [Thu, 14 Oct 2004 09:49:46 +0000 (09:49 +0000)]
It's usually not a good idea to assign a const char* to a node of a temporary property tree, use string instead.

19 years agoRoy Vegard Ovesen:
ehofman [Thu, 14 Oct 2004 09:19:44 +0000 (09:19 +0000)]
Roy Vegard Ovesen:

I've added some digital filters to the autopilot. They are all low-pass
filters that filter away high frequency signals/noise. There are 4 different
filters:

1. Exponential - The algorithm is essentially the same as the one used in the
   fgGetLowPass() function.

2. Double exponential - Two exponential filters in series. This filter has a
   "steeper" frequency response curve. It filters "better" than the single
   exponential.

3. Moving average - Averages a number of inputs.

4. Noise spike - limits the amount that the output value can change from one
   sample to the next.

Filters 1 and 2 are characterised by it's filter-time in seconds. For filter 3
you have to set the number of input samples to average over. For filter 4 you
set the maximum allowed rate of change as [1/s]. Since the sampling interval
(dt) isn't constant we have to calculate the maximum allowed change for every
update.

Example of a double exponential filter with filter time 0.1 seconds, that is
1/0.1 = 10 Hz.

  <filter>
    <name>pressure-rate-filter</name>
    <debug>true</debug>
    <type>double-exponential</type>
    <input>/autopilot/internal/pressure-rate</input>
    <output>/autopilot/internal/filtered-pressure-rate</output>
    <filter-time>0.1</filter-time>
  </filter>

This would go in the autopilot configuration file.

I've also removed the filtering of the "pressure-rate" helper value, use the
new filters if you want to filter it!  ;-)

19 years agoChanges for v0.9.6
curt [Tue, 12 Oct 2004 16:18:05 +0000 (16:18 +0000)]
Changes for v0.9.6

19 years agoPLIB_VERSION is localted in plib/ul.h
ehofman [Sun, 10 Oct 2004 19:19:23 +0000 (19:19 +0000)]
PLIB_VERSION is localted in plib/ul.h

19 years agoCheck for the plib version when using display lists, just to be sure.
ehofman [Sun, 10 Oct 2004 19:06:32 +0000 (19:06 +0000)]
Check for the plib version when using display lists, just to be sure.

19 years agoFrederic: Add display list support without changing plib.
ehofman [Sun, 10 Oct 2004 17:41:11 +0000 (17:41 +0000)]
Frederic: Add display list support without changing plib.

19 years agoI forgot a linker dependency. It really si time to figure out why these are all needed.
ehofman [Fri, 8 Oct 2004 11:30:07 +0000 (11:30 +0000)]
I forgot a linker dependency. It really si time to figure out why these are all needed.

19 years agoMelchior FRANZ:
ehofman [Thu, 7 Oct 2004 20:34:56 +0000 (20:34 +0000)]
Melchior FRANZ:

As I had reported on 2004/8/4 00:02:56 ("yasim + bo105 + vrp + @#%$#@ == argh!")
there must be a bug somewhere in YASim, which is responsible for the Bo105
turning around the FDM origin (nose tip) rather than the CG. Some people assumed
that I was just another victim of the "view offset" illusion, but this wasn't
and isn't the case.

Maik Justus (the rotor man) has now supposedly found the bug in YASim[1].
Look at this code in FDM/YASim/Integrator.cpp:35--66:

19 years agoReverse the declaration order. jpgRenderFrame (form
ehofman [Wed, 6 Oct 2004 09:57:37 +0000 (09:57 +0000)]
Reverse the declaration order. jpgRenderFrame (form
erly known as trRenderFrame) is now declared as a NULL function pointer and ass
ignment of the proper function is now done in FlightGear (jpgRenderFrame=FGRend
erer::update).

19 years agoMelchior FRANZ:
ehofman [Wed, 6 Oct 2004 09:30:36 +0000 (09:30 +0000)]
Melchior FRANZ:

- don't set volume twice
- fix compiler warnings (type conversion, initialization order)
- add comment to save sndmgr()->stop from uneducated optimization
- fix inconsistent variable name

19 years agoHandle the new linker dependencies after rearranging the FlightGear header files...
ehofman [Wed, 6 Oct 2004 09:23:51 +0000 (09:23 +0000)]
Handle the new linker dependencies after rearranging the FlightGear header files a week or two ago.

19 years agoAdd Maik Justus
ehofman [Wed, 6 Oct 2004 08:30:40 +0000 (08:30 +0000)]
Add Maik Justus

19 years agoContinued work to clean up the hires screen shot code and move it back towards
curt [Wed, 6 Oct 2004 03:29:14 +0000 (03:29 +0000)]
Continued work to clean up the hires screen shot code and move it back towards
a working state.  I still see an anomoly when taking a screen shot from inside
a 3d cockpit, but external (chase/tower) views seem to work well.  I also
added a property to control how many screen-res tiles are generated in the
output.  Theoretically, you can now generate unlimited resolution screen shots,
or limited only by your disk space and patience.

Today I successfully generated a 20*1024 x 20*768 (20480x15360) resolution
screen shot.  If you rendered that at 100 dpi it would cover a poster of
about 17 feet by 12.8 feet.

Good luck trying to display something that big or convert it to anything
useful on a typical PC. :-)

19 years agoFrederic Bouvier:
ehofman [Sun, 3 Oct 2004 08:20:54 +0000 (08:20 +0000)]
Frederic Bouvier:

automatically generate config.h-msvc6 with the right version number.

This way Curt will pack the right file because it will be
generated every time he will do 'configure'.

19 years agoRestore trRenderFrame (which used to be in main.cxx before the
david [Sat, 2 Oct 2004 22:35:39 +0000 (22:35 +0000)]
Restore trRenderFrame (which used to be in main.cxx before the
split).  If SimGear is configured --with-jpeg-factory, then FlightGear
will fail to build unless this function is present.

FIXME: this is very messy architecturally -- find a better solution,
like passing this explicitly as a callback to the libJPEG class
(SimGear should not have a dependency on FlightGear).

19 years agoVivian Meazza:
ehofman [Sat, 2 Oct 2004 14:30:18 +0000 (14:30 +0000)]
Vivian Meazza:

I've made appropriate changes to Readme.submodels to reflect the
variation of Cd with Mach number.

Spitfire.submodel has been changed to use the variation of Cd with Mach
number

Submodel.cxx has been changed so that the default value of Cd is the
subsonic Cd of a non-boat tailed bullet.

19 years agoMove the calculations of Mach to the base class.
ehofman [Sat, 2 Oct 2004 13:34:06 +0000 (13:34 +0000)]
Move the calculations of Mach to the base class.

19 years agoAdd the Mach vaiable.
ehofman [Sat, 2 Oct 2004 12:05:59 +0000 (12:05 +0000)]
Add the Mach vaiable.

19 years agoVivian Meazza:
ehofman [Sat, 2 Oct 2004 12:02:04 +0000 (12:02 +0000)]
Vivian Meazza:

I've finished the variation of Cd with Mach number.
The calculations are only applicable to ballistic
objects, and then strictly one shape: non boat-tailed bullets/shells, so
I've put them in AIBallistic rather than AIBAase. For all inputs, Cd
should be the sub-sonic value, so bullets will need changing.

I've just posted a graphical analysis here:

http://myweb.tiscali.co.uk/vmeazza/FlightGear/cd_mach.pdf

19 years agoUse the Transmit-Render functions for tower output instead of directly calling ATCdis...
daveluff [Thu, 30 Sep 2004 15:43:32 +0000 (15:43 +0000)]
Use the Transmit-Render functions for tower output instead of directly calling ATCdisplay.  This is part of preparations for optionally handing the strings off to a TTS engine if required.

19 years agoBoris Koenig:
ehofman [Mon, 27 Sep 2004 14:40:31 +0000 (14:40 +0000)]
Boris Koenig:

I'm attaching a small change to Andy's dialog.cxx that I needed
to make so that it enables XML/Nasal-dialogs to also contain
puLargeInput boxes.

The text will be retrieved/buffered from/within a specified
property tree, like:

<textbox>
    <x>100</x>
    <y>100</y>

    <width>200</width>
    <height>100</height>

    <property>/gui/path-to-text-node/contents</property>

    <slider>15</slider>

    <editable>true</editable>
</textbox>

19 years agoAdjustments
ehofman [Mon, 27 Sep 2004 14:29:54 +0000 (14:29 +0000)]
Adjustments

19 years agoVivian Meazza:
ehofman [Mon, 27 Sep 2004 14:24:20 +0000 (14:24 +0000)]
Vivian Meazza:

The calculation of submodel mass from weight has been moved from AIBallistic
to Submodel so that it is calculated only once, rather than on every
iteration as a present. The parameter <contents> has been added, primarily
so that droptanks will have the proper mass. It is the path to an
appropriate property containing a weight in lbs.

Care has to be taken with the use of <contents> because after a reset there
appears to be a delay in submodel instantiation (dt not properly reset???)
and the weight property is not always picked up before it is set to zero in
the key bindings. Slightly hard to explain. It works fine if FGFS has not
been reset though. There is a partial solution which involves the rejigging
of the fuel and gui nasal scripts, but there is still the visible delay in
instantiation to be resolved. I've nearly done the nasal fixes, which will
form part of an update to the Hunter only. I'll probably complete those
later today.

19 years agoCache the renderer in a local pointer.
ehofman [Mon, 27 Sep 2004 09:13:12 +0000 (09:13 +0000)]
Cache the renderer in a local pointer.

19 years agoActivate the hi res screen capture functionality again, however it is no
curt [Mon, 27 Sep 2004 02:39:54 +0000 (02:39 +0000)]
Activate the hi res screen capture functionality again, however it is no
longer working 100% correctly. :-(