]> git.mxchange.org Git - flightgear.git/log
flightgear.git
15 years agoJames Turner:
fredb [Wed, 3 Dec 2008 20:03:46 +0000 (20:03 +0000)]
James Turner:

Attached patch updates the route-manager to use FGPositioned to search
for waypoints, instead of a manual airport / fix / navaid search. This
is good because it's now using the 'strictly closest' match, rather
than arbitrarily picking a distant fix over a nearby navaid. In my
case, the TLA VOR is significant to several EGPH procedures, but also
happens to be the ident of a fix a long, long way away.

Also updates the FGPositioned class to stop using Point3D, partly
because it's deprecated and partly because I had misunderstood the
interface and was using it wrong. For now, all FGPositioned distance
checks use SGGeodesy::inverse, which is accurate but inefficient. Once
FGPositioned queries are used for something on a hot path, I'll
probably store the cartesian position as well as the geodetic, to make
these checks fast.

15 years agoAdd propmerge to the subdirs list so it can get included with make dist (it
curt [Wed, 3 Dec 2008 14:54:17 +0000 (14:54 +0000)]
Add propmerge to the subdirs list so it can get included with make dist (it
is referenced from the configure.ac file.)

15 years agoLoosen the check for stationary versus moving view point. I some cases when
curt [Mon, 1 Dec 2008 16:13:12 +0000 (16:13 +0000)]
Loosen the check for stationary versus moving view point.  I some cases when
the view has an "offset" location, the actual location of a "stationary" view
point moves a small amount as the view direction rotates.

15 years agoBrian Schack:
curt [Mon, 1 Dec 2008 13:58:04 +0000 (13:58 +0000)]
Brian Schack:

Right now, atlas.cxx uses the following code, in
FGAtlas::gen_message(), to retrieve the ADF frequency:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/kr-87/outputs/selected-khz", true);

I think it should be changed to:

static SGPropertyNode *adf_freq =
    fgGetNode("/instrumentation/adf/frequencies/selected-khz", true);

15 years agoSync. with JSBSim CVS
ehofman [Sun, 30 Nov 2008 10:44:29 +0000 (10:44 +0000)]
Sync. with JSBSim CVS

15 years agoadd _getAliasTarget(): this dereferences an alias, allowing to refer
mfranz [Wed, 26 Nov 2008 11:34:35 +0000 (11:34 +0000)]
add _getAliasTarget(): this dereferences an alias, allowing to refer
to the target node's children and attributes etc., which aren't
inherited by an alias.

15 years agoMake computeIntersections work with the near and far cameras
timoore [Wed, 26 Nov 2008 09:02:48 +0000 (09:02 +0000)]
Make computeIntersections work with the near and far cameras

15 years agoRestore camera properties on reInit
timoore [Tue, 25 Nov 2008 22:50:20 +0000 (22:50 +0000)]
Restore camera properties on reInit

From Tatsuhiro Nishioka

15 years agoExpose precipitation property
timoore [Tue, 25 Nov 2008 22:50:04 +0000 (22:50 +0000)]
Expose precipitation property

from Vivian Meazza

15 years agomsg
timoore [Tue, 25 Nov 2008 22:49:19 +0000 (22:49 +0000)]
msg

15 years ago- Don't consider modifiers in axis bindings, as this means to
mfranz [Tue, 25 Nov 2008 14:32:39 +0000 (14:32 +0000)]
- Don't consider modifiers in axis bindings, as this means to
  temporarily lose control over the aircraft while pressing a
  modifier for a button.
- cosmetics: remove trailing spaces and commented out debug messages

15 years agoEnable <mod-{shift,ctrl,alt,meta,super,hyper}> support for joystick
mfranz [Mon, 24 Nov 2008 17:16:38 +0000 (17:16 +0000)]
Enable <mod-{shift,ctrl,alt,meta,super,hyper}> support for joystick
bindings. Only <mod-up> was supported before.

15 years agoUpdate MSVC 7.1 projects. Add Boost
fredb [Sat, 22 Nov 2008 11:26:57 +0000 (11:26 +0000)]
Update MSVC 7.1 projects. Add Boost

15 years agoFix some viewport problems on startup
timoore [Fri, 21 Nov 2008 23:11:27 +0000 (23:11 +0000)]
Fix some viewport problems on startup

From Csaba Halász

15 years agoUse simgear clone function instead of OSG's.
timoore [Fri, 21 Nov 2008 14:53:37 +0000 (14:53 +0000)]
Use simgear clone function instead of OSG's.

This should remove a dependency on an unreleased version of OSG (2.7.3).

15 years agoAdd autoconf macro and better variable handling for Boost.
timoore [Fri, 21 Nov 2008 12:57:01 +0000 (12:57 +0000)]
Add autoconf macro and better variable handling for Boost.

The Boost test macro comes from the Autoconf Archive.

15 years agoadd props.Node.{initNode,alias,unalias}
mfranz [Thu, 20 Nov 2008 20:11:46 +0000 (20:11 +0000)]
add props.Node.{initNode,alias,unalias}

15 years agoDon't call idle and draw functions from FGEventHandler::handle.
timoore [Thu, 20 Nov 2008 11:01:05 +0000 (11:01 +0000)]
Don't call idle and draw functions from FGEventHandler::handle.

These functions are now called in fgOSMainLoop. The fgMainLoop
function was being called twice, which resulted in a slow-down, but
also caused the displayed frame rate to double!

15 years agoUpdate osg::Camera's viewport when it is created.
timoore [Wed, 19 Nov 2008 22:55:42 +0000 (22:55 +0000)]
Update osg::Camera's viewport when it is created.

This fixes a problem where /sim/startup/[xy]size were not set properly
because the GUI camera's viewport was not correct at startup.

15 years agoadd "add-model" command, which adds model properties to the first
mfranz [Wed, 19 Nov 2008 15:59:54 +0000 (15:59 +0000)]
add "add-model" command, which adds model properties to the first
free /models/model[*] slot and lets the model manager load the
model. The target address is returned under "property". Simple
use in Nasal:

  fgcommand("add-model", props.Node.new({
          "path": "Models/Fauna/cow.ac",
          "latitude-deg": 16.234,
          "longitude-deg": 48.321,
          "elevation-ft": 300,
  });

An "elevation-m" property can alternatively be used and overrides
the "elevation-ft" property.

Each of the properties "latitude-deg", "longitude-deg", "elevation-ft",
"heading-deg", "pitch-deg", and "roll-deg" can alternatively be used
with "-prop" suffix. Their values must then be property path strings
pointing to a node that can be changed at runtime to move the model.

15 years agoUpdate the model manager after the event manager, so that model
mfranz [Wed, 19 Nov 2008 07:46:10 +0000 (07:46 +0000)]
Update the model manager after the event manager, so that model
coordinates that were set relative to the aircraft's position
are picked up before the view update rather than the next cycle.
This avoids ugly fluttering of "passengers" at higher speed.

15 years agocompile
mfranz [Wed, 19 Nov 2008 01:09:29 +0000 (01:09 +0000)]
compile

15 years agoUpdate the camera properties after a resize event.
timoore [Tue, 18 Nov 2008 22:46:19 +0000 (22:46 +0000)]
Update the camera properties after a resize event.

15 years agoCleanup of camera code in preperation for shadows
timoore [Tue, 18 Nov 2008 22:45:57 +0000 (22:45 +0000)]
Cleanup of camera code in preperation for shadows
Partition depth in CameraGroup:
Remove the ViewPartionNode scenegraph node. The split rendering of the
scene, done to avoid Z buffer precision problems, is now done by two
slave cameras of the viewer.

Rename FGManipulator to FGEventHandler.

Remove virtual member functions that aren't required for event handlers.

Begin using camera group properties to update cameras at runtime;
Initially only the viewport properties are used.

When no camera group is found in the property tree (the default),
create the properties for one. Expose the default window by name.

Add a test for Boost headers to configure.ac. Boost is now a
dependency.

Remove GLUT and SDL versions of the OSG graphics.

15 years agoComment out an unused non compilable function
fredb [Sun, 16 Nov 2008 14:17:52 +0000 (14:17 +0000)]
Comment out an unused non compilable function

15 years agoTraffic Manager II source code changes
durk [Sun, 16 Nov 2008 13:45:24 +0000 (13:45 +0000)]
Traffic Manager II source code changes
- Decouple aircraft entities from Flights
- Dynamic runtime flight assignment for each aircraft

15 years agoBetter support for multiple startup messages.
durk [Sun, 16 Nov 2008 13:43:44 +0000 (13:43 +0000)]
Better support for multiple startup messages.

15 years agoChanges to the AIModel code, to prepare for the new traffic manager code:
durk [Sun, 16 Nov 2008 13:41:24 +0000 (13:41 +0000)]
Changes to the AIModel code, to prepare for the new traffic manager code:
- Leg loading can fail when no additional flights are available
- Better support for waypoint interception during pushback (speed ~ 0)

15 years agof_alias: catch SGPropertyNode exceptions and generate runtime error
mfranz [Thu, 13 Nov 2008 23:47:45 +0000 (23:47 +0000)]
f_alias: catch SGPropertyNode exceptions and generate runtime error

15 years agoadd some more generic multiplay properties (now 20 of each type; was 10)
mfranz [Wed, 12 Nov 2008 14:53:03 +0000 (14:53 +0000)]
add some more generic multiplay properties (now 20 of each type; was 10)

15 years agopositive error return values, variable name change
mfranz [Wed, 12 Nov 2008 14:41:01 +0000 (14:41 +0000)]
positive error return values, variable name change

15 years agoadd alias() and unalias() functions
mfranz [Wed, 12 Nov 2008 14:39:08 +0000 (14:39 +0000)]
add alias() and unalias() functions

15 years agoenable SG_LOG output
mfranz [Tue, 11 Nov 2008 22:09:56 +0000 (22:09 +0000)]
enable SG_LOG output

15 years agoMaster reference gyro changes from Vivian Meazza.
timoore [Tue, 11 Nov 2008 21:20:02 +0000 (21:20 +0000)]
Master reference gyro changes from Vivian Meazza.

15 years agoadd propmerge utility, which merges <PropertyList> XML files. Writes
mfranz [Tue, 11 Nov 2008 18:51:01 +0000 (18:51 +0000)]
add propmerge utility, which merges <PropertyList> XML files. Writes
result to the given output file if specified, or prints it to stdout
otherwise. Usage:

  $ propmerge [-o <outfile>] <list-of-infiles>

15 years agoadd propmerge utility, which merges <PropertyList> XML files. Writes
mfranz [Tue, 11 Nov 2008 18:36:16 +0000 (18:36 +0000)]
add propmerge utility, which merges <PropertyList> XML files. Writes
result to the given output file if specified, or prints it to stdout
otherwise. Usage:

  $ propmerge [-o <outfile>] <list-of-infiles>

15 years agofix typo in warning message
mfranz [Tue, 11 Nov 2008 18:26:50 +0000 (18:26 +0000)]
fix typo in warning message

15 years agoIncremental improvement of openal sound velocities. This should help
curt [Mon, 10 Nov 2008 15:59:14 +0000 (15:59 +0000)]
Incremental improvement of openal sound velocities.  This should help
stabilize some of the odd artifacts we were hearing, that were especially
noticable in clean sound samples like the stall horn or the marker beacon
codes.  The change still preserves the doppler effect and maintains the
good work of a previous developer figuring out how to align the model and
listener velocity vectors correctly.

15 years agoFGRotor needs to be added to the Makefile.am so it is (a) compiled and
curt [Sat, 8 Nov 2008 01:13:51 +0000 (01:13 +0000)]
FGRotor needs to be added to the Makefile.am so it is (a) compiled and
(b) included in the result of "make dist".

15 years agoStuart Buchanan :
fredb [Thu, 6 Nov 2008 21:58:50 +0000 (21:58 +0000)]
Stuart Buchanan :
It fixes the following issues (to a greater or lesser extent):
1) Performance. Quad trees used to improve culling, and the sprites are placed on the surface of a sphere rather than
randomly throughout the cloud, requiring fewer textures. This saves about 5-10fps on my machine.
2) Disabled 3D clouds have no performance impact. Previously they were still in the scenegraph. Now they are removed.
3) Clouds are now loaded on start-up, and don't require the scenario to be changed, they also work with METAR.
4) The cloud field is shifted as you travel. There's a small bug in that the clouds "jump" as you reach the edge of the field.
5) Iterative sorting of sprites. This doesn't appear to solve the alpha blending problem completely, but may help a bit.

