]> git.mxchange.org Git - flightgear.git/log
flightgear.git
16 years agoCheck if scenery is available before blowing away existing values in ground cache
timoore [Tue, 11 Dec 2007 11:10:35 +0000 (11:10 +0000)]
Check if scenery is available before blowing away existing values in ground cache

This fixes a race condition when teleporting somewhere outside of the
currently loaded scenery. Before, if there was no valid scenery, an
aircraft might end up at the center of the earth...

16 years agoUse a render target fallback that works in any case.
frohlich [Tue, 11 Dec 2007 06:19:08 +0000 (06:19 +0000)]
Use a render target fallback that works in any case.
Avoids a crash on dri cards on linux.

16 years agoMaik: add ROTORBALANCE axis. Fix spelling of ROTORRELTARGET.
andy [Mon, 10 Dec 2007 19:25:24 +0000 (19:25 +0000)]
Maik: add ROTORBALANCE axis.  Fix spelling of ROTORRELTARGET.

16 years agoTatsuhiro NISHIOKA: initialize classes (fixes segfault on exit on MacOS)
mfranz [Mon, 10 Dec 2007 19:17:57 +0000 (19:17 +0000)]
Tatsuhiro NISHIOKA: initialize classes (fixes segfault on exit on MacOS)

16 years agoadd some generic properties for free use
mfranz [Sat, 8 Dec 2007 09:49:16 +0000 (09:49 +0000)]
add some generic properties for free use

16 years agoCheck for valid multiplayer packet.
timoore [Fri, 7 Dec 2007 12:43:42 +0000 (12:43 +0000)]
Check for valid multiplayer packet.

Instead of just reporting that the magic number, length, etc. of a
multiplayer packet is invalid, abort processing this packet. Also,
check if enough space remains to send a property string.

16 years agoAdd an option to FGTextureManager to create dynamic textures.
timoore [Fri, 7 Dec 2007 09:14:16 +0000 (09:14 +0000)]
Add an option to FGTextureManager to create dynamic textures.

Dynamic textures shouldn't have their STATIC attribute set.

16 years agoChanged GLUT support to use an embedded osgViewer too
timoore [Fri, 7 Dec 2007 09:11:46 +0000 (09:11 +0000)]
Changed GLUT support to use an embedded osgViewer too

16 years ago- move exception handling from init() and childAdded() to add_model()
mfranz [Thu, 6 Dec 2007 18:32:43 +0000 (18:32 +0000)]
- move exception handling from init() and childAdded() to add_model()
- tell why loading a model failed

16 years agotell *why* loading a model failed
mfranz [Thu, 6 Dec 2007 18:04:19 +0000 (18:04 +0000)]
tell *why* loading a model failed

16 years agoVarious updates.
curt [Wed, 5 Dec 2007 19:01:49 +0000 (19:01 +0000)]
Various updates.

16 years agoadd runway number as "id" to the runway hash within an airport hash
mfranz [Wed, 5 Dec 2007 10:57:51 +0000 (10:57 +0000)]
add runway number as "id" to the runway hash within an airport hash
(It's already available as runway hash key, but the runway hash shouldn't
depend on it and be self-contained.)

