]> git.mxchange.org Git - flightgear.git/log
flightgear.git
16 years agoAdded copyright to ground radar files
timoore [Mon, 10 Sep 2007 05:08:57 +0000 (05:08 +0000)]
Added copyright to ground radar files

16 years agoGround radar and tower control panel for ATC.
timoore [Sun, 9 Sep 2007 23:22:14 +0000 (23:22 +0000)]
Ground radar and tower control panel for ATC.

This piggybacks on the weather radar for a cool ATC display.

16 years agoChange tower location to an SGGeod. Include taxiways too.
timoore [Sun, 9 Sep 2007 23:21:48 +0000 (23:21 +0000)]
Change tower location to an SGGeod. Include taxiways too.

This has been split from Csaba's ATC ground radar contribution.

16 years agoAdd an autohide property for the 2D panel.
timoore [Sun, 9 Sep 2007 23:21:20 +0000 (23:21 +0000)]
Add an autohide property for the 2D panel.

Author:Csaba Halasz

16 years agorevert accidental checkin
andy [Wed, 5 Sep 2007 02:03:15 +0000 (02:03 +0000)]
revert accidental checkin

16 years agoRon Jensen: extend atmosphere tables to match environment data
andy [Wed, 5 Sep 2007 02:01:57 +0000 (02:01 +0000)]
Ron Jensen: extend atmosphere tables to match environment data

16 years agoCreated a simple README.OSG, added some basic build instructions and added
durk [Sat, 1 Sep 2007 12:51:56 +0000 (12:51 +0000)]
Created a simple README.OSG, added some basic build instructions and added
this file to the release.

16 years agoAdd a check for OpenSceneGraph.
durk [Sat, 1 Sep 2007 12:45:12 +0000 (12:45 +0000)]
Add a check for OpenSceneGraph.

16 years agoDocumentation fixes: Updated the contents of README.plib and README.OpenAL.
durk [Sat, 1 Sep 2007 10:06:56 +0000 (10:06 +0000)]
Documentation fixes: Updated the contents of README.plib and README.OpenAL.
Created a README.SimGear file, which was referred to from configure, but
missing. Also make sure that these files are included in the release.

16 years agoCorrected atmosphere data, extended above 62000ft
timoore [Fri, 31 Aug 2007 18:01:07 +0000 (18:01 +0000)]
Corrected atmosphere data, extended above 62000ft
Author: John Denker
Reviewed by: Ron Jensen and Gerard Robin

16 years agovivian: add misc. MP properties
andy [Mon, 27 Aug 2007 20:58:14 +0000 (20:58 +0000)]
vivian: add misc. MP properties

16 years agoHandle scroll wheel events in osgViewer version
timoore [Mon, 20 Aug 2007 21:38:25 +0000 (21:38 +0000)]
Handle scroll wheel events in osgViewer version

16 years agoosgviewer mouse warp fixes
timoore [Sun, 19 Aug 2007 05:29:00 +0000 (05:29 +0000)]
osgviewer mouse warp fixes
After a mouse warp drop all pointer motion events for the entire frame.

Author: Melchior FRANZ

16 years agoReally implement fgWarpMouse for osgviewer
timoore [Sat, 18 Aug 2007 22:07:11 +0000 (22:07 +0000)]
Really implement fgWarpMouse for osgviewer
This fixes a bug that caused both the x and y values of the mouse to
be reset when the cursor was recentered due to hitting the screen
edge.

Based on a suggested patch from Stuart Buchanan

16 years agoHarald Johnsen: Change directory exists() logic to enable traffic loading
durk [Sat, 18 Aug 2007 05:09:46 +0000 (05:09 +0000)]
Harald Johnsen: Change directory exists() logic to enable traffic loading
on Windows-XP machines.