15 years agoFix refcounting bug in f_removeChild(). Use a smart pointer to handle
andy [Mon, 3 Nov 2008 23:50:33 +0000 (23:50 +0000)]
Fix refcounting bug in f_removeChild().  Use a smart pointer to handle
the case where the removed child has no other referants, otherwise it
will be deleted on function exit.  Also give the ghost type a name for
cleaner debugging.

15 years agoPatch from Nicolas Vivien : don't pour rain above cloud layers, turn rain into snow...
fredb [Sun, 2 Nov 2008 09:45:31 +0000 (09:45 +0000)]
Patch from Nicolas Vivien : don't pour rain above cloud layers, turn rain into snow when temperature is below 0°C

15 years agoFix a bug where the search() function was not being called if power was false
curt [Thu, 30 Oct 2008 20:42:21 +0000 (20:42 +0000)]
Fix a bug where the search() function was not being called if power was false
or the unit was not serviceable.  This search() routine needs to run every
iteration no matter what the power or serviceable state.  If power is turned
off or the unit becomes unserviceable while a beacon sound is playing, the
search() routine still needs to be called so the sound effect can be properly
disabled.

15 years agoTidy up for a source code "snapshot" release.
curt [Thu, 30 Oct 2008 18:35:44 +0000 (18:35 +0000)]
Tidy up for a source code "snapshot" release.

