]> git.mxchange.org Git - flightgear.git/log
flightgear.git
18 years agoVerbosity fixes.
curt [Thu, 27 Oct 2005 14:38:33 +0000 (14:38 +0000)]
Verbosity fixes.

18 years agoJim Wilson: Adjusting the near clip plane to 0.10 units (approx 3 inches) is less...
ehofman [Thu, 27 Oct 2005 08:40:12 +0000 (08:40 +0000)]
Jim Wilson: Adjusting the near clip plane to 0.10 units (approx 3 inches) is less ambitious, a bit more forgiving for the 3D modelers, and perfectly adequate.

18 years agoFred: replace the C++ sthe 'and' by the C style '&&' for compatibility.
ehofman [Thu, 27 Oct 2005 08:23:28 +0000 (08:23 +0000)]
Fred: replace the C++ sthe 'and' by the C style '&&' for compatibility.

18 years agoReplace hard-coded dialogs with NewGUI/XML dialogs, where some widgets
mfranz [Wed, 26 Oct 2005 18:20:27 +0000 (18:20 +0000)]
Replace hard-coded dialogs with NewGUI/XML dialogs, where some widgets
and text strings are filled in before displaying. For testing: the new
dialogs are available under menu -> ATC -> Frequencies, and when
communicating with ATC (' key). This isn't completely finished yet, and
will probably profit from some feedback from the ATC folks.
tower.cxx: remove redundant "if (foo) delete foo".

18 years ago'nother Cygwin fix.
ehofman [Wed, 26 Oct 2005 12:23:18 +0000 (12:23 +0000)]
'nother Cygwin fix.

18 years agoCygwin fix.
ehofman [Wed, 26 Oct 2005 11:00:18 +0000 (11:00 +0000)]
Cygwin fix.

18 years agoAlex Romosan:
ehofman [Wed, 26 Oct 2005 09:03:49 +0000 (09:03 +0000)]
Alex Romosan:

I tried to make sure accessor functions which return by reference act
on const objects. also replaced some iterators with const_iterator
and a few return/pass by reference that were missed the first time
around.

18 years agoI guess there was something in Alex' patch that wasn't all that fortunate.
ehofman [Tue, 25 Oct 2005 16:28:46 +0000 (16:28 +0000)]
I guess there was something in Alex' patch that wasn't all that fortunate.

18 years agoAlex Romosan:
ehofman [Tue, 25 Oct 2005 13:49:55 +0000 (13:49 +0000)]
Alex Romosan:

* Use "const string&" rather than "string" in function calls when appropriate.
* Use "const Point3D&" instead of "Pint3D" in function calls when appropriate.
* Improved course calculation in calc_gc_course_dist()
* Safer thread handling code.

Vassilii Khachaturov:

Dont use "const Point3D&" for return types unless you're absolutely sure.

Erik Hofman:

* Use SGD_(2)PI(_[24]) as defined in simgear/constants.h rather than
  calculating it by hand every time.

18 years agoVassilii Khachaturov:
ehofman [Tue, 25 Oct 2005 08:57:33 +0000 (08:57 +0000)]
Vassilii Khachaturov:

this patch eliminates some cut-and-paste,
as well as makes some frequently used strings const static at the same
time. A couple of interfaces are decorated with 'const' on the parameters
that are such, in line with other such interfaces where const is used.

"NINE" changed to "NINER", to match ICAO practice and the current FGFS
voice data.

A fixed buffer, sprintf and a warning comment replaced w/ostringstream.

Alex Romosan:

+string ConvertRwyNumToSpokenString(const string s) {

this should be string ConvertRwyNumToSpokenString(const string& s)
so we don't make unnecessary copies.

18 years agoRemove DOS line endings.
ehofman [Mon, 24 Oct 2005 08:48:19 +0000 (08:48 +0000)]
Remove DOS line endings.

18 years agoreduce noise
mfranz [Sun, 23 Oct 2005 18:21:12 +0000 (18:21 +0000)]
reduce noise

18 years ago... and don't keep. This causes nasty, mysterious bugs and has no advantages.
mfranz [Sun, 23 Oct 2005 16:13:53 +0000 (16:13 +0000)]
... and don't keep. This causes nasty, mysterious bugs and has no advantages.

18 years agoadd support for removeChildren(): takes one name as optional argument
mfranz [Sun, 23 Oct 2005 16:10:32 +0000 (16:10 +0000)]
add support for removeChildren(): takes one name as optional argument
and removes all children with this name; if no name is given, removes
all children  (OK'ed by Andy)

18 years agoAdd support for seasonal textures: --prop:/sim/startup/season=winter for now.
ehofman [Sun, 23 Oct 2005 13:48:36 +0000 (13:48 +0000)]
Add support for seasonal textures: --prop:/sim/startup/season=winter for now.

18 years agomake use of the new removeChildren()
mfranz [Sun, 23 Oct 2005 12:32:15 +0000 (12:32 +0000)]
make use of the new removeChildren()

18 years ago'keep' defaults to true (which is a bad choice -- we never really want
mfranz [Sun, 23 Oct 2005 10:19:05 +0000 (10:19 +0000)]
'keep' defaults to true (which is a bad choice -- we never really want
children saved away when removing a node). This caused gui bindings to
fail in some rare cases --> don't keep.

18 years agothis may be informative on first sight, but not when output in a loop
mfranz [Sat, 22 Oct 2005 19:33:32 +0000 (19:33 +0000)]
this may be informative on first sight, but not when output in a loop

18 years agoWe never want to know if a dialog is there or not. If we ask for one and
mfranz [Sat, 22 Oct 2005 16:51:27 +0000 (16:51 +0000)]
We never want to know if a dialog is there or not. If we ask for one and
it isn't there, this is a bug. Thus centralize the error message so that it
doesn't have to be repeated everywhere. Of course, the calling code should
still consider that a returned property node may be 0.

18 years agoVassilii Khachaturov:
ehofman [Sat, 22 Oct 2005 13:37:13 +0000 (13:37 +0000)]
Vassilii Khachaturov:

I found that all the current users of the companion
function, findByFreq() actually did assume radians despite the misleading
comment in the .hxx and .cxx saying it's degrees. I've fixed the
comment now, and no longer change the Navaids code. The new Navaids user
in NewWaypoint() is now passing radians to the findByIdent().

Note that along with fixing the comments in the navlist.hxx, I removed
an obsolete method findByLoc() declaration (there is no definition
anywhere).

18 years agoVassilii Khachaturov thought that these messages are actually debug messages and...
ehofman [Sat, 22 Oct 2005 11:26:58 +0000 (11:26 +0000)]
Vassilii Khachaturov thought that these messages are actually debug messages and I tend to agree.

18 years agoIma Sudonim:
ehofman [Sat, 22 Oct 2005 11:22:05 +0000 (11:22 +0000)]
Ima Sudonim:

CygWin/gcc-3.4.4 updates.

I replaced my cygwin compiler with 3.4.4, did a make clean of plib, simgear,
and flightgear, then did a make install of all three. With the included changes,
everything builds fine, and runs fine.

18 years ago- spelling
mfranz [Fri, 21 Oct 2005 19:34:51 +0000 (19:34 +0000)]
- spelling
- write file name in quotes

18 years agoExpose the "spool-time" of a Jet engine as a configuration parameter.
andy [Fri, 21 Oct 2005 19:30:58 +0000 (19:30 +0000)]
Expose the "spool-time" of a Jet engine as a configuration parameter.
This apparently got forgotten -- the tunable was there, but nothing
exposed it in the parser.

18 years agospelling fix & remove a couple of trailing spaces
mfranz [Fri, 21 Oct 2005 19:24:16 +0000 (19:24 +0000)]
spelling fix & remove a couple of trailing spaces

18 years agoFix <text> alignment. Because our <text> widget is an empty puObject's
mfranz [Fri, 21 Oct 2005 18:50:58 +0000 (18:50 +0000)]
Fix <text> alignment. Because our <text> widget is an empty puObject's
label, we need to compensate for the gap in-between: PUSTR_RGAP (pu.h).
Without that, all text appears shifted right.

18 years agoadd support for a <hide> property, which hides whole XML groups (widgets
mfranz [Fri, 21 Oct 2005 17:47:48 +0000 (17:47 +0000)]
add support for a <hide> property, which hides whole XML groups (widgets
or data blocks) from layouter and dialog creator. This is required for
dynamically generated/modified dialogs. Parts in the XML file can be
hidden and turned on by the C++ code. Other hidden parts can be used
as templates that are multiply used. Hidden datablocks can contain
strings that are used in dialog context, that are easier to translate
or modify in the XML file.

18 years agoDepreciate HUGE in favor of HUGE_VAL.
ehofman [Thu, 20 Oct 2005 13:56:16 +0000 (13:56 +0000)]
Depreciate HUGE in favor of HUGE_VAL.

18 years agoReplace hard-coded message boxes by ones managed by the gui subsystem.
mfranz [Thu, 20 Oct 2005 13:05:02 +0000 (13:05 +0000)]
Replace hard-coded message boxes by ones managed by the gui subsystem.
Remove obsolete functions.

18 years agoAdd method to get the property root node of named dialogs. This is
mfranz [Thu, 20 Oct 2005 11:15:00 +0000 (11:15 +0000)]
Add method to get the property root node of named dialogs. This is
necessary to edit dialog contents from C++, and will allow us to
finally let all the hardcoded dialogs be handled by the "gui"
subsystem.

18 years agoCygwin fix.
ehofman [Thu, 20 Oct 2005 08:48:32 +0000 (08:48 +0000)]
Cygwin fix.

18 years agoFeature addition from Vassilii allows the user to set the tower
andy [Wed, 19 Oct 2005 19:21:45 +0000 (19:21 +0000)]
Feature addition from Vassilii allows the user to set the tower
location with an airport ID by watching the property with a listener.
Moderately rewritten from the original patch for style.

18 years agoPiston engine oil temperature model from David Luff:
andy [Wed, 19 Oct 2005 18:52:57 +0000 (18:52 +0000)]
Piston engine oil temperature model from David Luff:

Attached is a patch to add oil temperature to the YASim piston engine
model.  This brings to life one of the pa28-161's otherwise 'dead'
guages.  It's a pretty simple 'model' based on temperatures and warmup
times I've observed in the labs on auto engines and run through my
dodgy-memory filter.  It does the job of populating the guage with
something plausible though.

18 years agoMust include config.h before plib headers to prevent them from default
andy [Wed, 19 Oct 2005 18:40:19 +0000 (18:40 +0000)]
Must include config.h before plib headers to prevent them from default
to glut (which breaks SDL builds).

18 years agoDurk Talsma:
ehofman [Tue, 18 Oct 2005 18:44:37 +0000 (18:44 +0000)]
Durk Talsma:

Auf Niederlandisch:
Bij deze de patch voor de taxiway code. Deze code is nog gebaseerd
op de bestaaande architectuur, gebaseerd op de FGAirport class in simple.[ch]xx
Ik heb me voornamelijk gericht op nieuwe functionaliteit; de volgende
submissie zal waarschijnlijk bestaan uit opschoning, opsplitsing en een
implementatie van de nieuwe airport architectuur, zoals voorgesteld door
David Luff.

En Anglais:
Here is the patch for the taxiway code. This code is still based on the
exsisting architecture, which is based on the FGAirport class in simple.[ch]xx
I've aimed mostly at new functionality; The next batch will probably contain
code cleanups, splitups and the implementation fo the new airport architecture,
as proposed by David Luff.

18 years agoMathias Froehlich: fix refcounting problem that caused submodel crashes
mfranz [Tue, 18 Oct 2005 18:01:43 +0000 (18:01 +0000)]
Mathias Froehlich: fix refcounting problem that caused submodel crashes

18 years agoOlaf Flebbe: Mathias asked me to write down instructions for MinGW.
ehofman [Tue, 18 Oct 2005 16:38:54 +0000 (16:38 +0000)]
Olaf Flebbe: Mathias asked me to write down instructions for MinGW.

18 years agoHarald JOHNSEN:
ehofman [Sun, 16 Oct 2005 17:31:06 +0000 (17:31 +0000)]
Harald JOHNSEN:

I have corrected a few bugs with the owner draw gauge, weather radar code and heat-haze effect.

- od_gauge.cxx :
  corrected a rendering bug where the generated texture was only visible
  from a certain angle or distance ;
  corrected the search of textures inside the aircraft scene graph ;

- wxRadar.cxx :
  the echo of clouds was lost when the pilot was not looking in the
  plane direction ;

18 years agoWhy not just use the provided constructor, then we know for sure what the
curt [Sun, 16 Oct 2005 11:11:06 +0000 (11:11 +0000)]
Why not just use the provided constructor, then we know for sure what the
values will be initialized to.

18 years agoLadislav Michnovic:
ehofman [Sun, 16 Oct 2005 09:05:40 +0000 (09:05 +0000)]
Ladislav Michnovic:

Using new gcc 4.0 I have some serios warnings about uninitialized
variables, that are used. I created a patch, but I have no idea if it
is possible to do it my way. Can you check this out please?

Erik: I've modified the patch slightly based on the contents of an older
      version of hitlist.cxx. I think this is correct now.

18 years agoUpdates from Vassilii Khachaturov as suggested by George Patterson
ehofman [Sun, 16 Oct 2005 08:24:43 +0000 (08:24 +0000)]
Updates from Vassilii Khachaturov as suggested by George Patterson

18 years agoAllow a single vacuum system to be driven by multiple pumps. This allows
curt [Sat, 15 Oct 2005 20:03:17 +0000 (20:03 +0000)]
Allow a single vacuum system to be driven by multiple pumps.  This allows
modeling of a simple single vacuum system with a pump source on each engine
in a multiengine aircraft.  The highest rpm engine takes priority for driving
the vacuum system.

18 years agoDon't use the this pointer for referencing the AIModels anymore, this
ehofman [Sat, 15 Oct 2005 14:55:51 +0000 (14:55 +0000)]
Don't use the this pointer for referencing the AIModels anymore, this
turns out to get problematic on 64-bit systems. Instead use a regular
int based approach.

18 years agoMathias Fröhlich:
ehofman [Sat, 15 Oct 2005 14:51:52 +0000 (14:51 +0000)]
Mathias Fröhlich:

I had a quick view over the ssgBase::ref() calls in flightgear.
I made them all symmetric and used ssgDeRefDelete to dereference them.
This has the basic advantage that ssgDeRefDelete additionaly deletes the
memory instead of just decrementing the reference cound without deletion ...

This includes an incorrect deref instead of a ssgDeRefDelete in the placement
transform registration I introduced earlier. I believe that this causes the
problems with long flights (unverified, but with a big propability).

18 years agoVivian caught some missing length conversions in the gear offset
andy [Fri, 14 Oct 2005 21:27:33 +0000 (21:27 +0000)]
Vivian caught some missing length conversions in the gear offset
properties (What are these for?  I have no memory of these
properties...)

18 years agoSupport gear compression along axes other than vertical (Vivian needs
andy [Fri, 14 Oct 2005 21:20:51 +0000 (21:20 +0000)]
Support gear compression along axes other than vertical (Vivian needs
it for the B-29).  The gear model itself has supported this always,
but there was no interface from the XML file.  Should be backwards
compatible.  I don't think I broke anything...

18 years agoMathias Fröhlich:
ehofman [Fri, 14 Oct 2005 16:25:14 +0000 (16:25 +0000)]
Mathias Fröhlich:

I have done a valgrind run in flightgear. Just start it up and close it at the
fist change I had about half an hour later.

source-leak.diff:
   Also two minor ones, but leaks ...

18 years agoVassilii Khachaturov:
ehofman [Thu, 13 Oct 2005 13:42:17 +0000 (13:42 +0000)]
Vassilii Khachaturov:

I've updated README.multiplayer to reflect the recent changes.

18 years agoMathias Fröhlich:
ehofman [Wed, 12 Oct 2005 08:55:58 +0000 (08:55 +0000)]
Mathias Fröhlich:

I stumbled across two memory errors with two wrong const references to
std::string.

As I fixed that, I also moved aircraft_dir which is only used from UIUC into
UIUC. With that uiuc_aircraftdir.h is empty and can be removed.

18 years agoFix two small typos.
curt [Tue, 11 Oct 2005 18:58:05 +0000 (18:58 +0000)]
Fix two small typos.

18 years agoUse our own set of endian functions. This fixes a Cygwin problem.
ehofman [Tue, 11 Oct 2005 08:21:07 +0000 (08:21 +0000)]
Use our own set of endian functions. This fixes a Cygwin problem.

18 years agoMathias Fröhlich:
ehofman [Sat, 8 Oct 2005 12:33:06 +0000 (12:33 +0000)]
Mathias Fröhlich:

I believe I have found the agl hud problems as well as the 'hole' in the
carrier's deck. I spent half the day to reproduce that problem, it did not
occure when you start on the carrier not does it occure with JSBSim and my
really often used testaircraft. So I really need to improove my helicopter
flying qualities.

I was under the impression that *all* FDM's call

FGInterface::updateGeo*Position(..)

so set the new position in the FDM interface. Therefore I had added at the
some code that updates the scenery elevation below the aircraft to *those*
functions.
Ok, not all FDM's do so :/

The attached patch factors out a function computing the scenery altitude at
the current FDM's position. This function is also used in those FDM's which
need to update this value themselves.
Also this patch restores the nearplane setting and uses the current views
altitude instead of the current aircrafts. I think that this should further
be changed to the eypoint's agl in the future.
The agl is again ok in YASim's hud.

18 years agoHarald JOHNSEN:
ehofman [Sat, 8 Oct 2005 11:55:18 +0000 (11:55 +0000)]
Harald JOHNSEN:

Changes
=======

- acmodel.cxx :
  we now have an optional new property (/sim/model/texture-path) that is used
  as the first path in wich aircraft textures are searched. If textures are not
  found there then the usual texture path or model path is used ;
  This allows to replace only needed textures for liveries ;

- options.cxx :
  added a new --livery=xxx option for the user pleasure ;
  this will just set the /sim/model/texture-path property with /livery/xxxx

- od_gauge.cxx, og_gauge.hxx, cockpit.cxx, cockpit.hxx,
  generic-instrumentation.xml :
  added an helper class that contain a rendering context for glass instrument
  or any other opengl drawn instrument ;

- wxradar.cxx, instrument_mgr.cxx, wxradar.hxx :
  first experimentation of a weather radar ;

18 years agoMartin Spott: Use standardized Sun directive.
ehofman [Thu, 6 Oct 2005 11:08:26 +0000 (11:08 +0000)]
Martin Spott: Use standardized Sun directive.

18 years agoNot all compilers understand the C++ 'and' command,
ehofman [Thu, 6 Oct 2005 09:28:36 +0000 (09:28 +0000)]
Not all compilers understand the C++ 'and' command,
use the C style && instead.

18 years agonormalmap
mfranz [Wed, 5 Oct 2005 11:53:34 +0000 (11:53 +0000)]
normalmap

18 years agocvsignore
mfranz [Wed, 5 Oct 2005 11:52:25 +0000 (11:52 +0000)]
cvsignore

18 years agoAl MacLeod: fix typo
mfranz [Tue, 4 Oct 2005 20:36:38 +0000 (20:36 +0000)]
Al MacLeod: fix typo

18 years agoprevent view through big hole in carrier deck
mfranz [Tue, 4 Oct 2005 18:01:45 +0000 (18:01 +0000)]
prevent view through big hole in carrier deck

18 years agoonly skip one comment line at the top of TACAN_freq.dat.gz
mfranz [Sun, 2 Oct 2005 17:57:16 +0000 (17:57 +0000)]
only skip one comment line at the top of TACAN_freq.dat.gz

18 years agoAdd missing files.
ehofman [Sat, 1 Oct 2005 11:08:06 +0000 (11:08 +0000)]
Add missing files.

18 years agoVivian Meazza:
ehofman [Sat, 1 Oct 2005 09:56:53 +0000 (09:56 +0000)]
Vivian Meazza:

This adds a TACAN instrument to the inventory. Range and bearing are calculated
to the TACAN or VORTAC beacon selected by means of the Channel Selector in the E
quipment/Radio pull-down menu.

A TACAN beacon has also been added to the aircraft carrier Nimitz (channel #029Y
).

18 years agoRemove unused defines
ehofman [Wed, 28 Sep 2005 14:19:16 +0000 (14:19 +0000)]
Remove unused defines

18 years agoCygwin doesn't handle endianness properly at the moment, try a different approach.
ehofman [Wed, 28 Sep 2005 14:03:43 +0000 (14:03 +0000)]
Cygwin doesn't handle endianness properly at the moment, try a different approach.

18 years agoUse our own (crossplatform) stdint implementation.
ehofman [Wed, 28 Sep 2005 13:55:54 +0000 (13:55 +0000)]
Use our own (crossplatform) stdint implementation.

18 years agoVivian pointed out that the gear keep rotating after the wheel leaves
andy [Tue, 27 Sep 2005 16:53:12 +0000 (16:53 +0000)]
Vivian pointed out that the gear keep rotating after the wheel leaves
the ground.  Fix this by zeroing the values, although a fancier
implementation (that spins down slowly and honors the brake input)
would be possible...

18 years agoAdd a pass through so we can capture IMU/INS/GPS data to a file at the same
curt [Mon, 26 Sep 2005 21:19:01 +0000 (21:19 +0000)]
Add a pass through so we can capture IMU/INS/GPS data to a file at the same
time as using it to drive a copy of FlightGear.

18 years agoAdd some initial support for reading live data from a serial port (and
curt [Mon, 26 Sep 2005 21:02:48 +0000 (21:02 +0000)]
Add some initial support for reading live data from a serial port (and
passing it along to FlightGear.)  I notice that the serial port read only
seems to work correctly if I read one character at a time.  Multicharacter
reads seem very unreliable.

18 years agoAdd a lib needed by Irix.
curt [Sun, 25 Sep 2005 19:04:30 +0000 (19:04 +0000)]
Add a lib needed by Irix.

18 years agoRoy Vegard Ovesen:
ehofman [Sun, 25 Sep 2005 07:49:18 +0000 (07:49 +0000)]
Roy Vegard Ovesen:

I've prepared a patch as suggested by Hans-Georg Wunder and Jeff McBride.

In addition I've removed the ability to completely leave out the integral
action by setting Ti to zero. The velocity form of the PID algorithm _needs_
the integral action.

18 years agoAdd an XML grep utility. It's far from complete but it allowed me to test the animati...
ehofman [Sat, 24 Sep 2005 12:31:41 +0000 (12:31 +0000)]
Add an XML grep utility. It's far from complete but it allowed me to test the animation files for the precense of the 'offset' element in the translation animation sections.

18 years agoSwitch over to using SGIOChannel so we can try to read data live from
curt [Fri, 23 Sep 2005 21:23:13 +0000 (21:23 +0000)]
Switch over to using SGIOChannel so we can try to read data live from
the serial port at some future time.

18 years agoFix one small type ambiguity and then do some code restructuring.
curt [Fri, 23 Sep 2005 19:55:52 +0000 (19:55 +0000)]
Fix one small type ambiguity and then do some code restructuring.

18 years agoUse our own stdint.hxx implementation.
ehofman [Thu, 22 Sep 2005 11:47:58 +0000 (11:47 +0000)]
Use our own stdint.hxx implementation.

18 years agoBetter cross platform compatibility.
ehofman [Wed, 21 Sep 2005 09:43:32 +0000 (09:43 +0000)]
Better cross platform compatibility.

18 years agoUpdate for 32-bit systems.
ehofman [Wed, 21 Sep 2005 09:17:32 +0000 (09:17 +0000)]
Update for 32-bit systems.

18 years agoChanges to support the new naCall API in SimGear. NOTE: these changes
andy [Tue, 20 Sep 2005 21:09:52 +0000 (21:09 +0000)]
Changes to support the new naCall API in SimGear.  NOTE: these changes
are *not* backwards compatible, and require current SimGear to
compile.

18 years agoDavid Luff:
curt [Tue, 20 Sep 2005 20:26:57 +0000 (20:26 +0000)]
David Luff:

Attached is a patch to the airport data storage that I would like committed
after review if acceptable.  Currently the storage of airports mapped by ID
is by locally created objects - about 12 Meg or so created on the stack if
I am not mistaken.  I've changed this to creating the airports on the heap,
and storing pointers to them - see FGAirportList.add(...) in
src/Airports/simple.cxx.  I believe that this is probably better practice,
and it's certainly cured some strange problems I was seeing when accessing
the airport data with some gps unit code.  Changes resulting from this have
cascaded through a few files which access the data - 11 files are modified
in all.  Melchior and Durk - you might want to test this and shout if there
are problems since the metar and traffic code are probably the biggest
users of the airport data.  I've also added a fuzzy search function that
returns the next matching airport code in ASCII sequence in order to
support gps units that have autocompletion of partially entered codes.

More generally, the simple airport class seems to have grown a lot with the
fairly recent addition of the parking, runway preference and schedule time
code.  It is no longer just an encapsulation of the global airport data
file, and has grown to 552 bytes in size when unpopulated (about 1/2 a K!).
 My personal opinion is that we should look to just store the basic data in
apt.dat for all global airports in a simple airport class, plus globally
needed data (metar available?), and then have the traffic, AI and ATC
subsystems create more advanced airports for themselves as needed in the
area of interest.  Once a significant number of airports worldwide have
ground networks and parking defined, it will be impractical and unnecessary
to store them all in memory.  That's just a thought for the future though.

18 years agoRemove old FAQ maintainer's address.
curt [Tue, 20 Sep 2005 17:01:48 +0000 (17:01 +0000)]
Remove old FAQ maintainer's address.

18 years agoAdd a byte swap test utility.
ehofman [Tue, 20 Sep 2005 09:35:20 +0000 (09:35 +0000)]
Add a byte swap test utility.

18 years agoOliver Schroeder:
ehofman [Sun, 18 Sep 2005 12:37:18 +0000 (12:37 +0000)]
Oliver Schroeder:

I have prepared a new patch for multiplayer, which fixes endianess issues with
multiplayer code. It's basically identical to the patch I sent before my
vacation, but contains minor fixes.

Multiplayer should now be working under all unix-like environments and windows
native. The basic trick is to let configure check for endianess of the host
system.

It will not work on system not using configure in the build process (excluding
windows), ie. possibly MACOS. For those system we should provide #ifdefs in
tiny_xdr.hpp.

Erik:
I've updated the patch to use the Plib utils package for endian swapping an
used a preprocessor directive to detect endianess.

18 years agoHarald JOHNSEN:
ehofman [Sun, 18 Sep 2005 09:49:26 +0000 (09:49 +0000)]
Harald JOHNSEN:

this is the correction for the visibility bug/yasim crash. I've also made a little change that could help in the metar init.

18 years agoLee Elliot:
curt [Fri, 16 Sep 2005 20:21:15 +0000 (20:21 +0000)]
Lee Elliot:

>> Hello List,
>>
>> I think there's a small bug in the moving-average filter in
>> xmlauto.cxx
>>
>> I noticed that the output from it was always out a bit and
>> checking with a calculator showed that it seemed to be dividing
>> by the number of samples + 1 instead of just the number of
>> samples.
>>
>> subtracting 1 from 'samples' in line 702 seems to fix the problem
>> and as 'samples' doesn't seem to be used elsewhere I think it's
>> safe.  Possibly implies that the number of samples may be one
>> less than specified but I'm not familiar enough with c++ to spot
>> it.

Roy Ovesen:

You are right. I would suggest resizing input[] to (samples + 1) instead.
Change lines 654 and 661 to:

input.resize(samples + 1, 0.0);

That way we average over the number of samples as configured.

18 years agoPrepare for OpenAL 1.1 and a separate alut lubrary.
ehofman [Thu, 15 Sep 2005 17:31:05 +0000 (17:31 +0000)]
Prepare for OpenAL 1.1 and a separate alut lubrary.

18 years agoMingW32 fixes.
ehofman [Sun, 11 Sep 2005 09:53:55 +0000 (09:53 +0000)]
MingW32 fixes.

18 years agoBring up to date.
ehofman [Sun, 11 Sep 2005 09:48:19 +0000 (09:48 +0000)]
Bring up to date.

18 years agoAdd a convienient ctor
daveluff [Fri, 9 Sep 2005 12:33:23 +0000 (12:33 +0000)]
Add a convienient ctor

18 years agoMathias Fröhölöiööhlich:
ehofman [Mon, 5 Sep 2005 13:25:09 +0000 (13:25 +0000)]
Mathias Fröhölöiööhlich:

There was a patch from Manuel Masing a few months ago which cleaned up
SGLocation's way depending on input values. That means that with that patch
SGLocation does no longer have calls with unneeded input arguments.
I took his patch and integrated that into flightgear and made maximum use of
that changes.

Erik Hofman:
Remove some duplicate code that was moved to simgear/compiler.h

18 years agoCompute speed in kts. Speed is linear, but relative to earth centered
curt [Mon, 29 Aug 2005 03:06:42 +0000 (03:06 +0000)]
Compute speed in kts.  Speed is linear, but relative to earth centered
coordinates.

18 years agoCreated a utility (similar to GPSsmooth) that can take a recorded file of
curt [Sat, 27 Aug 2005 20:00:58 +0000 (20:00 +0000)]
Created a utility (similar to GPSsmooth) that can take a recorded file of
MIDG-II binary data and replay it in FG.  For more details on the MIDG-II
see: http://www.microboticsinc.com/midg.html

18 years agoFix a small oops. We need to convert values from network byte order before
curt [Tue, 23 Aug 2005 21:38:49 +0000 (21:38 +0000)]
Fix a small oops.  We need to convert values from network byte order before
trying to use them.

18 years agoSlightly more user friendly output.
curt [Tue, 23 Aug 2005 21:36:05 +0000 (21:36 +0000)]
Slightly more user friendly output.

18 years agoMinor clean up.
curt [Tue, 23 Aug 2005 21:02:44 +0000 (21:02 +0000)]
Minor clean up.

18 years agoScale gyro input power for the new[er] electrical system.
curt [Tue, 23 Aug 2005 02:26:16 +0000 (02:26 +0000)]
Scale gyro input power for the new[er] electrical system.

18 years agoRemove some old debugging output.
curt [Mon, 22 Aug 2005 23:47:17 +0000 (23:47 +0000)]
Remove some old debugging output.

18 years agoRemove an unneeded include.
curt [Mon, 22 Aug 2005 23:31:23 +0000 (23:31 +0000)]
Remove an unneeded include.

18 years agoHarald JOHNSEN:
ehofman [Mon, 22 Aug 2005 17:49:50 +0000 (17:49 +0000)]
Harald JOHNSEN:

- replay.cxx :
  corrected a bug, now reinitialize the recording data when replay is
  deactivated

- fgclouds.cxx :
  cloud layers and weather condition are saved when choosing a weather scenario,
  added a new scenario 'none' so we can switch back to standard flightgear
  weather

- navradio.cxx :
  force a search() on init to initialize some variables, preventing a nearly
  infinite loop  when delta-time == 0 on the first update()

- electrical.cxx :
  uninitialized variable in apply_load() for FG_EXTERNAL supplier

- panel.cxx, panelnode.cxx :
  added a property "depth-test" for 2.5D panels so that they update the depth
  buffer and are no more visible from the outside of the aircraft when the
  aircraft uses textures without an alpha channel

- panel.cxx :
  moved the computation of the instruments diffuse color outside the
  texturelayer code since this is constant during a frame, this is a big speedup
  for 2D panels

18 years agoMSVC fix.
ehofman [Thu, 18 Aug 2005 09:17:39 +0000 (09:17 +0000)]
MSVC fix.

18 years agoVivian Meazza:
ehofman [Tue, 16 Aug 2005 09:37:23 +0000 (09:37 +0000)]
Vivian Meazza:

Some quite extensive changes to the AIModel code:

1. Mathias has made major changes to the AICarrier code to provide better
alignment of an aircraft on deck with the carrier - this feature is a major
improvement on the existing, but has a bug which might cause it to fail when
the computer carries out other tasks - changing window size is a known
example. This bug is outwith this code.

2.  I have made significant changes to the AIShip code to enable a ship the
turn and roll smoothly.

3. I have added some simple AI which enables the carrier to remain within,
or return to, an operating box.

4. An automated turn into wind for flying operations.

5. A simplistic implementation of TACAN within AICarrier. I am in the course
of implementing this as a generic instrument, but this is some time off
completion.

18 years agoMathias Fröhlich:
ehofman [Sun, 14 Aug 2005 12:57:12 +0000 (12:57 +0000)]
Mathias Fröhlich:

I have prepared a patch that:
- Introduces a FGTileMgr::scenery_available method which asks the tilemanager
  if scenery for a given range around a lat/lon pair is already loaded and make
  use of that method at some -9999 meter checks.
- Introduces a FGScenery::get_elevation_m method which queries the altitude at
  a given position. In constrast to the groundcache functions this is the best
  choice if you ask for one *single* altitude value. Make use of that thing in
  AI/ATC classes and for the current views ground level. At the current views
  part the groundcache is reused if possible.
- The computation of the 'current groundlevel' is no longer done on the
  tilemanagers update since the required functions are now better seperated.

Alltogether it eliminates somehow redundant terrain level computations which
are now superseeded by that more finegrained functions and the existence of
the groundcache. Additionally it introduces an api to commonly required
functions which was very complex to do prevously.