16 years agobackport from JSBSim/cvs: apply prop sense only once (OK'ed by JSB)
mfranz [Tue, 4 Dec 2007 20:22:36 +0000 (20:22 +0000)]
backport from JSBSim/cvs: apply prop sense only once  (OK'ed by JSB)

16 years agoWin32 fix
fredb [Sun, 2 Dec 2007 12:29:29 +0000 (12:29 +0000)]
Win32 fix

16 years agomake the state of the Meta and Super modifier keys available. These keys
mfranz [Sun, 2 Dec 2007 10:36:58 +0000 (10:36 +0000)]
make the state of the Meta and Super modifier keys available. These keys
are not available out-of-the-box on all systems and keyboards, and should
therefore not be used in files committed to CVS. This makes them well
suited for local key bindings, as they aren't likely to get overwritten
with later releases. SDL supports Meta and Super, OSG supports only Meta,
and GLUT supports neither.

(Somehow this part escaped the previous commit. :-)

16 years agoread key code and modifiers back in after event interface call
mfranz [Sat, 1 Dec 2007 23:37:58 +0000 (23:37 +0000)]
read key code and modifiers back in after event interface call

16 years ago- minor command update (loadxml, savexml, property-scale)
mfranz [Sat, 1 Dec 2007 19:44:00 +0000 (19:44 +0000)]
- minor command update (loadxml, savexml, property-scale)
- add <condition> and <mod-{up,shift,ctrl,alt,meta,super}>
  example to key definition description

16 years agoadd <mod-meta> and <mod-super> XML elements for key bindings
mfranz [Sat, 1 Dec 2007 16:38:49 +0000 (16:38 +0000)]
add <mod-meta> and <mod-super> XML elements for key bindings

16 years agomake the state of the Meta and Super modifier keys available. These keys
mfranz [Sat, 1 Dec 2007 13:09:11 +0000 (13:09 +0000)]
make the state of the Meta and Super modifier keys available. These keys
are not available out-of-the-box on all systems and keyboards, and should
therefore not be used in files committed to CVS. This makes them well
suited for local key bindings, as they aren't likely to get overwritten
with later releases. SDL supports Meta and Super, OSG supports only Meta,
and GLUT supports neither.

16 years agoRewrite SDL code to use an embedded osgViewer.
timoore [Fri, 30 Nov 2007 00:01:01 +0000 (00:01 +0000)]
Rewrite SDL code to use an embedded osgViewer.

This uses the osgViewer infrastructure instead of setting up and osg::SceneView.
When the same change is made for glut, much of render.cxx can be deleted.

16 years agomove callback registration functions to fg_os_common.cxx
timoore [Fri, 30 Nov 2007 00:00:36 +0000 (00:00 +0000)]
move callback registration functions to fg_os_common.cxx

16 years agobackport of code using ModelRegistry
timoore [Thu, 29 Nov 2007 23:59:47 +0000 (23:59 +0000)]
backport of code using ModelRegistry

16 years agoMove to loading tiles and their submodels only by name.
timoore [Thu, 29 Nov 2007 23:59:14 +0000 (23:59 +0000)]
Move to loading tiles and their submodels only by name.

Some cleanup in tileentry.cxx, but mostly code to implement loading of tiles
and their models without reference to FGTileEntry or SGBucket structures.
Also, don't do deferred model loading; load them when the tile is loaded.

16 years agoTiago GUSMAO: keep sound muted after pause/unpause
mfranz [Sat, 24 Nov 2007 08:40:04 +0000 (08:40 +0000)]
Tiago GUSMAO: keep sound muted after pause/unpause

16 years agoinitialize _material pointer in FGGroundCache
timoore [Thu, 22 Nov 2007 23:46:39 +0000 (23:46 +0000)]
initialize _material pointer in FGGroundCache

_material was uninitialized. This was causing a segfault with
as-yet-to-be-checked-in paging code; I don't know if it ever resulted
in a segfault with the old tile loader, but it certainly could have.

16 years agoAdd a command to dump just the terrain portion of the scene graph to a .osg
curt [Wed, 21 Nov 2007 20:51:49 +0000 (20:51 +0000)]
Add a command to dump just the terrain portion of the scene graph to a .osg
file.  Possible uses of this functionality could include converting the
model to some other format or coordinate system for use in some other
visualization or simulation.

17 years agoMinor documentation update.
durk [Sun, 18 Nov 2007 14:22:40 +0000 (14:22 +0000)]
Minor documentation update.

17 years agoinitialize release_keys array
mfranz [Sat, 17 Nov 2007 17:38:48 +0000 (17:38 +0000)]
initialize release_keys array

17 years agoChanged to use getId() instead of using a direct iterator comparison,
durk [Sat, 17 Nov 2007 13:46:35 +0000 (13:46 +0000)]
Changed to use getId() instead of using a direct iterator comparison,
because MSVC8 crashed on that.

17 years agoOlaf Flebbe: Add a few new files to the MSVC projects.
durk [Tue, 13 Nov 2007 20:24:22 +0000 (20:24 +0000)]
Olaf Flebbe: Add a few new files to the MSVC projects.

17 years ago- move temporary keyboard fix from input.cxx to fg_os{,_sdl}.cxx.
mfranz [Mon, 12 Nov 2007 19:29:08 +0000 (19:29 +0000)]
- move temporary keyboard fix from input.cxx to fg_os{,_sdl}.cxx.
  This is required to make sure the same letter key gets released,
  which got the press event. (After Ctrl-press -> a-press -> Ctrl-release
  a-release we want the Ctrl-a binding released, not the a binding.)

- add key listener interface for direct key access from Nasal space

17 years agoalso copy name & type to /sim/current-view
mfranz [Fri, 9 Nov 2007 17:43:22 +0000 (17:43 +0000)]
also copy name & type to /sim/current-view
That's useful for animations, and we can't rely on numbers. And shouldn't.

17 years agoMove some values exclusively used by LaRCsim to LaRCsim
frohlich [Fri, 9 Nov 2007 05:39:13 +0000 (05:39 +0000)]
Move some values exclusively used by LaRCsim to LaRCsim

17 years agodon't overwrite rudder position with nose wheel position
mfranz [Wed, 7 Nov 2007 17:41:31 +0000 (17:41 +0000)]
don't overwrite rudder position with nose wheel position

17 years agomainloop: move event_mgr and viewmgr updated before spatial sound calculations
mfranz [Wed, 7 Nov 2007 15:57:38 +0000 (15:57 +0000)]
mainloop: move event_mgr and viewmgr updated before spatial sound calculations

17 years agomove event_mgr and view_mgr bundle right before the requestRedraw()
mfranz [Tue, 6 Nov 2007 21:05:38 +0000 (21:05 +0000)]
move event_mgr and view_mgr bundle right before the requestRedraw()
This fixes the last jitter problems with views attached to MP/AI
objects, and doesn't seem to cause any new ones.

17 years agochange update order to fdm -> events -> viewmanager
mfranz [Tue, 6 Nov 2007 12:01:29 +0000 (12:01 +0000)]
change update order to fdm -> events -> viewmanager
This removes some jitter in cases where Nasal is used to set up view
parameters from FDM data, such as position and orientation. (The event
subsystem handles Nasal's settimer() calls.)

17 years agorevert swapping of x & y offsets in "lookat" mode
mfranz [Mon, 5 Nov 2007 22:19:39 +0000 (22:19 +0000)]
revert swapping of x & y offsets in "lookat" mode
This was correct in the old repository and in revision 1.1 of the new,
but then broken in revision 1.2. After that, "lookat" and "lookfrom"
mode used different coordinate systems, and the "Adjust View Distance"
didn't work correctly in "lookat" mode.

17 years agoCsaba HALASZ: fix IVSI instrument problem
mfranz [Sat, 3 Nov 2007 21:02:28 +0000 (21:02 +0000)]
Csaba HALASZ: fix IVSI instrument problem

"I have been investigating the Concorde IVSI problem. I came to the
conclusion that the trouble is that the environment altitude and thus
the pressure (which is calculated from that) is lagging by 1 frame.
Normally that wouldn't be a problem, but the IVSI calculates rate of
change and it will use the new dt with the old value difference,
thereby arriving at bad results if dt changes (and it does)."

17 years agosorting nodes -> don't use shared pointer
mfranz [Sat, 3 Nov 2007 17:04:04 +0000 (17:04 +0000)]
sorting nodes -> don't use shared pointer

17 years agoAdd a --vehicle= option which is a synonym for --aircraft= but is more
curt [Fri, 2 Nov 2007 18:39:10 +0000 (18:39 +0000)]
Add a --vehicle= option which is a synonym for --aircraft= but is more
natural when selecting ground vehicles like a jeep or a snowplow.

17 years agosort entries alphabetically (consistent with property browser)
mfranz [Sat, 27 Oct 2007 21:28:56 +0000 (21:28 +0000)]
sort entries alphabetically (consistent with property browser)

17 years agotry to fix yet another crash bug (don't worry, there's one for anybody!)
mfranz [Sat, 27 Oct 2007 19:16:39 +0000 (19:16 +0000)]
try to fix yet another crash bug (don't worry, there's one for anybody!)

17 years agore-active commented out "delete". Doesn't seem to crash anymore.
mfranz [Sat, 27 Oct 2007 19:13:42 +0000 (19:13 +0000)]
re-active commented out "delete". Doesn't seem to crash anymore.

17 years agounescape \a and \b as well
mfranz [Sat, 27 Oct 2007 17:25:39 +0000 (17:25 +0000)]
unescape \a and \b as well

17 years agomake sure snprintf() buffer is terminated
mfranz [Sat, 27 Oct 2007 17:16:00 +0000 (17:16 +0000)]
make sure snprintf() buffer is terminated

17 years agoFix memory leak introduced when we stopped using _context for script
andy [Wed, 24 Oct 2007 18:07:02 +0000 (18:07 +0000)]
Fix memory leak introduced when we stopped using _context for script
invocations, but left it in place for miscellaneous allocation work.
Contexts cache allocated objects in a temps vector and only clear it
out when they are used.

Also, fix a type warning while I'm in there.

17 years agodon't initialize iterator twice
mfranz [Mon, 22 Oct 2007 17:28:08 +0000 (17:28 +0000)]
don't initialize iterator twice

17 years agofix license (Public Domain)
mfranz [Mon, 22 Oct 2007 16:58:46 +0000 (16:58 +0000)]
fix license (Public Domain)

17 years agogetAttribute(): s/refcount/references/
mfranz [Sun, 21 Oct 2007 20:19:12 +0000 (20:19 +0000)]
getAttribute():  s/refcount/references/

17 years agoUse SGSharedPointer instead of the ssgSharedPointer from the plib branch.
durk [Sat, 20 Oct 2007 18:28:22 +0000 (18:28 +0000)]
Use SGSharedPointer instead of the ssgSharedPointer from the plib branch.

17 years agomake node.getAttribute("refcount") return the SGSharedPtr's refcount
mfranz [Sat, 20 Oct 2007 17:16:43 +0000 (17:16 +0000)]
make node.getAttribute("refcount") return the SGSharedPtr's refcount
(meant for debugging purposes)

17 years agoMiscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib
durk [Sat, 20 Oct 2007 08:36:21 +0000 (08:36 +0000)]
Miscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib
version
* Delete ai list objects in ~ATC/AIMgr.cxx:AIMgr::~AIMgr()
* Delete colors in GUI/new_gui.cxx: NewGui::~NewGui.cxx
* Delete memory allocated to the class member "route" in
  Instrumentation/gps.cxx
* Delete all globals (except a few "unsafe" ones that still cause segfaults
  and need further examination.
* Use an SGShared pointer for navaid memory allocation, so that pointers to
  individual navaid objects can be included safely in multiple navaid lists

17 years ago- airportinfo(): don't bark when no airport was found (K. HOERCHER)
mfranz [Thu, 18 Oct 2007 11:43:38 +0000 (11:43 +0000)]
- airportinfo(): don't bark when no airport was found  (K. HOERCHER)
- simplify listener purging and fix removelistener() return value for
  one-shot listeners
- listener: inherit virtualness
- s/handler/code/ in listener code to be consistent with NasalSys::call

17 years ago- listener: re-order and change callback function args; simplify code
mfranz [Tue, 16 Oct 2007 15:15:41 +0000 (15:15 +0000)]
- listener: re-order and change callback function args; simplify code
- make code look like Andy wrote it (so people know whom to blame :-)
- nasal-props.cxx: warning--

17 years ago- use refcounted node pointers, so that no subsystem (nasal!) can invalidate them
mfranz [Tue, 16 Oct 2007 15:01:19 +0000 (15:01 +0000)]
- use refcounted node pointers, so that no subsystem (nasal!) can invalidate them
- add frame signal for debugging purposes

17 years agogive FDMs one update cycle time before setting the fdm-initialized signal
mfranz [Tue, 16 Oct 2007 07:55:43 +0000 (07:55 +0000)]
give FDMs one update cycle time before setting the fdm-initialized signal
(YASim needs that to fully initialize the landing gear)

17 years ago(depreciated) cmdarg() should return _node, not parent
mfranz [Mon, 15 Oct 2007 19:12:03 +0000 (19:12 +0000)]
(depreciated) cmdarg() should return _node, not parent

17 years ago- add argc/argv arguments to FGNasalSys::call
mfranz [Mon, 15 Oct 2007 16:28:40 +0000 (16:28 +0000)]
- add argc/argv arguments to FGNasalSys::call
- add support for childAdded/childRemoved listeners
- use regular function arguments for property ghosts
- warning--

17 years agorevert meaning of third, optional argument, and add an optional fourth
mfranz [Sun, 14 Oct 2007 18:01:26 +0000 (18:01 +0000)]
revert meaning of third, optional argument, and add an optional fourth
argument:

  setlistener(<property>, <func> [, <initial=0> [, <persistent=1>]])

This definition defaults to the old behavior. The fourth argument can
be set to zero, in which case the function is only called when the
node value has actually changed. It should really default to zero, but
then all callers would have to be reviewed, which is a bit too dangerous
"shortly" before a release.

17 years agofix off-by-one bug for airport type handling
mfranz [Sun, 14 Oct 2007 10:05:41 +0000 (10:05 +0000)]
fix off-by-one bug for airport type handling

17 years agoairportinfo(): add possibility to search for next airport of a particular
mfranz [Sun, 14 Oct 2007 07:51:11 +0000 (07:51 +0000)]
airportinfo(): add possibility to search for next airport of a particular
type: "airport" (default), "seaport", "heliport"

17 years ago- make weighting factors for search function with target heading permanent
mfranz [Fri, 12 Oct 2007 20:53:46 +0000 (20:53 +0000)]
- make weighting factors for search function with target heading permanent
- add "good" offset as suggested by Thomas FOERSTER
- minor tweaks

17 years agoadd new listener type: setlistner(<prop>, <func> [, <type=0>]);
mfranz [Fri, 12 Oct 2007 17:24:43 +0000 (17:24 +0000)]
add new listener type:    setlistner(<prop>, <func> [, <type=0>]);
0 -> trigger whenever property is written to (even if it's the old value; default)
1 -> like 0, but also trigger the function initially
2 -> trigger initially, but then only on changes

17 years agofix another creative char[] == "" comparison
mfranz [Fri, 12 Oct 2007 10:20:54 +0000 (10:20 +0000)]
fix another creative char[] == "" comparison

17 years agoignore strange 00 entry in apt.dat.gz as committed today; example:
mfranz [Thu, 11 Oct 2007 16:22:39 +0000 (16:22 +0000)]
ignore strange 00 entry in apt.dat.gz as committed today; example:
00 12600 HONOLULU CNTR

17 years agocleaner & faster (don't use STL functions ::size() and ::end() in loop
mfranz [Thu, 11 Oct 2007 15:33:24 +0000 (15:33 +0000)]
cleaner & faster (don't use STL functions ::size() and ::end() in loop
condition statements, don't use multiple vector array access via index)

17 years agoprevent endless loop. The new awy.dat.gz has entries like line 2632 ...
mfranz [Thu, 11 Oct 2007 13:51:11 +0000 (13:51 +0000)]
prevent endless loop. The new awy.dat.gz has entries like line 2632 ...
AMIBO  34.973889  021.658056 ARLOS  34.625278  023.000000 1 095 195 M871-MT E-MT W-N4
... where unexpected ids follow (here E-MT W-N4). The loader didn't skipeol.
The additional values are for a first quick&dirty fix just dropped.

17 years agomake that __MWERKS__ :-}
mfranz [Thu, 11 Oct 2007 09:28:05 +0000 (09:28 +0000)]
make that __MWERKS__  :-}

17 years agoMake sure the __MWERKS__ test can't go unnoticed. It's really time to
mfranz [Thu, 11 Oct 2007 09:19:49 +0000 (09:19 +0000)]
Make sure the __MWERKS__ test can't go unnoticed. It's really time to
remove all those 41 hacks if possible. Metrowerks is under category
"Defunct software companies" in Wikipedia, its compiler was known to
work on PowerPC (which we don't support, anway, right?) and on some
Unices. The hacks are in CVS since the first commit 2002/9/10 (old
repository!) and probably were in the code long before that. Any
platform where such a broken compiler is still used, will hardly
be suitable to run fgfs at all.

17 years agosetprop(): make sure return value is always set
mfranz [Thu, 11 Oct 2007 07:58:56 +0000 (07:58 +0000)]
setprop(): make sure return value is always set

17 years agorename FGAirportSearchFilter::acceptable() -> ::pass()
mfranz [Thu, 11 Oct 2007 07:53:17 +0000 (07:53 +0000)]
rename FGAirportSearchFilter::acceptable() -> ::pass()

17 years agodon't write past array bounds
mfranz [Thu, 11 Oct 2007 07:41:44 +0000 (07:41 +0000)]
don't write past array bounds

17 years agoJSB: "Fixed uninitialized variables; patch by Anders Gidenstam"
mfranz [Wed, 10 Oct 2007 22:11:14 +0000 (22:11 +0000)]
JSB: "Fixed uninitialized variables; patch by Anders Gidenstam"

mf: backporting from JSB/CVS to fix serious gear problem

17 years agosetprop(): report error on writing to unwritable property
mfranz [Wed, 10 Oct 2007 19:24:17 +0000 (19:24 +0000)]
setprop(): report error on writing to unwritable property

17 years agochecking the brutal way whether the 41 ugly __MWERKS__ hacks are really
mfranz [Wed, 10 Oct 2007 18:34:28 +0000 (18:34 +0000)]
checking the brutal way whether the 41 ugly __MWERKS__ hacks are really
still needed. At some point they must have fixed their broken compiler.

17 years agosave some startup parameters under /sim/startup/options/. options.cxx puts
mfranz [Sun, 7 Oct 2007 19:27:05 +0000 (19:27 +0000)]
save some startup parameters under /sim/startup/options/. options.cxx puts
them under /sim/presets/ but they aren't save there, and as fgInitPosition
and its subroutines overwrite them, we lose the information about what the
user really wanted. This is a temporary solution -- it really belongs into
options.cxx.

17 years agobetter check all runways, not just the first one :-)
mfranz [Sun, 7 Oct 2007 17:45:58 +0000 (17:45 +0000)]
better check all runways, not just the first one  :-)

17 years agovery funny ... mes is a char*! :-}
mfranz [Sat, 6 Oct 2007 14:56:08 +0000 (14:56 +0000)]
very funny ... mes is a char*!  :-}

17 years agouse airport search filter to only search for "regular" airports (no
mfranz [Fri, 5 Oct 2007 22:15:55 +0000 (22:15 +0000)]
use airport search filter to only search for "regular" airports (no
seaports or heliports, as they aren't rendered at the moment, anyway).
This shall later be made configurable via argument.

17 years ago- make FGAirport::search() more versatile, so that it can't only search
mfranz [Fri, 5 Oct 2007 21:54:52 +0000 (21:54 +0000)]
- make FGAirport::search() more versatile, so that it can't only search
  the next airport or airport with METAR station, but about any type of
  airport
- as a side effect this change makes it also 30 to 50% faster  :-)

In the long run this linear search shall be replaced with a spatial
algorithm (like octree), which will be a much bigger performance gain.

17 years agofix another victim of the new runway search method
mfranz [Fri, 5 Oct 2007 14:34:04 +0000 (14:34 +0000)]
fix another victim of the new runway search method

17 years ago- rename dynamics to _dynamics for consistency reasons
mfranz [Fri, 5 Oct 2007 12:59:43 +0000 (12:59 +0000)]
- rename dynamics to _dynamics for consistency reasons
- preserve information from apt.dat about whether an airport is a "normal"
  airport, a seaport, or a heliport. Do it without wasting another byte
  in the FGAirport structure (saves 50kB of memory). Yes, I know bitfields. :-)

17 years agorevert pitch/roll change (caused problems on reset and on the carrier)
mfranz [Thu, 4 Oct 2007 21:52:50 +0000 (21:52 +0000)]
revert pitch/roll change (caused problems on reset and on the carrier)

17 years agoMake comparisons against OSG version less flakey
timoore [Thu, 4 Oct 2007 20:40:29 +0000 (20:40 +0000)]
Make comparisons against OSG version less flakey
Turn OPENSCENEGRAPH_MAJOR_VERSION, OPENSCENEGRAPH_MINOR_VERSION and
OPENSCENEGRAPH_PATCH_VERSION into a single number for comparisons in the
preprocessor.

17 years agominor fix to please (other) pedants :-)
mfranz [Thu, 4 Oct 2007 20:16:27 +0000 (20:16 +0000)]
minor fix to please (other) pedants  :-)