15 years agoNot finding a depricated config file shouldn't be a fatal error.
curt [Thu, 30 Oct 2008 18:33:28 +0000 (18:33 +0000)]
Not finding a depricated config file shouldn't be a fatal error.

15 years agoDon't allow negative values as argument to pow().
timoore [Tue, 28 Oct 2008 12:10:27 +0000 (12:10 +0000)]
Don't allow negative values as argument to pow().

This was a source of a spew of "NaN" error messages at night when the
sun is at a large angle to the zenith. I don't know why this wasn't a
problem before now.

15 years agoDisable on-screen statistics for the GUI camera
timoore [Tue, 28 Oct 2008 12:10:01 +0000 (12:10 +0000)]
Disable on-screen statistics for the GUI camera

15 years agoFax an INCLUDES problem
ehofman [Sun, 26 Oct 2008 16:59:58 +0000 (16:59 +0000)]
Fax an INCLUDES problem

15 years agoAdd some fuel properties
ehofman [Sun, 26 Oct 2008 10:23:20 +0000 (10:23 +0000)]
Add some fuel properties

15 years ago3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option...
fredb [Sun, 26 Oct 2008 09:38:21 +0000 (09:38 +0000)]
3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option and a Weather Scenario to show up

15 years agoRevert to previous version, Makefile.am shouldn't have been updated
ehofman [Thu, 23 Oct 2008 19:54:47 +0000 (19:54 +0000)]
Revert to previous version, Makefile.am shouldn't have been updated