16 years agoFix for weather interpolation problem from Anders Gidenstam
timoore [Wed, 15 Aug 2007 15:22:44 +0000 (15:22 +0000)]
Fix for weather interpolation problem from Anders Gidenstam
Anders said:
With Stuart's help I've looked closer at this and I think I've tracked
down the cause of the problem:
At least on my computer the sort() call on line 234 in
Environment/environment_ctrl.cxx sorts the vector entries by memory
address instead of altitude, i.e. the custom comparison predicate is not
used. This causes the tables of environment conditions to be reordered
into a wrong order at some weather updates, depending, basically,
on where the memory allocator places the objects. (Btw. why are they are
freshly allocated for each update?)

16 years agoFix test for osg::Viewer.setUpdateVisitor
timoore [Mon, 13 Aug 2007 15:02:42 +0000 (15:02 +0000)]
Fix test for osg::Viewer.setUpdateVisitor

My last attempt reversed the sense of the test and for to include the
osg/Version header file.

16 years agoCompilation fix for OSG 2.1.4
timoore [Sun, 12 Aug 2007 23:01:51 +0000 (23:01 +0000)]
Compilation fix for OSG 2.1.4
setUpdateViewer has been moved to the osgViewer::Viewer object.

16 years agoUpdate MSVC 7.1 projects
fredb [Sun, 12 Aug 2007 13:40:00 +0000 (13:40 +0000)]
Update MSVC 7.1 projects

16 years agoWin32 fix and add a reminder in an unfinished function
fredb [Sun, 12 Aug 2007 13:38:36 +0000 (13:38 +0000)]
Win32 fix and add a reminder in an unfinished function

16 years ago- Ground network XML parsing code reads the new attributes "holdPointType"
durk [Wed, 8 Aug 2007 06:09:58 +0000 (06:09 +0000)]
- Ground network XML parsing code reads the new attributes "holdPointType"
  and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
  current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
  implementation is slightly more computationally intensive than strictly
  required, due to the currently inability of taxidraw to link one specific
  pushBack point to to a particular startup location. FlightGear now determines
  this dynamically, and once we have that functionality in TaxiDraw, the
  initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
  aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
  constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
  limited to include pushback points and routes only, but can probably be
  extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
  order to discourage the use of certain routes over others.

16 years agoModified Files:
frohlich [Tue, 7 Aug 2007 04:57:42 +0000 (04:57 +0000)]
Modified Files:
projects/VC8/FlightGearLib.vcproj src/Include/config.h-msvc8:
Build system updates from Olaf Flebbe.

16 years agoprevent multiple loading of one and the same scenario
mfranz [Fri, 3 Aug 2007 18:02:33 +0000 (18:02 +0000)]
prevent multiple loading of one and the same scenario

16 years agoStuart BUCHANAN:
mfranz [Fri, 3 Aug 2007 12:06:17 +0000 (12:06 +0000)]
Stuart BUCHANAN:

"interpolates METAR changes over time as follows:
1) Wind changes are interpolated as vectors, so the change is much more
natural than before - no-longer will your aircraft be suddenly shoved to
one side.
2) Visibility is interpolated as an X-value, which looks pretty neat.
3) Cloud heights and thicknesses are interpolated if they are close to the
aircraft. Cloud textures are not."

16 years agoVivian MEAZZA: fix subsubmodels
mfranz [Wed, 1 Aug 2007 10:44:17 +0000 (10:44 +0000)]
Vivian MEAZZA: fix subsubmodels

16 years agoMaik: Use exact calculation instead of 1st order approximation
andy [Tue, 31 Jul 2007 15:51:04 +0000 (15:51 +0000)]
Maik: Use exact calculation instead of 1st order approximation

16 years agoLoad BTG files through the osgDB::Registry
timoore [Sun, 29 Jul 2007 22:34:15 +0000 (22:34 +0000)]
Load BTG files through the osgDB::Registry

This is part of changes leading towards using the OSG database pager thread.