17 years agonever add an untested "harmless" one-liner before committing ...
mfranz [Thu, 4 Oct 2007 17:23:10 +0000 (17:23 +0000)]
never add an untested "harmless" one-liner before committing ...

17 years agoon't hardcode heading-deg to 270 (and pitch-deg to 0.424 ...)
mfranz [Thu, 4 Oct 2007 17:14:37 +0000 (17:14 +0000)]
on't hardcode heading-deg to 270  (and pitch-deg to 0.424 ...)

17 years ago- if no heading preset was given (>=9999), use wind-from direction
mfranz [Thu, 4 Oct 2007 17:13:41 +0000 (17:13 +0000)]
- if no heading preset was given (>=9999), use wind-from direction
- write chosen runway to /sim/atc/runway, so that ATC can give a hint
- minor cleanup

17 years agowhen searching for the runway best matching a target heading, also consider
mfranz [Thu, 4 Oct 2007 17:11:19 +0000 (17:11 +0000)]
when searching for the runway best matching a target heading, also consider
the runway length/width/surface material, so that fgfs doesn't drop one on
the ridiculous grass stripe parallel to the grown up concrete runway
(LOWL, LOXZ, ...). The weighting factors are for now made configurable,
so that they are easier to adjust. This can later be made static.
(will soon get forward ported to fg/osg)