15 years agoSync.with JSBSim CVS
ehofman [Thu, 23 Oct 2008 19:04:45 +0000 (19:04 +0000)]
Sync.with JSBSim CVS

15 years agoAlasdair Campbell: fix the MK_VIII problems
ehofman [Thu, 23 Oct 2008 16:43:35 +0000 (16:43 +0000)]
Alasdair Campbell: fix the MK_VIII problems

15 years agoProvide an explanation to why a special case is needed
fredb [Sun, 19 Oct 2008 16:26:52 +0000 (16:26 +0000)]
Provide an explanation to why a special case is needed

15 years agoscreenshots: check for empty screenshots-dir
mfranz [Sun, 19 Oct 2008 16:25:05 +0000 (16:25 +0000)]
screenshots: check for empty screenshots-dir

15 years agoRevert to previous revision after an error during last commit
fredb [Sun, 19 Oct 2008 16:22:17 +0000 (16:22 +0000)]
Revert to previous revision after an error during last commit

15 years agoAlex Perry :
fredb [Sun, 19 Oct 2008 16:08:30 +0000 (16:08 +0000)]
Alex Perry :
This patch changes terrasync so it links against the subversion
library if you have it installed.  It supports people who build binary
releases for use by non-developers by removing the runtime external
dependency on having command line svn or rsync available.  Since the
patch changes autoconf to detect libsvn,  I'd appreciate it if people
who release binaries could verify that the detection scripting works
for their platform.