16 years agouse correct example output
mfranz [Sun, 29 Jul 2007 22:18:02 +0000 (22:18 +0000)]
use correct example output

16 years agoimprove XML example
mfranz [Sun, 29 Jul 2007 18:32:47 +0000 (18:32 +0000)]
improve XML example

16 years agocleanup: extract globals->get_controls()
mfranz [Sun, 29 Jul 2007 17:36:30 +0000 (17:36 +0000)]
cleanup: extract globals->get_controls()

16 years agocorrections, extensions, spelling, cleanup
mfranz [Sun, 29 Jul 2007 17:16:03 +0000 (17:16 +0000)]
corrections, extensions, spelling, cleanup

16 years agogeneric/output:
mfranz [Sun, 29 Jul 2007 13:58:58 +0000 (13:58 +0000)]
generic/output:
- support optional <preamble> and <postamble> which are written right
  after opening and before closing respectively. This can be used for a header
  line or an XML header.
- unescape <preamble>, <postamble>, <format>, <line_separator>, <var_separator>
  so that \t, \n, \r, \f, \v, \xnn, \nnn can be used directly (\a and \b are
  ignored; use \\ for the backslash) The long names ("carriagereturn") are still
  supported for <var_separator>, but one can just use \r, or \r\n too.
- don't abort when a chunk doesn't have a <node>. This is useful for adding
  constant chunks which consist only of a <format>, such as XML tags.

16 years agoadd unescape function for conversion of \t, \n, \x1b etc. in <format> strings
mfranz [Sun, 29 Jul 2007 12:26:33 +0000 (12:26 +0000)]
add unescape function for conversion of \t, \n, \x1b etc. in <format> strings

16 years agoModified Files:
frohlich [Sun, 29 Jul 2007 10:51:41 +0000 (10:51 +0000)]
Modified Files:
src/Scenery/scenery.cxx: Use geodetic down vector for
ground intersection.

16 years agoModified Files:
frohlich [Sun, 29 Jul 2007 10:21:22 +0000 (10:21 +0000)]
Modified Files:
src/FDM/flight.cxx src/FDM/flight.hxx
src/FDM/LaRCsim/LaRCsim.cxx src/FDM/SP/ADA.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx:
Remove obviously unused variables from FGInterface, make use of
SGMath functions. No longer use plib math functions in FGInterface.

16 years agofix spelling
mfranz [Sun, 29 Jul 2007 09:34:58 +0000 (09:34 +0000)]
fix spelling

16 years agofg-check:
mfranz [Sat, 28 Jul 2007 17:03:10 +0000 (17:03 +0000)]
fg-check:
- fix rle detection
- check all textures (to catch some forms of curruption)

fg-submit:
- documentation fixes & cleanup

16 years ago- set filter dt only once
mfranz [Sat, 28 Jul 2007 08:08:22 +0000 (08:08 +0000)]
- set filter dt only once
- make throttle more responsive (again)

16 years ago- add (damped) aileron/rudder trimming (may be needed for mibs)
mfranz [Fri, 27 Jul 2007 21:57:55 +0000 (21:57 +0000)]
- add (damped) aileron/rudder trimming  (may be needed for mibs)
- use an FPS-independent lowpass filter for all damped properties
- cleanup

16 years agoModified Files:
frohlich [Fri, 27 Jul 2007 19:31:44 +0000 (19:31 +0000)]
Modified Files:
src/AIModel/AIFlightPlanCreateCruise.cxx
src/Traffic/Schedule.cxx:
SGGeoc::fromCart should now work correct.

16 years agoNick "Lethe" WARNE: prevent crash caused by improper use of --multiplay
mfranz [Wed, 25 Jul 2007 15:17:06 +0000 (15:17 +0000)]
Nick "Lethe" WARNE: prevent crash caused by improper use of --multiplay

mf: stripped down the log message a bit :-)