17 years agostop runway searching when the first airport id doesn't match
mfranz [Wed, 3 Oct 2007 06:42:49 +0000 (06:42 +0000)]
stop runway searching when the first airport id doesn't match

17 years agoFix a typo introduced when supporting faster than integer gps clocks.
curt [Tue, 2 Oct 2007 21:51:50 +0000 (21:51 +0000)]
Fix a typo introduced when supporting faster than integer gps clocks.

17 years agoadd thresholds and stopways
mfranz [Tue, 2 Oct 2007 17:08:10 +0000 (17:08 +0000)]
add thresholds and stopways

17 years agoFix tiny memory leak, as reported by Valgrind.
durk [Tue, 2 Oct 2007 16:14:16 +0000 (16:14 +0000)]
Fix tiny memory leak, as reported by Valgrind.

17 years agoforgot to consider the Liberia--Burma--U.S.A problem
mfranz [Tue, 2 Oct 2007 16:03:27 +0000 (16:03 +0000)]
forgot to consider the Liberia--Burma--U.S.A problem

17 years agoadd airportinfo() function, which returns airport/runway data:
mfranz [Tue, 2 Oct 2007 15:31:03 +0000 (15:31 +0000)]
add airportinfo() function, which returns airport/runway data:

Usage:  airportinfo("KSFO");
        airportinfo(37, 122);  # airport closest to lat/lon
        airportinfo();         # airport closest to current position