Developer warning:  If you do have libsvn developer libraries
installed, terrasync changes its default option from "-R" to "-S" to
remove the command line dependency.  However, Martin has not yet
uploaded world scenery into the subversion repository so it won't be
useful to fly against and you may want to specify "-R" on the command
line in the short term.  Or run both.

Me: Update MSVC 7.1 project file. Need svn-win32-1.x.y_dev.zip and svn-win32-1.x.y.zip
located at http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100

15 years agoAlex Perry :
fredb [Sun, 19 Oct 2008 16:08:29 +0000 (16:08 +0000)]
Alex Perry :
This patch changes terrasync so it links against the subversion
library if you have it installed.  It supports people who build binary
releases for use by non-developers by removing the runtime external
dependency on having command line svn or rsync available.  Since the
patch changes autoconf to detect libsvn,  I'd appreciate it if people
who release binaries could verify that the detection scripting works
for their platform.

Developer warning:  If you do have libsvn developer libraries
installed, terrasync changes its default option from "-R" to "-S" to
remove the command line dependency.  However, Martin has not yet
uploaded world scenery into the subversion repository so it won't be
useful to fly against and you may want to specify "-R" on the command
line in the short term.  Or run both.

Me: Update MSVC 7.1 project file. Need svn-win32-1.x.y_dev.zip and svn-win32-1.x.y.zip
located at http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100

15 years ago- createModule: add optional arg[] vector arguments
mfranz [Sat, 18 Oct 2008 19:52:18 +0000 (19:52 +0000)]
- createModule: add optional arg[] vector arguments
- make propNodeGhost() public, so that it can be used by non-friends
- SGNasalModelData: create module with arg[] containing two prop ghosts

15 years ago- fix regression: classes derived from SGModelData get the props root
mfranz [Sat, 18 Oct 2008 18:47:28 +0000 (18:47 +0000)]
- fix regression: classes derived from SGModelData get the props root
  via modelLoaded, not a possible Nasal node.
- rename SGNasalModelData::_props to ::_root to avoid confusion

15 years agoset /sim/rendering/particles as global particle switch
mfranz [Fri, 17 Oct 2008 21:25:03 +0000 (21:25 +0000)]
set /sim/rendering/particles as global particle switch

15 years ago.rgb -> .png for generic splash textures
mfranz [Tue, 14 Oct 2008 06:11:44 +0000 (06:11 +0000)]
.rgb -> .png for generic splash textures