16 years agoavoid g++ warning about the members being initialized out of order
timoore [Tue, 24 Jul 2007 05:36:27 +0000 (05:36 +0000)]
avoid g++ warning about the members being initialized out of order

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Committer: Tim Moore <timoore@redhat.com>

16 years agoREADME typo
timoore [Tue, 24 Jul 2007 05:35:31 +0000 (05:35 +0000)]
README typo

Fix typo in README

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Committer: Tim Moore <timoore@redhat.com>

16 years agoMaik: add a downwashfactor tunable
andy [Mon, 23 Jul 2007 16:10:21 +0000 (16:10 +0000)]
Maik: add a downwashfactor tunable

16 years agocheck for evil "userarchive" flags (in aircraft xml files)
mfranz [Sat, 21 Jul 2007 21:28:39 +0000 (21:28 +0000)]
check for evil "userarchive" flags (in aircraft xml files)

16 years agoSlightly altered calling sequence ensures AI aircraft are removed from
durk [Sat, 21 Jul 2007 12:29:09 +0000 (12:29 +0000)]
Slightly altered calling sequence ensures AI aircraft are removed from
memory when flying out of user range.

16 years ago- Added ultra-light traffic is now a separate traffic class that can have its
durk [Sat, 21 Jul 2007 11:05:20 +0000 (11:05 +0000)]
- Added ultra-light traffic is now a separate traffic class that can have its
own preferential runway support. In future versions, we might want to
condider having a more generic mechanism for this.
- Keep a history of active runway for each class, so that runway assignments
are more consistent after whether updates or time-related schedule changes.

16 years agoSupport for linking against OSG debugging libraries.
timoore [Fri, 20 Jul 2007 17:29:31 +0000 (17:29 +0000)]
Support for linking against OSG debugging libraries.

16 years agoremove redundant if check in cases of if (foo) delete foo;
mfranz [Fri, 20 Jul 2007 14:46:45 +0000 (14:46 +0000)]
remove redundant if check in cases of  if (foo) delete foo;
The C++ standard explicitly allows deleting a null pointer.

16 years agoMartin Spott:
durk [Tue, 17 Jul 2007 18:00:06 +0000 (18:00 +0000)]
Martin Spott:
On most Unix platforms like FreeBSD, Solaris, IRIX (AIX is even worse)
- just not on Linux - the linker wants to know about _all_ required
libraries. So even if a shared library "libosgViewer" itself is linked
against "libosgGA" and "libosgText", you still have to name these in
order to build an "fgfs" binary.

Currently, other libraries like "-losgDB" and "-losgUtil" are
explicitly mentioned on the "fgfs" linker command, but "-losgGA" and
"-losgText" are not. This simple patch lets the linker honour
everything that's required

16 years agoFirst revision of a small utility that will build a simple .ac file around
curt [Mon, 16 Jul 2007 13:47:42 +0000 (13:47 +0000)]
First revision of a small utility that will build a simple .ac file around
a aerial photo texture.  You need to determine the coordinates of the 4
corners of your image and this utility will use that to build a 3d model
in meters and tell you the information to copy into the proper .stg file.

16 years agoFixes and code clean-up:
durk [Sun, 15 Jul 2007 14:08:31 +0000 (14:08 +0000)]
Fixes and code clean-up:

- Airports Directory
Thomas Foerster: Pulls out the FGTaxiNode implementation into gnnode.cxx.
Melchior / Durk: Copy Constructor and assignment operator for FGTaxiRoute

- AIModels Directory
Durk / Melchior / Czaba Halasz: Ensure that all derived classes use AIBase
member 'callsign'. Adapted, moved and deleted getter/setter functions where
necessary
Czaba Halasz: Fix AIBase model path vs. submodel path consistency.

- Traffic Directory and AIModels CreateFlightPlanCruise
DT: Temporary revert parts of the position estimation code.

17 years agoremove material name from the class
mfranz [Sat, 14 Jul 2007 07:35:12 +0000 (07:35 +0000)]
remove material name from the class

