cmake: Use ws2_32.lib instead of the WINSOCK_LIBRARY variable.
Fixup for commit 549c5eccb9e18b6db2f469ca9d38e35dda4e33f1.
Do not refer to the no longer existing WINSOCK_LIBRARY variable.
Instead, at this single place where it is used, just use ws2_32.lib.
James Turner [Thu, 8 Sep 2011 12:59:40 +0000 (13:59 +0100)]
Cmake: Split simgear libraries into core and scene (only scene uses OSG). Fix linkage issues, and make helper binaries (yasim, terrasync) link against less stuff.
Revert to simgears thread support. Flightgear side.
For all source directories outside of simgear/scene,
which really depends very hard on osg, avoid using osg
classes. This should reenable the use of some basic and
scenegraph independent parts of simgear without the
the need for osg.
Martin Spott [Mon, 5 Sep 2011 18:25:30 +0000 (20:25 +0200)]
Make HLA configurable.
Permit un-breaking of FlightGear CMake builds on setups with a working HLA
RTI installed, accommodating with recent changes to SimGear CMake.
A number of cosmetic and/or infrastructural changes.
Traffic Manager:
* Just continue routing until we run out of flights. This change removes one of the major requirements for setting the "Home port" field.
* Add a time restriction requirement for the aircraft scheduler; this became necessary after removing the limited-to-home-port routing restriction.
* Added a new field to the heuristics calculation: take into account whether an aircraft has already been used in a previous session. Rotate aircraft assignments for greater variability across sessions.
* Added a revision number to the cache files, so that old cache results, which are no longer compatible with the new file format, are discarded.
Groundnetwork and traffic control:
* Added a revision number to the cache files, so that old and incompatible results are discarded.
* The caching algorithm probably didn't store the correct data for airports that were processed while the user was quite far away. This is now corrected by checking whether the cached elevation data are equal to the generic airport elevation.
AIAircraft:
* I've been searching for the infamous aircraft bend-over-backward bug, that can occur during initialization, but to no avail yet. The only variable potentially responsible (tgt_vs) wich can explain the irregular jumping behavior, as well as the weird pitch results is initialized in AIAircraft's only constructor (through AIBase), and I can't find any situation in the ground handling code where this variable could get bizarre values. But,
* a couple of tgt_vs. calculations appear to be completely redundant. This value was calculated twice inside the ProcessFlightplan function, and subsequently again in the updateSecondaryTargetValues function. I have removed the calculations in the process flightplan function, without any apparent side effect.
Attempt to tidy up the search path mess (noticed by TorstenD)
When a model is not found in the custom scenery directories, load data
from base-package (instead of trying to access file "").
Also allow paged models to be loaded from custom scenery folders.
Read groundnet node information from the scenery, and (optionally) write it to a cache file. Note that this mechanism should be extended, so that the cache files will be updated whenever the terrain files are changing. The current patch also uncovers a bug, in the sense that the groundnetwork destructor is never called. Presumably this is due to the way airports are allocated in flightgear. Because the ground networks are never saved, I am periodically saving the cache files; but this behavior should probably be changed later on.
The current patch incorporates work contributed by Adrian Musceac.
ThorstenB [Wed, 24 Aug 2011 21:17:05 +0000 (23:17 +0200)]
Avoid excessive load when no navaids are in range
When no navaid is found, '_ref_navaid_id_node->setStringValue("")' results
in a listener firing, which requests another navaid update when no navaid
is available.
=> Resulted in FGPositioned::findClosest being called in every update loop,
when no navaid was within range.
ThorstenB [Sat, 20 Aug 2011 20:55:42 +0000 (22:55 +0200)]
Avoid "no disk in drive" popups on Win7 systems
Stray accesses to exchangeable drives cause pop-up error boxes on
Win7 systems, blocking the entire process.
ThorstenB [Thu, 18 Aug 2011 20:36:44 +0000 (22:36 +0200)]
#410: multiplay manager reporting errors
receive on a non-blocking socket may return 0, which does not indicate an
error - and does not mean "errno" was upated. So do not check "errno",
errors there belong to calls elsewhere...
Error message apparently triggered constantly with FG2.4.0 on Windows.
ThorstenB [Sat, 13 Aug 2011 14:53:47 +0000 (16:53 +0200)]
Fix replay NaN issue due to unrecorded/uninitialized data.
Replay was setting spoiler/speedbrake properties, however these were never
recorded/initialized, resulting in NaNs being introduced.
ThorstenB [Thu, 11 Aug 2011 19:36:29 +0000 (21:36 +0200)]
#359: jumping mouse control axis in "constrained" mouse modes
Experimental patch - let's see if this helps those who saw the issue,
otherwise we'll try a different patch...
Torsten Dreyer [Tue, 9 Aug 2011 16:02:37 +0000 (18:02 +0200)]
Add LOD to each AI model
Add a LOD (range animation) to each AI model if the property
/sim/rendering/static-lod/ai is set to any number greater than
zero. AI models get loaded but only displayed when closer than
the number given in the property (in meters).
If the property is absent or it's value is less or equal 0.0
than no LOD is added to the AI model.
Fixes #397: YASim aircraft start at >32000ft instead of runway
The usual 'modify code before checkin but past testing' Problem.
Return the elevation of the intersection result instead of the
elevation of the querys start point.
Durk Talsma [Sun, 7 Aug 2011 19:38:50 +0000 (21:38 +0200)]
AI/ATC enhancements:
- Better transistion between taxi and takeoff phases.
- Skipping the pushback stages when a gate doesn't require push-back.
- Some test code always chooses the user aircraft as the one that has to hold position.
Get rid of plib to enumerate files. Get a list of files when the directory names contains UTF-8 characters. Doesn't fix issues #394 though because untarka functions should be utf-8 aware
ThorstenB [Sun, 7 Aug 2011 16:24:13 +0000 (18:24 +0200)]
#389: NumPad keys not working when NumLock is off
Map keys to something useful when NumLock is off (arrow keys etc),
since keycode was completely ignored (out of range) otherwise
ThorstenB [Sat, 6 Aug 2011 10:54:21 +0000 (12:54 +0200)]
#393: Vertical speed indicator affected by sim speed up
VSI showed incorrect values with sim speed-up factors != 1.
Time dt must be corrected by sim speed up factor.
ThorstenB [Thu, 4 Aug 2011 16:59:46 +0000 (18:59 +0200)]
Improved CMake support for libsvn
Don't detect libsvn without APR.
When installed, enable libsvn support by default (same as for automake).
When enabled, provide libsvn to fgfs.
gitignore temporary CMake files