15 years agoMove vim syntax files from utils/syntax/ to scripts/syntax/. They aren't
mfranz [Mon, 13 Oct 2008 21:22:10 +0000 (21:22 +0000)]
Move vim syntax files from utils/syntax/ to scripts/syntax/. They aren't
exactly scripts, but neither are they utilities by themselves. And the
neighbourship to the completion scripts makes sense (IMHO).

15 years agolisteners: do no longer set cmdarg() to avoid interference with embedded Nasal
mfranz [Sun, 12 Oct 2008 21:08:44 +0000 (21:08 +0000)]
listeners: do no longer set cmdarg() to avoid interference with embedded Nasal

15 years agoAdded two missing libraries needed by the new terrasync code.
durk [Sun, 12 Oct 2008 09:56:18 +0000 (09:56 +0000)]
Added two missing libraries needed by the new terrasync code.

15 years agoUpdate Terrasync README file
fredb [Sun, 12 Oct 2008 08:03:51 +0000 (08:03 +0000)]
Update Terrasync README file

15 years agoAlex Perry :
fredb [Sun, 12 Oct 2008 07:55:09 +0000 (07:55 +0000)]
Alex Perry :
* Doesn't download the area at lot,lon of 0,0 if terrasync starts before FlightGear is ready
* Attempt to download the Airports directory when no scenery needs to be fetched
* Add svn over http support for flag "-S", in addition to the existing default of rsync
* Add the command line flag "-T" to just refresh the KSFO surrounding area and exit

Frederic Bouvier:
Add a MSVC71 project file

15 years agoadd surface-positions/wing-pos-norm, surface-positions/wing-fold-pos-norm
mfranz [Thu, 9 Oct 2008 16:13:50 +0000 (16:13 +0000)]
add surface-positions/wing-pos-norm, surface-positions/wing-fold-pos-norm

15 years agocompletion: move scripts from tools/ to completion/
mfranz [Mon, 6 Oct 2008 13:26:51 +0000 (13:26 +0000)]
completion: move scripts from tools/ to completion/

15 years agowarn about badly set fg-root
mfranz [Thu, 2 Oct 2008 08:33:49 +0000 (08:33 +0000)]
warn about badly set fg-root

15 years agomake isatty() available for stdout/stderr (hope it works on MS Windows)
mfranz [Wed, 1 Oct 2008 15:03:53 +0000 (15:03 +0000)]
make isatty() available for stdout/stderr (hope it works on MS Windows)

15 years agoNicolas: zsh completion script
mfranz [Wed, 1 Oct 2008 11:32:06 +0000 (11:32 +0000)]
Nicolas: zsh completion script

15 years agodetect parenthesis nesting errors, not only spurious closing parens
mfranz [Tue, 30 Sep 2008 15:37:01 +0000 (15:37 +0000)]
detect parenthesis nesting errors, not only spurious closing parens

15 years ago- improve number detection
mfranz [Mon, 29 Sep 2008 17:02:37 +0000 (17:02 +0000)]
- improve number detection
- use nasal syntax for <script>..</script> in xml mode
- new nasal built-in function id()

15 years agoYASim flap changes from Vivian Meazza
timoore [Mon, 29 Sep 2008 08:00:20 +0000 (08:00 +0000)]
YASim flap changes from Vivian Meazza

15 years agoUpdate MSVC 7.1 projects
fredb [Sun, 28 Sep 2008 08:27:51 +0000 (08:27 +0000)]
Update MSVC 7.1 projects

15 years agoMINGW patch by Csaba Halasz, reworked by me to avoid breaking MSVC or Cygwin build
fredb [Sun, 28 Sep 2008 08:27:32 +0000 (08:27 +0000)]
MINGW patch by Csaba Halasz, reworked by me to avoid breaking MSVC or Cygwin build

15 years ago- remove redundant command
mfranz [Tue, 23 Sep 2008 20:21:19 +0000 (20:21 +0000)]
- remove redundant command
- better alignment of help screen