17 years agoAlso untie waypoint-missed-count.
frohlich [Sat, 14 Jul 2007 04:27:47 +0000 (04:27 +0000)]
Also untie waypoint-missed-count.

17 years agomove the other parts of _init_keyboard() to _postinit_keyboard(), too.
mfranz [Fri, 13 Jul 2007 10:15:48 +0000 (10:15 +0000)]
move the other parts of _init_keyboard() to _postinit_keyboard(), too.
This is still before anything else than the splash screen is displayed,
and it's cleaner that way. (The Nasal processing parts *must* be there.)

17 years ago- use ostringstream instead of sprintf() for the __js%d namespaces
mfranz [Thu, 12 Jul 2007 22:57:14 +0000 (22:57 +0000)]
- use ostringstream instead of sprintf() for the __js%d namespaces
- set namespace __kbd for all keyboard Nasal code (not meant for public use)
- read <nasal><script> blocks from the keyboard file

17 years agomake properties created via --prop option default to type UNSPECIFIED.
mfranz [Thu, 12 Jul 2007 14:45:46 +0000 (14:45 +0000)]
make properties created via --prop option default to type UNSPECIFIED.
For compatibility with the old behavior just ask for a string:
--prop:string:foo=0  or shorter  --prop:s:foo=0

17 years agoa token can be empty (empty line), in which case there's no token[0]
mfranz [Wed, 11 Jul 2007 15:18:24 +0000 (15:18 +0000)]
a token can be empty (empty line), in which case there's no token[0]

17 years agodon't use _tgt_rudder uninitialized
mfranz [Wed, 11 Jul 2007 10:56:33 +0000 (10:56 +0000)]
don't use _tgt_rudder uninitialized

17 years agoHans FUGAL: mac compilation fix
mfranz [Tue, 10 Jul 2007 18:35:50 +0000 (18:35 +0000)]
Hans FUGAL: mac compilation fix

17 years agoBugfixes: 1) Fix the if (next) setLeadDistance bug
durk [Tue, 10 Jul 2007 07:01:54 +0000 (07:01 +0000)]
Bugfixes: 1) Fix the if (next) setLeadDistance bug
             (reported by Csaba Halaszi /helijah)
          2) Decrease AI aircraft Heading error tolerance to 1% of its
             original value. This is necessary to mitigate spinning and
             makes for actual "on-runway" landings.

17 years agoMaik: remove redundant (and innapropriate in the YASim core) property interface for...
andy [Mon, 9 Jul 2007 19:51:01 +0000 (19:51 +0000)]
Maik: remove redundant (and innapropriate in the YASim core) property interface for the rotorgear.

17 years agoHarald JOHNSEN: initialize elapsedTime
mfranz [Mon, 9 Jul 2007 17:15:11 +0000 (17:15 +0000)]
Harald JOHNSEN: initialize elapsedTime

17 years agoPublish and update callsigns of Traffic Manager (TM) created AITraffic.
durk [Mon, 9 Jul 2007 05:07:56 +0000 (05:07 +0000)]
Publish and update callsigns of Traffic Manager (TM) created AITraffic.

17 years agoModified Files:
frohlich [Sun, 8 Jul 2007 08:46:29 +0000 (08:46 +0000)]
Modified Files:
src/AIModel/AIFlightPlan.hxx
src/AIModel/AIFlightPlanCreateCruise.cxx
src/AIModel/AITanker.cxx src/Traffic/Schedule.cxx:
Move member variables that should better be in function local
scope into the functions. Make more use of SGMath functions.

17 years agoFix "Tankers fly at warp 2" bug.
durk [Sun, 8 Jul 2007 07:08:49 +0000 (07:08 +0000)]
Fix "Tankers fly at warp 2" bug.