Returns nil on error, or a data hash otherwise. Example:

  # length of runway 28R
  var len = airportinfo("KSFO").runways["10L"].length;

Note that only one side of a runway is returned.

17 years agoif a local (ai/mp) root node is given, append it to the module name, so
mfranz [Mon, 1 Oct 2007 15:59:24 +0000 (15:59 +0000)]
if a local (ai/mp) root node is given, append it to the module name, so
that one instance doesn't destroy the namespace of all other instances

17 years agodegrade FGNasalModelData log message from SG_ALERT to SG_WARN
mfranz [Sun, 30 Sep 2007 11:56:21 +0000 (11:56 +0000)]
degrade FGNasalModelData log message from SG_ALERT to SG_WARN

17 years agodon't draw minor ticks where major ticks are to be drawn
mfranz [Sun, 30 Sep 2007 10:06:28 +0000 (10:06 +0000)]
don't draw minor ticks where major ticks are to be drawn
(looks ugly on semitransparent huds)

17 years agoTransfer a variant index of type integer. What the number means is
mfranz [Sat, 29 Sep 2007 18:21:35 +0000 (18:21 +0000)]
Transfer a variant index of type integer. What the number means is
determined by the aircraft. This allows to let an aircraft appear in
the same livery/variant on all machines which the pilot chose.