15 years ago- airportinfo(): remove superfluous indices of threshold/stopway
mfranz [Tue, 23 Sep 2008 20:06:40 +0000 (20:06 +0000)]
- airportinfo(): remove superfluous indices of threshold/stopway
- restore consistent coding style: no 2-space spaghetti code
  indentation, remove trailing spaces, no spaces after ( and before )

15 years agoJames Turner,
ehofman [Sun, 14 Sep 2008 14:31:00 +0000 (14:31 +0000)]
James Turner,

Regarding the Runway selection bug:
The logic here is a bit convoluted, but I also had a dumb bug in normaliseBearing - I was clamping to the wrong range (0..360 instead of -180..180). This caused the scoring code to pick weird runways. I've added some extra cases to my local tests, and here's a fix.

15 years agoAdd the alpha test back in so the instruments won't disappear after changing the...
ehofman [Sun, 14 Sep 2008 09:34:17 +0000 (09:34 +0000)]
Add the alpha test back in so the instruments won't disappear after changing the view direction

15 years agofix a typo
ehofman [Sat, 13 Sep 2008 09:20:47 +0000 (09:20 +0000)]
fix a typo

15 years agoIgnore generated files
fredb [Sat, 13 Sep 2008 08:44:26 +0000 (08:44 +0000)]
Ignore generated files

15 years agoCompile again with MSVC. APIENTRY not defined after last changes
fredb [Sat, 13 Sep 2008 08:41:22 +0000 (08:41 +0000)]
Compile again with MSVC. APIENTRY not defined after last changes

15 years agoJames Turner:
ehofman [Sat, 13 Sep 2008 08:07:22 +0000 (08:07 +0000)]
James Turner:
Trivial patch, but an important milestone:

Convert FGAirport to inherit FGPositioned. This concludes the first phase of the FGPositioned changes, and hopefully the most intrusive ones - adding in the base class. There's lots (and lots) of further work to do on the indexing and querying side, as well as cleaning up the accessors, but that will happen in single source files, or a group of related files at a time.

As a trivial note, this patch does fix a bug where the very last airport in apt.dat would get an invalid type. So for all you people who just love to fly to EHYB (Ypenburg, The Hague), things may work a little more sanely.

I'll intentionally let the dust settle after this patch, so any weird behaviour I may potentially have introduced shows up. Just to re-iterate, so far there should be absolutely no user-visible change in the behaviour of anything - navaids, position init, the route manager, AI flight plans, etc. If there is, please let me know and I'll fix it ASAP.

15 years agoJames Turner:
ehofman [Sat, 13 Sep 2008 08:06:15 +0000 (08:06 +0000)]
James Turner:
By way of example, here's a patch to make the position init code (in fg_init.cxx) cleaner, partly thanks to the FGPositioned changes. It reduces the file size by 200 lines - virtually all of which was copy-and-paste. Once the remaining class (FGAirport) is converted to inherit FGPositioned, all the future patches should be like this - touching one or a few files at most.

This factors the start-offset logic out into a helper, which also does the final property setting (which has to happen on both the /preset and 'real' values). Using the accessors in FGPositioned, and the offset helper, a couple of cases become trivial (fix and nav) and others become much simpler.

15 years agoJames Turner:
ehofman [Fri, 12 Sep 2008 08:46:15 +0000 (08:46 +0000)]
James Turner:
Convert FGNavRecord to inherit FGPositioned. This is much more self-contained than the FGRunway change, since FGNavRecord already had good encapsulation of its state. However, it's a large diff due to moving around two nasty pieces of code - the 'align navaid with extended runway centerline' logic and the 'penalise transmitters at the opposite runway end' logic.

In general things are more readable because I've replaced the Navaid type enum, and the use of Robin's integer type codes, with   switches on the FGPositioned::Type code - no more trying to recall that '6' is an outer marker in Robin's data. The creation code path is also pushed down from navdb into navrecord itself.