17 years agoFixed an overly ambitious checkForCircularWaits() function. AI Aircraft
durk [Sat, 7 Jul 2007 12:52:49 +0000 (12:52 +0000)]
Fixed an overly ambitious checkForCircularWaits() function. AI Aircraft
don't mysteriously disappear anymore when confronted with the user
controlled aircraft.

17 years agoMaik JUSTUS: swap stereo L/R, and fix Doppler
mfranz [Fri, 6 Jul 2007 20:53:48 +0000 (20:53 +0000)]
Maik JUSTUS: swap stereo L/R, and fix Doppler

17 years agoWrong subtraction order lead to the "extra" space available (instead
andy [Thu, 5 Jul 2007 21:25:01 +0000 (21:25 +0000)]
Wrong subtraction order lead to the "extra" space available (instead
of the extra space *required*) in a rowspan object being redistributed
back into the span, leading to a near-doubling of the size for small
objects with large span ranges.

17 years agoThomas Foerster: Made FGParking a subclass of FGTaxiNode
durk [Thu, 5 Jul 2007 19:00:59 +0000 (19:00 +0000)]
Thomas Foerster: Made FGParking a subclass of FGTaxiNode
                 Fixed bug due to longstanding inconsistency in FGAirport
                 getter functions return types.
Durk Talsma:     Fixed traffic record initialization bug that occured
                 when taxiing traffic was waiting for traffic on runway

17 years agoVivian MEAZZA: remove no longer needed debug messages
mfranz [Thu, 5 Jul 2007 15:28:44 +0000 (15:28 +0000)]
Vivian MEAZZA: remove no longer needed debug messages

17 years agoThomas Foerster:
durk [Wed, 4 Jul 2007 17:42:20 +0000 (17:42 +0000)]
Thomas Foerster:

I refactored the XML loading code out of FGAirportDynamics and
FGRunwayPreference. I also added a new class XMLLoader, which serves as a
facade to the loader functions. Further I changed FGRunwayPreference to just
keep a FGAirport ref, which is more concise and closer to the right(tm)
solution than storing the airport data a second time ;-)

17 years agoThomas Foerster:
durk [Wed, 4 Jul 2007 17:39:03 +0000 (17:39 +0000)]
Thomas Foerster:
I refactored the XML loading code out of FGAirportDynamics and
FGRunwayPreference. I also added a new class XMLLoader, which serves as a
facade to the loader functions. Further I changed FGRunwayPreference to just
keep a FGAirport ref, which is more concise and closer to the right(tm)
solution than storing the airport data a second time ;-)

17 years agomake target RTT texture configurable as <radar-texture-path>
mfranz [Tue, 3 Jul 2007 18:24:45 +0000 (18:24 +0000)]
make target RTT texture configurable as <radar-texture-path>
(ported from fg/plib, but doesn't yet work here)

17 years agoJohn DENKER: validate_format(): handle multiple flags correctly
mfranz [Tue, 3 Jul 2007 17:26:54 +0000 (17:26 +0000)]
John DENKER: validate_format(): handle multiple flags correctly

17 years agoremove the "terrain-elevation" command again. This is no longer necessary,
mfranz [Tue, 3 Jul 2007 15:41:03 +0000 (15:41 +0000)]
remove the "terrain-elevation" command again. This is no longer necessary,
as we have the geodinfo() Nasal function now.

17 years ago- limit max number of messages displayed at the same time to 5 (Ideally,
mfranz [Tue, 3 Jul 2007 15:35:55 +0000 (15:35 +0000)]
- limit max number of messages displayed at the same time to 5 (Ideally,
  it should be just one, but we don't want to block everything and
  don't want to miss messages either.)
- prevent message duplicates

17 years agoJohn DENKER: don't grow /sim/logging/classes indefinitely on read-out
mfranz [Tue, 3 Jul 2007 05:46:59 +0000 (05:46 +0000)]
John DENKER: don't grow /sim/logging/classes indefinitely on read-out

17 years ago- allow multiple message/error dialogs
mfranz [Mon, 2 Jul 2007 14:32:30 +0000 (14:32 +0000)]
- allow multiple message/error dialogs
- hand the generation of the message dialog over to
  $FG_ROOT/gui/dialogs/message.xml

17 years agoTim MOORE:
mfranz [Sun, 1 Jul 2007 16:39:52 +0000 (16:39 +0000)]
Tim MOORE:

"This patch fixes the use of the keypad with numlock in the osgViewer
version of FlightGear."

"This also restores the handling of resize events while trying to stay
out of the way of the multiple display code."

17 years agoCsaba HALASZ: use the OSG member variables right away
mfranz [Sun, 1 Jul 2007 14:26:06 +0000 (14:26 +0000)]
Csaba HALASZ: use the OSG member variables right away
mf: remove redundant ARC check

17 years ago- fix carttogeod() function (don't convert the altitude from radian to degree ;-)
mfranz [Sun, 1 Jul 2007 11:07:53 +0000 (11:07 +0000)]
- fix carttogeod() function (don't convert the altitude from radian to degree ;-)
- better argument check in parsexml()

17 years agominor cleanup: don't need the args array in the class anymore
mfranz [Sat, 30 Jun 2007 09:44:33 +0000 (09:44 +0000)]
minor cleanup: don't need the args array in the class anymore

17 years agoVivian MEAZZA: allow to turn off heading marker (symbol for own aircaft)
mfranz [Sat, 30 Jun 2007 08:53:06 +0000 (08:53 +0000)]
Vivian MEAZZA: allow to turn off heading marker (symbol for own aircaft)
mf: remove commented out

17 years agosync with recent changes to fg/plib
mfranz [Fri, 29 Jun 2007 22:44:41 +0000 (22:44 +0000)]
sync with recent changes to fg/plib

17 years agoadd parsexml() function, which is a wrapper around the built-in easyxml
mfranz [Fri, 29 Jun 2007 15:34:38 +0000 (15:34 +0000)]
add parsexml() function, which is a wrapper around the built-in easyxml
parser. Advantages over xml.nas:             (reviewed and OK'ed by Andy)

- faster (33% ... only. I had hoped for more.)
- more standards compliant
- should support UTF
- I don't have to support it.  ;-)

Usage: parsexml(<path> [, <start-tag> [, <end-tag> [, <data> [, <pi>]]]]);

<path> is an absolute file path, the rest are optional callback functions.

Example:
    parsexml("/tmp/foo.xml", nil, nil, func(d) { print("DATA FOUND: ", d) });

17 years agocomment out cout (XMLVisitor::endXML() works now)
mfranz [Fri, 29 Jun 2007 10:55:52 +0000 (10:55 +0000)]
comment out cout  (XMLVisitor::endXML() works now)

17 years agomake it nicer & shorter :-)
mfranz [Thu, 28 Jun 2007 19:23:57 +0000 (19:23 +0000)]
make it nicer & shorter  :-)

17 years agoAI traffic now honors separate runway assignments for different types of
durk [Thu, 28 Jun 2007 18:30:35 +0000 (18:30 +0000)]
AI traffic now honors separate runway assignments for different types of
traffic (i.e. commercial airliners will use a differnt part of the airport
than general avation, ultralight and/or military traffic.

17 years agoallow to specify a node type: --prop:[type:]name=value
mfranz [Thu, 28 Jun 2007 11:26:40 +0000 (11:26 +0000)]
allow to specify a node type:   --prop:[type:]name=value
where type is one of string (default), double, float, long, int, bool
Using only the first letter works, too.

  --prop:foo=123         ... sets property foo to string 123 (old behavior)
  --prop:string:foo=123  ... verbose version of above
  --prop:s:foo=123       ... slightly less verbose version of above
  --prop:bool:foo=1      ... makes property a bool of value 'true'

I hope this isn't considered a silly gimmick. I need this often and maybe
other developers do, too. It's useful in cases where the difference really
matters. if (getprop("/foo")), for instance, is TRUE even when the property
contains string "false", as all strings are TRUE.

17 years agoThomas Foerster: Replaced AI network route tracing algorithm by a much more
durk [Thu, 28 Jun 2007 07:54:39 +0000 (07:54 +0000)]
Thomas Foerster: Replaced AI network route tracing algorithm by a much more
efficiently performing "Dijkstra algorithm".

Durk Talsma: Added the detection of "circular" wait situations in the AI
ground network. A circular wait is a situation where aircraft a waits for
b; b waits for c; and c (in turn) waits for a. The checkCircularWaits
function detects these situations.

The current "solution" to a circular wait is rather crude: Remove the
aircraft from the scene. A proper solution needs a lot more work, however,
and at least this patch stops the AI system from clogging up. in case of a
circular wait.

17 years agoThomas Foerster: Prepare for the inclusion of aircraft specific performance
durk [Thu, 28 Jun 2007 07:47:20 +0000 (07:47 +0000)]
Thomas Foerster: Prepare for the inclusion of aircraft specific performance
data for AI traffic. Default performance classes are still available as a
backup. This database will allow the calculation of aircraft-specific
take-off speed and estimate runway lenght requirements. Further added
rudimentary support for take-off and landing rotation of AIAircraft.

17 years agoset north/east/down speed to make radar map mode work
mfranz [Wed, 27 Jun 2007 15:28:23 +0000 (15:28 +0000)]
set north/east/down speed to make radar map mode work

17 years agoFix a long standing bug in a code path that is probably executed very rarely.
curt [Tue, 26 Jun 2007 21:29:59 +0000 (21:29 +0000)]
Fix a long standing bug in a code path that is probably executed very rarely.

17 years agomake update interval configurable, even though the default 1.0 is supposed
mfranz [Sun, 24 Jun 2007 22:13:25 +0000 (22:13 +0000)]
make update interval configurable, even though the default 1.0 is supposed
to be a realistic value

17 years agowhat is this "plib" thing?!
mfranz [Sun, 24 Jun 2007 20:34:01 +0000 (20:34 +0000)]
what is this "plib" thing?!

17 years agoMaik JUSTUS: avoid Doppler artifacts (listener changes position quickly, etc.)
mfranz [Sun, 24 Jun 2007 20:32:02 +0000 (20:32 +0000)]
Maik JUSTUS: avoid Doppler artifacts (listener changes position quickly, etc.)

17 years agothe former weather radar is now a generic radar (weather and aircraft),
mfranz [Sun, 24 Jun 2007 19:50:15 +0000 (19:50 +0000)]
the former weather radar is now a generic radar (weather and aircraft),
so rename the instrument from <wxradar> to <radar>

17 years ago- don't mix /instrumentation/radar and /instrumentation/wxradar wildly
mfranz [Sun, 24 Jun 2007 17:15:48 +0000 (17:15 +0000)]
- don't mix /instrumentation/radar and /instrumentation/wxradar wildly
  together -- there's only *one* instrument node now
- don't take "random" tacan, but <tacan-source> from the instrumentation
  config (or /instrumentation/tacan[0] by default)
- don't take "random" display-controls from /instrumentation/tacan[0]
- default name is now "radar" (formerly "wxradar")

17 years agodegrade "Warning: catching up on tile delete queue" from SG_ALERT to SG_WARN.
mfranz [Sun, 24 Jun 2007 08:30:55 +0000 (08:30 +0000)]
degrade "Warning: catching up on tile delete queue" from SG_ALERT to SG_WARN.
* it says it's a warning (while in fact it's just saying what it's doing)
* the user can't do much here (yes, flying slower, but it doesn't say that :-)
* scrolling those countless messages in the terminal puts stress on the CPU
  in a time when it's apparently already struggling