15 years agoset wind vector for particle systems
timoore [Thu, 11 Sep 2008 10:29:18 +0000 (10:29 +0000)]
set wind vector for particle  systems

15 years agoremove cruft
timoore [Thu, 11 Sep 2008 10:28:28 +0000 (10:28 +0000)]
remove cruft

15 years agoJames Turner:
ehofman [Thu, 11 Sep 2008 08:38:09 +0000 (08:38 +0000)]
James Turner:
Convert FGRunway to be heap-based, and inherit FGPositioned. This is a large, ugly change, since FGRunway was essentially a plain struct, with no accessors or abstraction. This change adds various helpers and accessors to FGRunway, but doesn't change many places to use them - that will be a follow up series of patches. It's still a large patch, but outside of FGAirport and FGRunway, mostly mechanical search-and-replace.

An interesting part of this change is that reciprocal runways now exist as independent objects, rather than being created on the fly by the search methods. This simplifies some pieces of code that search for and iterate runways. For users who only want one 'end' of a runway, the new 'isReciprocal' predicate allows them to ignore the 'other' end. Current the only user of this is the 'ground-radar' ATC feature. If we had data on which runways are truly 'single-ended', it would now be trivial to use this in the airport loader to *not* create the reciprocal.

15 years agoJames Turner:
ehofman [Wed, 10 Sep 2008 08:54:49 +0000 (08:54 +0000)]
James Turner:

Here's part 2 - converting FGFix (the simplest one) to be both heap-based and inherit FGPositioned. One minor benefit from this is replacing some dangerous code in FGFixList which used to return the address of an iterator member ('&it->second'). To keep the diff a sensible size, I'm not updating the callers to use the richer FGPositioned types - i.e replacing separate lat/lon handling with SGGeod. I will make those cleanups, but in future patches.

15 years agoUpdate MSVC 7.1 project
fredb [Mon, 8 Sep 2008 19:52:34 +0000 (19:52 +0000)]
Update MSVC 7.1 project

15 years agoAdd required include for lower_bound
fredb [Mon, 8 Sep 2008 19:25:45 +0000 (19:25 +0000)]
Add required include for lower_bound

15 years agoJames Turner:
ehofman [Mon, 8 Sep 2008 17:50:06 +0000 (17:50 +0000)]
James Turner:
Here's the very first FGPositioned patch - adding the files, and building them, but nothing else.

15 years agoJames Turner :
fredb [Sun, 7 Sep 2008 08:44:48 +0000 (08:44 +0000)]
James Turner :
If someone could kindly apply the attached patch, that'll keep this from crashing, I believe. The fix is easy since FGAirport can now always provide an active runway - there's no need to guess at random, or rely on the tower having set one up.

15 years agoUpdate MSVC 7.1 projects
fredb [Sun, 7 Sep 2008 08:43:19 +0000 (08:43 +0000)]
Update MSVC 7.1 projects

15 years agoCommit the proper patch stupid :( now with the positioning and orientation code inclu...
ehofman [Fri, 5 Sep 2008 19:46:21 +0000 (19:46 +0000)]
Commit the proper patch stupid :( now with the positioning and orientation code included...

15 years agoDon't update twice..
ehofman [Fri, 5 Sep 2008 11:48:08 +0000 (11:48 +0000)]
Don't update twice..

15 years agorevert the move of the sound positioning code, at least till i found out why it doesn...
ehofman [Fri, 5 Sep 2008 11:05:21 +0000 (11:05 +0000)]
revert the move of the sound positioning code, at least till i found out why it doesn't work this way.

15 years agoMove the soundmanager update code back to the main loop, just prior to updating all...
ehofman [Fri, 5 Sep 2008 09:18:33 +0000 (09:18 +0000)]
Move the soundmanager update code back to the main loop, just prior to updating all the SGSubsystems. Hopefuly this silves the sound problem.