1
0
Fork 0
Commit graph

8226 commits

Author SHA1 Message Date
Frederic Bouvier
e46357d819 Disable LOD when rendering to the shadow map.
Produce few NaNs at start
2012-04-01 23:07:33 +02:00
Frederic Bouvier
b05bbddde5 Make the shadow map available for effects 2012-03-31 22:50:38 +02:00
Frederic Bouvier
7e6ecfec56 Fix picking zone display 2012-03-31 21:59:50 +02:00
Frederic Bouvier
e4094356f5 Be sure to not render light volumes in the classical renderer 2012-03-31 20:39:47 +02:00
Frederic Bouvier
2416f9f8d8 Working spot and point lights
Use 8bit normals if /sim/rendering/no-16bit-buffer is set to true. May be usefull for old card returning 0x8cda at fbo setup time
White/gray specular material
s/Tabs/Spaces/
2012-03-31 20:16:36 +02:00
Erik Hofman
47a910bccc Make sure _avionics is enabled before calling suspend, this fixes a crash caused by the way AI models are handled now. 2012-03-31 11:45:28 +02:00
Frederic Bouvier
954a09dce1 Shadow map size settable at run-time. It needs to be a power of two. Now needs a real gui dialog 2012-03-30 22:30:26 +02:00
Frederic Bouvier
0dcadb7e1a Fix a typo in proptest.cpp 2012-03-30 20:59:39 +02:00
Frederic Bouvier
440234d4eb Compile proptest.cpp with MSVC. There is still a link problem though 2012-03-30 07:41:08 +02:00
Frederic Bouvier
1194f1f991 Implement Cascade Shadow Mapping in the Rembrandt renderer.
Shadow map size is set by the /sim/rendering/shadows/map-size property before starting fgfs. Its default value is 4096. Maximum value is 16384 in most card
2012-03-30 07:28:04 +02:00
Emilian Huminiuc
825d6565a4 YASim: enable building of YASim's proptest utility
Signed-off-by: Emilian Huminiuc <emilianh@gmail.com>
2012-03-29 09:29:29 +01:00
ThorstenB
5ef15023fc Properly drop empty tiles from tile cache.
Tiles which expired before being loaded could clog the tile cache.
2012-03-28 23:03:13 +02:00
Frederic Bouvier
8a382cd536 Fix normal storage into texture data. Input [-1..1] should be output to [0..1] 2012-03-28 22:39:28 +02:00
James Turner
f0bf3ed841 Fix total-distance computation in the route-manager, and expose some additional values - departure and arrival field elevation, and total distance along the route of a waypoint. (Addresses some feature requests) 2012-03-27 21:54:38 +01:00
ThorstenB
a8fe035b54 #723: perpetual "GPS init complete" info messages.
Don't report "init complete" unless "init" is complete :).
2012-03-27 21:24:54 +02:00
James Turner
a4deeb332e Fix All-FDMs linkage. Thanks Torsten, no idea what ar/ld interaction is happening here. 2012-03-27 15:07:34 +01:00
ThorstenB
834d4e1e3e CameraGroup: adapt order of member vars to their init sequence.
(Avoids flood of "init sequence" GCC warnings, whenever CameraGroup.hxx
is included anywhere)
2012-03-26 21:21:41 +02:00
ThorstenB
d436484c21 Prevent negative alpha value
(affects splash screen)
2012-03-26 21:11:04 +02:00
ThorstenB
1df5347a06 Fix "use of uninitialized data" reported by valgrind.
(issue triggered when FGGlobals::saveInitialState copies the entire
property tree on start-up).
2012-03-26 21:11:04 +02:00
ThorstenB
2f7f5da4ad marker beacon: catch NULL pointer
when runway not in navdb (affects incomplete/inconsistent nav data only).
2012-03-26 21:11:04 +02:00
ThorstenB
cabb17818f Fix "use of uninitialized data" reported by valgrind.
(also pushed to JSBSIM cvs)
2012-03-26 21:11:04 +02:00
ThorstenB
c14343d02b AIFlightPlan: Initialize the same member variables in all constructors.
distance_to_go / lead_distance were not initialized in all constructors.
Fixes 'condition on uninitialized data' reported by valgrind.
Also comment-out unused vars.
2012-03-26 21:11:03 +02:00
ThorstenB
39ce84ac52 Replace unnecessary use of copy constructor. 2012-03-26 21:11:03 +02:00
ThorstenB
f14ca9c611 tilemanager: initialize member variables
Also drop some obsolete members.
2012-03-26 21:11:03 +02:00
James Turner
4bde2451b0 Avoid a crash when using the native menubar on Mac, due to non-static classes with identical names. 2012-03-26 17:38:09 +01:00
James Turner
59253531bc Fix YAsim linkage. 2012-03-26 16:09:21 +01:00
James Turner
a38362646d Don't create intermediate static libraries for build fgfs. (Speeds up rebuilds in Xcode dramatically, possible in other IDEs too) 2012-03-26 13:09:39 +01:00
James Turner
086df400de Fix 2.5D panel hit detection, compute logical panel extend from actions. 2012-03-25 18:46:04 +01:00
Frederic Bouvier
2e735e6234 Warn of harmless messages caused by the Rembrandt renderer 2012-03-25 19:05:10 +02:00
Frederic Bouvier
79396655a3 Remove tabs 2012-03-25 16:07:56 +02:00
Frederic Bouvier
416e6df9e3 First, preliminary, code of the Rembrandt renderer.
The new renderer is activated by the --enable-rembrandt option, or in the preferences.xml file.
The renderer at this stage doesn't have shadows yet, and shows a lighting bug. The slash screen doesn't work too.
2012-03-25 16:06:54 +02:00
Frederic Bouvier
86185c8014 Add options to enable or disable the Rembrandt renderer 2012-03-25 15:28:19 +02:00
Frederic Bouvier
400129ae15 Allow any number of cameras as render stages for a single viewport 2012-03-25 15:28:17 +02:00
Frederic Bouvier
19e7163971 Compile with MSVC 9 2012-03-25 14:39:24 +02:00
Frederic Bouvier
94e3ae4c67 Choose renderer from /sim/rendering/rembrandt property 2012-03-25 14:39:22 +02:00
Frederic Bouvier
1a3f69723b Move camera setup to the renderer 2012-03-25 14:39:19 +02:00
Frederic Bouvier
bca4683d52 Small refactoring in CameraInfo 2012-03-25 14:37:43 +02:00
ThorstenB
11a9bdf29e #548: segfault in AIFlightPlanCreate
check "tn != NULL" before calling tn->getGeod()
2012-03-25 10:34:07 +02:00
ThorstenB
bc9331fc3f No avionics sound group for aimodels. 2012-03-22 23:53:18 +01:00
ThorstenB
7d37f6af58 Don't crash on start-up when avionics sound is disabled.
FGFX::init/soundfx::init use "_avionics" unconditionally, so it has to be
valid, even when avionics sound is disabled. Also allow to properly
enable/disable avioncis sound at run-time.
2012-03-22 23:36:39 +01:00
ThorstenB
22c20a2f09 Make FG_OPTIONS_EXIT work.
'fgfs --version' wants to exit...
2012-03-17 12:01:51 +01:00
ThorstenB
92d5620b9f Fix Linux build 2012-03-16 23:21:07 +01:00
James Turner
8c187164fe Work on making 2D panels act like standard scene-graph elements for picking and drawing.
(This includes 2.5D panels in the 3D scene)
2012-03-16 17:22:18 +00:00
Mathias Froehlich
1ddb658a70 scenery: Move flightgears paging back into the application.
This way of scenery paging is really application code.
Now that the simgear stg loader is seperated from the paging
code, this appication specific paging can reside here.
May be at some time also use the spt stuff here.
2012-03-15 20:56:37 +01:00
Mathias Froehlich
44c716bb03 scenery: The tile entries load callback is not needed anymore.
The stg loader can do this itself.
2012-03-15 19:39:07 +01:00
Mathias Froehlich
8d3e1b06be Remove /sim/paths/use-custom-scenery-data.
Scenery people tell me that this is always set to true
today. Thus we can remove this property as this allows
me for some further osg loader cleanups.
2012-03-15 18:48:57 +01:00
Torsten Dreyer
5caa42af8e Make use of auto-coordination more flexible
- move property /sim/auto-coordination to
  /controls/flight/auto-coordination
- introduce new property /controls/flight/auto-coordination-factor
  with default of 0.5
- auto-coordinate the rudder if auto-coordination is true and the factor
  is greater than zero

backward compatibility for the old property is temporary provided by
a temporary Nasal hack in FGDATA/Nasal/aircraft.nas
2012-03-13 21:00:22 +01:00
Torsten Dreyer
25c6e8acbd bind the sky disable cutoff distance to a property
There used to be a hardcoded visibility of 1000m below which the
sky was disabled. This distance is now bound to
/sim/rendering/minimum-sky-visibility with a default value of 1000
2012-03-09 21:00:23 +01:00
ThorstenB
6113981b39 #702: Misspelled "devices" property node.
(Typo from my commit earlier this week)
2012-03-08 08:58:44 +01:00
ThorstenB
bb59af4357 Fix segfault when loading routes in RouteManager
FGRouteMgr::loadRoute always needs to call "update_mirror" before
returning.
2012-03-07 21:33:08 +01:00
ThorstenB
e24004b17b #589: 2D panels transparent at night. May also fix #591.
Since d91a617423 (vectory color calculations)
all 4 elements of a color were scaled with the respective brightness.
The caused some panels to be transparent at night etc.
Before the change, only the 3 RGB elements of the colors were scaled,
while the 4th element (alpha channel?) remained unaltered.
Commit restores the alpha elements to their original behaviour.
=> "Quick hack" for 2.6.0. Need s.o. to double check the initial changes
and commit something clean to "next".
2012-03-07 20:49:13 +01:00
ThorstenB
ba257eeecf More spring-cleaning fun.
Use tiedPropertyLists, instead of manual tie/unties.
2012-03-07 20:48:00 +01:00
ThorstenB
db098593be #591: Fix sky flickering at certain sun/view angles
Commit 5f0066c resulted in an incorrect angle calculation. At certain view/sun
angles "hor_rotation" and "rf1" would skip from the minimum to the maximum
value).
Also, an offset angle of 90 degrees (PI/2) is added, which seems to align
the sky effect with the sun position. Calculation is probably still wrong,
but seems less wrong than before - and the flickering is gone...
2012-03-07 20:43:52 +01:00
Torsten Dreyer
644bb8c4f4 Spring-cleaning: some minor optimization
- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value
2012-03-06 22:28:18 +01:00
ThorstenB
9264243a71 Use tiedPropertyLists instead of manually matched tie/untie calls.
Ensures we don't forget to untie some individual properties.
2012-03-04 17:38:06 +01:00
ThorstenB
0abf252ec8 Use tiedPropertyLists instead of manually matched tie/untie calls.
Ensures we don't forget to untie some individual properties.
2012-03-04 15:30:08 +01:00
ThorstenB
d0d86bf0b7 Fix type issue.
multi-sample-buffers is int, not bool.
2012-03-03 21:39:22 +01:00
Mathias Froehlich
742f0eb939 Fix compile past last simgear change. 2012-03-03 14:05:43 +01:00
Mathias Froehlich
c71c9aee0a Adapt to simgear SGMath change.
Simgears SGMath has lost its dependency on osg.
Update includes and code using these methods.
2012-03-03 13:37:43 +01:00
Mathias Froehlich
5ca01925cd hla: Rename HLAVariantData* to HLAVariantRecordData*.
Rename the variant record data types and elements to something
more standard conformant. This catches up with recent changes
in simgear.
2012-02-25 18:01:17 +01:00
Mathias Froehlich
c5ddd7b1f3 hla: Avoid using deprecated readObjectModelTemplate.
Avoid using the now deprecated readObjectModelTemplate() method
in HLAFederate. Make more use of the available general
initialization functions in HLAFederate.
2012-02-25 18:01:09 +01:00
ThorstenB
da73dd97d3 Clean-up cmake (linker) dependencies. 2012-02-24 22:23:15 +01:00
ThorstenB
632824e4d8 Fix MSVC build issue.
MSVC complained about ambiguous "floor" when T=<int>.
2012-02-19 20:30:15 +01:00
ThorstenB
511072f206 protocol module: minor clean-up 2012-02-19 14:57:25 +01:00
Thomas Geymayer
dd3afd4c4e Use simgear functions for clip and wrap around. 2012-02-19 14:53:04 +01:00
Thomas Geymayer
ccf15ac97e Remove unneeded function and add bool relative changes 2012-02-19 14:53:04 +01:00
Thomas Geymayer
4ec6810c29 Support relative changes and wrapping for generic protocol input. 2012-02-19 14:53:04 +01:00
ThorstenB
93a5765d08 #669: reset fly-by-view when a new replay loop begins 2012-02-19 14:53:04 +01:00
ThorstenB
39b03594aa Remove obsolete ignore pattern for automake generated headers. 2012-02-17 23:46:42 +01:00
Torsten Dreyer
c5eba72c75 Navradio: provide property is-localizer-frequency
This property is true if the active frequency is tuned to a
paired LOC/GS frequency in the range 108.00 - 111.95 with a
odd 100kHz digit (108.10, 108.15, 108.30, 108.35 ...)
It only indicates, that this _is_ a LOC/GS frequency,
it does _not_ provide any indication if a LOC/GS station is
actually being received.
2012-02-15 22:43:15 +01:00
Torsten Dreyer
4da0760edd Remove the deprecated warning for JSBSim's egt_degf
At least no FGDATA aircraft uses this property anymore.
2012-02-15 15:13:33 +01:00
Torsten Dreyer
ed934c1999 Some xml-autopilot tuning
- Add update-interval-secs to the entire autopilot
- cache min/max values in InputValue
- a little more relaxed "equals zero" checking in the NoiseSpikeFilter
2012-02-15 14:59:10 +01:00
Torsten Dreyer
d141beee0f Accept setting-hpa along with setting-inhg for altimeter 2012-02-13 22:25:30 +01:00
Torsten Dreyer
5a05e30abd Fix file access mode for newnavradio.[ch]xx 2012-02-13 22:24:41 +01:00
Torsten Dreyer
f6c3a41b92 Merge branch 'next' of gitorious.org:fg/flightgear into next 2012-02-12 11:42:01 +01:00
Torsten Dreyer
5ebdcdc3d5 Some autopilot works
- add new <update-interval-secs> for autopilot components.
  This does what it says.
- add new method to PeriodicalValue to normalize symmetric around zero
- move the DigitalFilterImplementation out of the header file
- refactor NoiseSpikeFilter: spare some cpu-cycles and respect periodical
  output
2012-02-12 11:41:21 +01:00
James Turner
a5153615e6 Mac-specific fgjs / event-input fixes from Tatsuhiro. 2012-02-11 17:33:02 +00:00
ThorstenB
58e79013e3 Ron Jensen: fixed a potential NaN and Segfault in JSBSim propeller code
The property /fdm/jsbsim/propulsion/engine/prop-induced-velocity_fps
gives wrong answers, and can become NaN under certain conditions. When thrust is
negative and forward velocity is small we can take the square root of a negative
number. This could occur, for example, when using reverse thrusters on landing.
The value comes out much too high when alpha is near 180, such as taxing with a
tail wind.
2012-02-11 17:12:14 +01:00
ThorstenB
a8d5ac90c6 #656: COM1 frequency set to 0 at startup
Also, don't flood the screen with AI ATC messages when COM1/2 is set to 0
(ignore aircraft "transmissions" on frequency "0 MHz").
2012-02-10 23:43:03 +01:00
ThorstenB
17590ba436 Fix another line lost in a merge conflict. 2012-02-07 21:12:51 +01:00
ThorstenB
ff14ddf914 Fix missing declaration. 2012-02-07 19:32:55 +01:00
ThorstenB
578df0f484 #553: decouple OSG callbacks from Nasal subsystem 2012-02-06 22:19:33 +01:00
ThorstenB
33c63a6d72 This 'fixes' #613 but partly re-introduces #553. 2012-02-06 22:12:58 +01:00
ThorstenB
0b049c877a #591: night-time rendering issues, avoid negative color values
Fog color became negative at certain sun angles (around midnight), which
resulted in weird sky dome coloring issues.
Hack: simply clamp the value for now.
2012-02-05 15:14:30 +01:00
Torsten Dreyer
62dfa8cc64 new command: property-interpolate
exposes the SGInterpolator to <binding><command>
formerly only accessible via Nasal
2012-02-02 22:17:34 +01:00
Torsten Dreyer
72483d565b initialize the heading-indicator/offset-deg in it's class
Don't initialize the offset in the main loop but in
the init method of the implementing class. This ensures
it gets initialized if you instantiate more than one
heading-indicator and does not initialize the property for
unsused heading-indicators (no more stray heading-indicator-fg
property anymore).
2012-02-01 22:24:06 +01:00
ThorstenB
5c3b6a2cc4 Fix string buffer issue with replay time display.
Unclean method of appending a string to a buffer would break with
some compiler optimization settings.
2012-01-31 23:19:02 +01:00
ThorstenB
5f6012802f Use existing define to supply version number. 2012-01-31 21:42:37 +01:00
ThorstenB
7b83b49260 Oops... 2012-01-29 10:44:28 +01:00
ThorstenB
3e08e5ecfe Minor clean-up. 2012-01-29 10:34:11 +01:00
James Turner
b501dc97ce Bug 620, respect enable/disable state of entire menus when using native Cocoa menu 2012-01-25 18:56:51 +00:00
ThorstenB
477e621633 #561: normalize to [0-360[ 2012-01-22 19:15:25 +01:00
ThorstenB
4e9e35a0a2 #609 route manager/nav display related startup segfault
Immediately update the property-tree mirror when adding waypoints (i.e.
using the "--flight-plan=..." startup option).
2012-01-22 11:23:56 +01:00
ThorstenB
64fda03bd6 #605: Reduce warning level for unsupported keys. 2012-01-18 21:41:55 +01:00
ThorstenB
90ce4ec93d Clean-up: move autosave.xml loading code to proper method 2012-01-17 23:49:25 +01:00
Stuart Buchanan
4c321b6b80 Add property controls for cloud impostors and LoD hierarchy radii. 2012-01-17 22:16:58 +00:00
Torsten Dreyer
3bfee87bba bump version number to 2.7.0 2012-01-17 08:36:20 +01:00
Torsten Dreyer
979fc9785b bump version number to 2.6.0 2012-01-17 07:46:52 +01:00
James Turner
96cd6018f9 Allow distinct rule and symbol definitions for navDisplays. 2012-01-14 17:00:50 +00:00
ThorstenB
0b6579e0e4 Fix a minor warning.
System complains about "system" call's result being ignored.
2012-01-12 22:14:17 +01:00
ThorstenB
6f4a090770 #199: fix issue with relative paths
Relative paths don't work with FG. Since we Linux users just love
command-lines and often do use relative paths, make sure to convert them
before use.
2012-01-12 22:14:17 +01:00
James Turner
472cc02d6e NavDisplay: fix update lag when switching range or centre. 2012-01-12 10:08:08 +00:00
ThorstenB
d051ba5cd2 #577: blinking not working for static HUD labels
Only worked for dynamic labels displaying a property (mode!=NONE).
2012-01-10 22:01:05 +01:00
ThorstenB
6b348dc481 #590: agradar copying an uninitialized string
Thanks to Olaf Flebbe.
2012-01-09 23:41:07 +01:00
adrian
045912f5a7 ITM radio calculations are only considered valid
between 40 MHz and 20 GHz.
Fix for bug which assigns a frequency of 0 MHz to
AI aircraft, thus resulting in infinite values.
2012-01-09 21:01:01 +01:00
ThorstenB
e82c36d76b #587: don't crash on negative sizes
(see simgear commit)
2012-01-09 20:29:51 +01:00
Erik Hofman
699f4eeb38 fix a typo 2012-01-09 08:14:46 +01:00
James Turner
fdbdbfe93d When clearing the route, skip generated waypoints. 2012-01-08 19:31:07 +00:00
Mathias Froehlich
db241f3e10 Handle unset texture-compression property correctly. 2012-01-08 20:19:36 +01:00
James Turner
975a5202a8 NavDisplay: fix many bugs relating to stretched and heading-rotated symbols. 2012-01-08 17:47:13 +00:00
Erik Hofman
5f0066c4c2 Fix the sun position and fog/ambient coloring misalignment 2012-01-08 16:28:43 +01:00
Erik Hofman
94e4d19ad1 Merge branch 'next' of gitorious.org:fg/flightgear into next 2012-01-08 15:38:22 +01:00
Erik Hofman
3abf0b5df1 remove some ugly while loops 2012-01-08 13:51:38 +01:00
ThorstenB
59d400d58b Temporarily disable Nasal callbacks in lazily loaded scenery models
to avoid segfaults due to multi-threading issues. Will need to be replaced
by proper fix, if this proves Nasal related segfaults to be fixed.
2012-01-08 13:31:49 +01:00
ThorstenB
246feef85f #553: MP-model-loading related segfault
MP aircraft are loaded by a separate OSG thread (introduced after FG2.4.0).
The OSG thread also calls the "modelLoaded" callback. However, we mustn't
allow the OSG thread to call FGNasalModelData::modelLoaded directly:
FGNasalModelData isn't thread-safe. There are obvious issues (_callCount++;),
tricky issues like calling the Nasal _parser_ or creating hashes and
modifying the global Nasal namespace. It doesn't use locks to protect
against another thread executing a Nasal context or running garbage
collection. It also executes Nasal code itself (the model's "load" hook),
which we also cannot allow in a separate thread...
This patch returns all Nasal parts of MP-aircraft loading (parsing,
module creation, execution) to the main thread, while keeping the
multi-threaded OSG part (loading of MP-aircraft model files itself).
The same issue exists with scenery models (see other commit).

To summarize with 2 words: It s*cks... ;-)
2012-01-08 13:28:49 +01:00
ThorstenB
277ba10b39 Potential fixes for #548, #572, groundnetwork related segfaults
Add some pointer checks - so we at least get some error message naming the
airport with the broken network.
2012-01-08 12:31:18 +01:00
Erik Hofman
d91a617423 vecotry color calculations 2012-01-08 12:09:46 +01:00
ThorstenB
484d3c61f8 #561, clean-up using normalizePeriodic. Thanks to Hyde & James. 2012-01-07 08:17:34 +01:00
James Turner
da7adf63c0 Shortcuts support in the Cocoa menubar. We have fewer keyboard shortcuts for menu items than I realised. 2012-01-06 23:46:35 +00:00
James Turner
b1c6e31c22 Tweaks to get TCAS / multiplayer aircraft showing on the NavDisplay. 2012-01-06 20:47:21 +00:00
James Turner
a0bfa25aa7 Tweak the app-data path on Mac, after discussion with Tat. 2012-01-05 22:10:19 +00:00
Curtis L. Olson
cf86d37514 Fix YASim's /accelerations/pilot/{x,y,z}-accel-fps_sec computations. These
are the accelerations (forces) as felt from the pilot's perspective.  This
combines the accelerations due to change in velocity vector and gravity.

Previosly the gravity part was right, but the body accelerations were being
transformed incorrectly.  The error was very subtle and basically amounted to
the fact that inverting an axis of a vector before transforming it is not
equivalent to transforming the vector and then inverting that axis.

After this fix, pilot accelerations + gyro + gps can be fed into an external
kalman filter and it will converge properly (extra confirmation that there
was a problem and this fix corrects it.)
2012-01-04 19:17:32 -06:00
Stuart Buchanan
af150d1a56 Only initialize MP subsystem if a txhost is set. 2012-01-04 21:47:35 +00:00
James Turner
a3c243f266 Mark NavDisplay stateSet as STATIC 2012-01-04 12:43:25 +00:00
ThorstenB
23cdb0d302 #561: keep magnetic heading within limits when mag-variation is negative
Thanks to Hyde!
2012-01-04 00:00:10 +01:00
ThorstenB
dac00efbc7 Fix some compiler warnings.
Comment out unused code.
2012-01-02 23:16:17 +01:00
Durk Talsma
aab04f44bd Bugfixes and some finetuning:
* Pregenerating taxiroutes could interfere with runway assignments by ATC, when conditions changed, resulting in a taxi to one runway and a takeoff from another
* A simpler solution for the "Error in Traffic record bug". This still needs some more testing, but I haven't seen any error message anymore, since changing to the current code.
* Initialize AI traffic at speed zero, this should prevent some weirdness observed under boundary conditions.
* Don't activate groundnetwork proximity detection for pushback traffic until the "ready for startup message is transmitted. this should allow sufficient time for them to reserve a route, but a little more testing still needs to be done.
2012-01-02 22:23:24 +01:00
Durk Talsma
e0b6ee9d5d --debugMsg; 2012-01-01 15:30:51 +01:00
Durk Talsma
cf279e320b Bugfix: Shutdown the ATC manager when it runs out of waypoints. 2012-01-01 13:12:13 +01:00
Durk Talsma
c8d7b3ecf2 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-12-31 19:59:56 +01:00
Durk Talsma
53445c80d4 Some commented out debugging code that may help us trace down bug 532. 2011-12-31 18:16:38 +01:00
Torsten Dreyer
de7debe253 simplify the METAR string, remove newline etc. 2011-12-31 17:31:13 +01:00
Durk Talsma
b648b71671 Fix for issue: 520: Error in FGTrafficRecord::setPositionAndIntentions. 2011-12-30 15:27:21 +01:00
ThorstenB
229d9273d7 #545 related: User settings not saved when window was closed
via the window buttons instead of pressing ESC or using menu exit.
(More code should be moved after the 2.6 release)
2011-12-30 00:39:31 +01:00
Mathias Froehlich
48b4596a5f Make the use of the compressed internal format a configuration option. 2011-12-29 12:24:04 +01:00
James Turner
c831d9c857 Get the ATC frequency dialogs working again for the 2.6 release. 2011-12-27 22:55:52 +00:00
James Turner
36fc0367d2 Nav-display: expose TCAS threat level correctly. 2011-12-27 20:19:10 +00:00
ThorstenB
f0c729f2d5 #545: Fix ATC chatter sound settings being ignored
FGSampleQueue is initialized at run-time, long after preferences are
loaded from the persistent files - so it should not reset anything.
2011-12-27 13:04:09 +01:00
Torsten Dreyer
ddb4fa050f Some warning fixes, mostly unused variables 2011-12-25 14:41:47 +01:00
Durk Talsma
0bb17d755c Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-12-24 17:56:45 +01:00
Durk Talsma
762d8a90dd Remove a stray debug message.Z 2011-12-24 16:34:33 +01:00
Erik Hofman
cbdd89493f properly add librt when clock_gettime is used 2011-12-24 11:34:35 +01:00
Erik Hofman
05476d0be3 Fix for SF bug #3171743 - P-factor does not take into account the thruster pitch and yaw angles 2011-12-23 14:18:38 +01:00
Torsten Dreyer
520c002058 Fix #535: METAR from command line ignored 2011-12-22 22:11:37 +01:00
James Turner
342140a694 Add test-mode to NavDisplay, and hence fix bugs in range / scale handling. 2011-12-22 14:07:06 +00:00
ThorstenB
596c3e5d03 Fix issues related to #419. 2011-12-19 21:36:42 +01:00
Erik Hofman
1fb790eb60 comment out unused variables and function and properly initialize variables 2011-12-19 16:50:21 +01:00
Frederic Bouvier
c964d0e83e Restore JSBsim and Yasim in VS2008 build 2011-12-18 16:14:53 +01:00
Frederic Bouvier
c676ffaf53 Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-12-17 18:13:31 +01:00
Frederic Bouvier
54d5614e52 Better c++ design to avoid leaks in case of exceptions 2011-12-17 18:13:05 +01:00
ThorstenB
b575446b36 Add some debug messages to help analyzing #385. 2011-12-17 15:26:50 +01:00
ThorstenB
dcaf3d9aea Avoid spamming the log output
Stop printing "State == Running" debug messages in every update loop
(makes "--log-level=debug" a lot more usable)
2011-12-17 15:22:50 +01:00
Erik Hofman
e6e09a8161 Also expose the true sun color in the property tree. 2011-12-17 10:57:08 +01:00
Erik Hofman
ff4c771759 Expose the cloud color in the property tree 2011-12-16 15:37:16 +01:00
Erik Hofman
c78b7e1abb Remove AI prefix for the sound path and add it to the config files instead 2011-12-14 12:45:22 +01:00
Torsten Dreyer
196cfdb569 Fix windows build 2011-12-13 20:48:50 +01:00
adrian
9491c2ea76 Merge branch 'next' into attenuation 2011-12-13 13:35:45 +02:00
adrian
b61e53c484 Merge branch 'navaids-radio' into attenuation 2011-12-13 13:01:23 +02:00
adrian
9cd77924be take care of cases where the model obstructs the antenna 2011-12-13 12:58:44 +02:00
adrian
1c5eb0fb3e Merge branch 'next' into navaids-radio 2011-12-12 14:56:28 +02:00
Erik Hofman
babe714de7 reaneble ai modeul sound effects 2011-12-12 10:49:09 +01:00
adrian
3f3755fda2 Merge branch 'next' into attenuation 2011-12-11 19:06:24 +02:00
James Turner
7c79e16d8d Add hud-cycling back - issue #337 2011-12-11 14:12:17 +00:00
ThorstenB
d47342a5a4 Add --log-class option, improve logging classes.
Replace SG_GENERAL by more specific log classes in many places.
Allow "," to separate logging classes (using "|" is odd on the
command-line).
Also add new option to make logging more useful for developers.
You can use:
  --log-level=debug --log-class=environment
to only get environment debug messages, or
  --log-level=debug --log-class=sound,ai
to only get debug messages related to the sound or AI subsystem.
2011-12-11 14:06:17 +01:00
ThorstenB
7f5dfe1421 Provide error message when file isn't found. 2011-12-11 14:06:17 +01:00
Frederic Bouvier
14b76a1d63 Multiple --atlas options are valid (one for Atlas, one for Terrasync) 2011-12-11 13:12:18 +01:00
ThorstenB
a756ad0f43 #513: netgui alignment mismatching on 32bit/64bit machines
netgui data structure now is identical for all platforms. Manually aligned
the fields, so compilers do not add (CPU architecture-specific) padding.
2011-12-09 19:01:15 +01:00
adrian
3eff9a14c9 Merge branch 'next' into navaids-radio 2011-12-09 18:57:50 +02:00
adrian
b796df3bd7 Merge branch 'next' into attenuation 2011-12-09 18:57:38 +02:00
ThorstenB
4c17cee5fb Lower log level for event input/udev messages. 2011-12-09 17:20:28 +01:00
ThorstenB
444720f62d Avoid useless warnings during FG startup.
Do not warn about missing scenery manager, unless it is really needed.
Also raise warn level for multiple init calls.
2011-12-09 17:19:45 +01:00
ThorstenB
826107f132 #510: Fix disappearing AIShips.
Untangle AI reinit and init methods. Some code in init hooks expects to be
called once only. Derived classes should not redirect their reinit to init,
even if this seems fine for the methods of the derived class itself. This
also triggers the init methods of all base classes, which may not expect
multiple calls to their init methods (or to "init" on "reinit").
2011-12-09 17:06:19 +01:00
ThorstenB
bfb0619f76 Fix memory leak with FGAIModelData.
Be lazy and use ref pointers - to remove memory automatically.
2011-12-09 17:03:14 +01:00
adrian
66fdb2a5e2 Remove interface from Nasal 2011-12-09 15:44:22 +02:00
adrian
24ff279218 itm.cpp: don't polute the global namespace 2011-12-08 20:16:11 +02:00
adrian
f7f8d7dca9 Clean up my code in NasalSys.cxx 2011-12-08 19:48:31 +02:00
adrian
fec3f47154 Document the code better;
Add some checks in the clutter function;
Use string pointers to get materials;
2011-12-08 15:05:27 +02:00
adrian
10e933dc53 Send geod from Nasal, properly document the code, take some parameters from properties 2011-12-06 23:00:50 +02:00
adrian
971c2820b9 Expose a radio function (receiveBeacon) to the Nasal subsystem 2011-12-06 21:03:40 +02:00
adrian
4826b21968 Lower receiver sensitivity, modify loading of antenna pattern 2011-12-06 11:38:48 +02:00
adrian
8a61ad0fc9 Merge branch 'attenuation' into navaids-radio
Conflicts:
	src/Radio/radio.cxx
2011-12-06 10:27:03 +02:00
adrian
451bf89f70 Merge branch 'next' into attenuation
Conflicts:
	src/Radio/radio.cxx
2011-12-06 02:15:04 +02:00
adrian
b7d59463c8 Fix error caused by assert statement in itm.cpp 2011-12-06 02:04:21 +02:00
adrian
e597d6314e rename function 2011-12-05 22:42:40 +02:00
Torsten Dreyer
26011dd9c6 Fix a typo in the radio propagation code
And for sentimental reason: keep the VC90 project file working
2011-12-05 21:40:01 +01:00
adrian
4b8e74c6af Make antenna radiation calculations selectable via switch 2011-12-05 11:43:21 +02:00
Vivian Meazza
b61e22bdb3 Windows fixes/work-arounds
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-05 08:55:33 +00:00
Durk Talsma
482672f941 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-12-04 22:53:58 +01:00
ThorstenB
cc40660206 Performance improvement
Avoid frequently creating/dropping an identical sound sample, when the
nav radio signal is flickering. Always keep most recent sound when signal
is lost (only stop it/turn volume off).
2011-12-04 21:43:21 +01:00
adrian
d8e4f8035d Merge branch 'attenuation' into navaids-radio 2011-12-04 22:16:45 +02:00
adrian
f720f76456 Hopefully fix windows compilation error 2011-12-04 22:08:56 +02:00
adrian
500086adec Read antenna radiation pattern from file 2011-12-04 21:59:38 +02:00
Vivian Meazza
6b1391e404 Make parameter "roll-factor" settable in scenario files
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-12-04 19:10:42 +01:00
Durk Talsma
f7cd808f23 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-12-04 18:35:13 +01:00
Durk Talsma
32eb0fd00c Merge branch 'merge-requests/1555' into next 2011-12-04 17:33:04 +01:00
Durk Talsma
fcfb905ef1 Make sure not to disable the entire ATC system when handling special cases. 2011-12-04 17:31:02 +01:00
ThorstenB
07aa70dce9 sound: fix sound-buffer-in-use issue
FGFX objects must be dereferenced early enough, and sound manager must be
removed late enough - otherwise openal complains about resources being
still in use when tryin to remove buffers.
Also: do not create FGFX objects for AI/MP aircraft, when AI sound is
disabled.
2011-12-04 17:18:02 +01:00
ThorstenB
9933a7cb4a cmake: add support for Torsten's UDev EventInput
(Hopefully meeting Torsten's quality expectations)
2011-12-04 14:37:25 +01:00
adrian
69b73a0233 Merge branch 'next' into attenuation 2011-12-04 11:30:16 +02:00
adrian
6d816823db Load pattern file from FG_HOME/antennas 2011-12-04 11:28:59 +02:00
Torsten Dreyer
ded106fe31 event input for Linux: substitude dbus+hal by udev 2011-12-03 22:59:20 +01:00
adrian
693f868930 Get rid of annoying printf messages in itm.cpp 2011-12-03 20:08:50 +02:00
adrian
b685fffd82 Set ATC ground tx-power and antenna gain to smaller values 2011-12-03 18:55:11 +02:00
adrian
52bdb959c7 Rename conversion functions to be more explicit
...and set some more properties: tx-erp, etc.
2011-12-03 18:48:24 +02:00
Erik Hofman
61e60484c8 make the sound of the base model work again. this also gives an indication where things start to go wrong. 2011-12-03 15:29:04 +01:00
adrian
e4f511fb31 Write a few more properties:
signal-dbm - signal strength in dBm
field-strength-uV - signal strength in microvolts
2011-12-03 16:00:14 +02:00
Erik Hofman
831f81d97c Properly construct a string from another string and an integer, use a relative path for sound construction, allow enable/disable aimodel sounds using /sim/sound/aimodels/enabled 2011-12-03 14:40:48 +01:00
adrian
3340694170 Add some functions to convert between various units 2011-12-02 19:13:53 +02:00
adrian
6179c26a04 Set a couple of properties using the node /sim/radio
Also use correct the polarization calculations, using
Simgear constants for degree to radians conversions
2011-12-02 17:38:52 +02:00
adrian
e3e23b0915 Add function to calculate polarization loss
This function is reliable only for vertical polarization
2011-12-01 22:46:46 +02:00
adrian
7e2391dceb Merge branch 'attenuation' into navaids-radio 2011-12-01 14:34:40 +02:00
adrian
ad6b0b81da Make polarization a configurable parameter 2011-12-01 14:33:25 +02:00
adrian
1db2d8a660 Start implementing antenna properties 2011-12-01 14:28:20 +02:00
adrian
8184c290cc Merge branch 'radio-clutter' into attenuation 2011-12-01 13:37:12 +02:00
adrian
c112b8b8e1 Merge branch 'next' into attenuation 2011-12-01 13:36:53 +02:00
adrian
1c1e954de2 Remove hard-coded values wherever possible;
Make most of the station parameters configurable outside
the attenuation functions with the ultimate goal of exposing
them via the property tree
2011-12-01 13:34:34 +02:00
ThorstenB
32c4cfa768 Fix shared library build for metar executable 2011-11-30 21:45:22 +01:00
adrian
0c66ca6785 remove debugging code 2011-11-29 16:38:02 +02:00
adrian
8928e0c415 Clutter loss doesn't depend anymore on sampling distance
Also, fix double horizon diffraction, the second horizon
is relative to the first horizon, not to the beginning of
the path.
2011-11-29 16:15:06 +02:00
adrian
dcc915e5bd Add separate fields for receiver and transmitter:
- antenna gain and cable losses will be set individualy
- Fix the calculations of the number of elevation points
- Improve clutter loss calculations to yield sane results
2011-11-29 15:00:49 +02:00
James Turner
f054f15693 Fixes for linking with shared SimGear. 2011-11-29 10:24:33 +00:00
adrian
d988e4c4ad forgot about constructor and destructor 2011-11-28 10:49:05 +02:00
adrian
a6b9beca9d rename FGRadio to FGRadioTransmission, add RX and TX antenna heights 2011-11-28 10:38:58 +02:00
adrian
6be68f475d remove unnecessary function 2011-11-28 08:36:56 +02:00
adrian
d23fbc3c13 make clutter loss calculations switchable via property 2011-11-28 08:31:04 +02:00
adrian
4c0c79fa4c Decouple material index from other variables 2011-11-28 07:37:37 +02:00
Erik Hofman
99bb79c7d5 Properly remove FGFX classes when not needed anymore 2011-11-27 15:10:44 +01:00
Erik Hofman
f89ad9baf0 Move some code from the header file to the source file. 2011-11-27 13:48:04 +01:00
Erik Hofman
1e8167164a Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-11-27 13:47:18 +01:00
adrian
6b24aa0c14 Add clutter loss for single horizon diffraction 2011-11-27 12:53:30 +02:00
Erik Hofman
2c8da4c122 fix a typo 2011-11-27 10:52:28 +01:00
adrian
dd6588d4f0 Use landcover to determine ground clutter path loss for LOS
modified:   src/Radio/itm.cpp
	modified:   src/Radio/radio.cxx
	modified:   src/Radio/radio.hxx
2011-11-26 18:51:33 +02:00
ThorstenB
b54defea52 cmake: fix sequence of (static) library dependencies
sgmath depends on sgprops, sgprops depends on sgstructure.
Also, core libraries are enough for fgadmin.
2011-11-26 16:41:35 +01:00
adrian
b2e83c4dcc document transceiver specs 2011-11-26 09:03:29 +02:00
Erik Hofman
ebcc6359b9 Initials sound support for AI models. 2011-11-25 13:39:10 +01:00
Erik Hofman
02c286bb08 Sync. With JSBSim CVS 2011-11-25 13:38:08 +01:00
Stuart Buchanan
4d49329dee Remove 3d clouds reliance on /sim/rendering/shader-effects 2011-11-24 22:28:10 +00:00
adrian
7b101c3c70 cleanup 2011-11-24 18:29:17 +02:00
adrian
a551bf671c check if tuned on frequency 2011-11-24 18:17:13 +02:00
adrian
ff89b81197 add function for navaid reception 2011-11-24 17:40:37 +02:00
adrian
2c6946c3e8 refactor receiveATC(), implement simple LOS routine, set comm1-signal property 2011-11-24 17:25:49 +02:00
adrian
f023c3bc0a log to SG_BULK 2011-11-24 15:37:33 +02:00
adrian
0025dfb9bc Merge branch 'next' into comm-subsystem 2011-11-24 10:20:34 +02:00
adrian
0dd93d56d6 cleanup 2011-11-24 10:19:07 +02:00
adrian
e17852f679 prepare for festival volume 2011-11-24 10:00:28 +02:00
adrian
9bcc3a87b6 cleanup 2011-11-24 06:39:54 +02:00
adrian
98a94d83ef call from FGATCController::transmit() 2011-11-24 06:20:59 +02:00
adrian
322a15f8da add to CMake 2011-11-24 05:38:15 +02:00
adrian
b55fd4de91 separate implementation 2011-11-24 05:02:42 +02:00
adrian
332f76b11e remove subsystem 2011-11-24 04:49:05 +02:00
adrian
9ab41ea158 Merge branch 'next' into comm-subsystem
Conflicts:
	src/Instrumentation/Makefile.am
2011-11-23 14:02:43 +02:00
Anders Gidenstam
50f82808f9 src/FDM/JSBSim/models/FGGasCell.cpp: Restore the ballonet model to a working state. 2011-11-22 21:16:10 +01:00
James Turner
029226f8d4 Use property objects to avoid property look-ups during TimeManager updates. 2011-11-20 18:30:31 +00:00
James Turner
9e344ee645 Avoid crash when reloading GUI from debug menu. 2011-11-20 16:33:22 +00:00
James Turner
ebfdebeb43 Cocoa menu-bar implementation. 2011-11-20 16:26:05 +00:00
ThorstenB
e1c1a28288 Introduce some structure in fgMainLoop.
- Move some code to sub functions.
- Make sound manager a subsystem-manager member (and make sure it's
still processed last).
2011-11-20 16:21:15 +01:00
Erik Hofman
04395fa9a5 Postpone initialization of the avionics soundgroup until avionics are enabled. This prevents AI classes from creating new and unnecessary avionics sample groups. 2011-11-20 15:31:58 +01:00
Erik Hofman
544bad86c7 remove a .swp file 2011-11-20 15:06:10 +01:00
Erik Hofman
9e1121fc4c First implementation of sound effects for AI models. 2011-11-20 15:05:37 +01:00
Erik Hofman
64102d0da9 Allow for a different property root location besides '/' 2011-11-20 15:03:48 +01:00
James Turner
8b340ff043 Hopefully fix non-Mac ;) 2011-11-19 22:42:15 +00:00
Frederic Bouvier
394cc3ee9f Fix MSVC build 2011-11-19 23:37:42 +01:00
James Turner
daa973f1bc And make FGMenuBar abstract too, sinking the current implementation into FGPUIMenubar 2011-11-19 22:04:35 +00:00
ThorstenB
76baf75a47 Fix include dependencies for non-Mac platforms.
;-)
2011-11-19 22:48:26 +01:00
ThorstenB
339c57e0b2 Adapt path of performance-monitor properties. 2011-11-19 22:37:13 +01:00
James Turner
03c966de13 Make FGDialog an interface, moving existing code to FGPUIDialog implementation. (no functionality change, yet) 2011-11-19 20:46:17 +00:00
James Turner
a05ea36acb Restructure GUI code, isolate PLIB in source files, to ease future refactoring and alternative GUI layers. 2011-11-19 20:25:51 +00:00
ThorstenB
4b2506d709 Add new performance monitoring subsystem.
Rename some subsystems for naming consistency.
2011-11-19 15:37:49 +01:00
ThorstenB
1e184bb0f4 Avoid segfault on shutdown
Fixes double-delete of old ATC manager.
2011-11-14 20:38:50 +01:00
Durk Talsma
93f9b471e6 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-11-14 19:36:59 +01:00
Durk Talsma
6fa2b1cbe6 Equate sun angle for morning and afternoon. This is a temporary solution, but should give more consistent results for locations that are relatively close to the poles. 2011-11-14 17:22:02 +01:00
Torsten Dreyer
2b68bebb5d namespace std fixes 2011-11-14 15:33:02 +01:00
Frederic Bouvier
f1d0ac52a6 Fix MSVC9 build 2011-11-14 08:38:58 +01:00
James Turner
85924cf953 Fix some Windows std:: namespace issues. 2011-11-13 21:27:55 +00:00
James Turner
c14b3bc268 std namespace fix 2011-11-13 20:32:42 +00:00
James Turner
07a627680e Get ATIS working again temporarily, since a proper refactoring will take a few days. 2011-11-13 20:32:30 +00:00
Mathias Froehlich
42fb9b8e9f Consolidate the different ReaderWriterOptions classes. 2011-11-13 18:34:53 +01:00
ThorstenB
1366336a87 Drop obsolete include files - no longer used anywhere.
There are replacements in simgear...
2011-11-13 16:56:05 +01:00
ThorstenB
318e7ac773 Untangle subsystems by replacing direct TileCache call with callback. 2011-11-13 15:47:52 +01:00
ThorstenB
93307270a8 Use lazy loading for main aircraft
instead of paging.
2011-11-13 14:29:28 +01:00
ThorstenB
2983814d52 Drop obsolete include
Can we drop "fg_typedefs.h" now? No longer used anywhere...
2011-11-13 14:27:05 +01:00
ThorstenB
7b4c5820cb Show YASim config error messages.
YASim exceptions with error messages got swallowed somewhere, make
sure to show them...
2011-11-13 14:26:37 +01:00
ThorstenB
12b6e8952a Avoid crash in ATIS/ATC modules.
The old ATC_mgr is no longer available/initialized, which caused ATIS/ATC
modules to crash when selecting ATIS frequencies. This adds a guard to
avoid the crash, but doesn't revive the ATIS feature.
2011-11-12 20:51:03 +01:00
James Turner
c92a3313bc Fix a secondary issue in bug 484 - avoid a crash when --lat, --long *and* --airport were specified. ATCmgr assumes /sim/atc/runway is set in this case, but it is not, leading the a runway-not-found assert. 2011-11-12 18:00:12 +00:00
Durk Talsma
4903556bb2 Enable the AI pilot to hit the breaks hard when necessary. 2011-11-12 18:42:59 +01:00
Durk Talsma
0905b4f367 Fixing an age old bug. AIAircraft arriving on an airport never received a proper gateId, causing them to taxi to the end of the world and beyond. 2011-11-12 18:40:23 +01:00
ThorstenB
1eb8d0caa4 #424: Don't page out AI objects. Just load lazily.
Changes commit 1e7d072eed and uses the new
deferred loading - instead of paged (un)loading.
2011-11-10 22:12:54 +01:00
ThorstenB
7aae4484d1 Fixed typo. 2011-11-10 22:10:51 +01:00
James Turner
e89699acef Fix for http://code.google.com/p/flightgear-bugs/issues/detail?id=478 , ensure sun-angle has a valid (default) value at init. 2011-11-10 14:47:57 +00:00
James Turner
f51d58686a Fix http://code.google.com/p/flightgear-bugs/issues/detail?id=484, further compatibility with previous options processing ordering. 2011-11-10 09:15:41 +00:00
James Turner
d2d3fc054e Flip map zoom, to fit with user expectations better. http://code.google.com/p/flightgear-bugs/issues/detail?id=485 2011-11-08 21:06:51 +00:00
Mathias Froehlich
ec16f43f86 Use deferred models for scenery tile models.
Instead of PagedLOD nodes use ProxyNodes for models in
scenery tiles. This should lower the amount of PagedLOD nodes
in the active scene. Since the models are part of the to level
tiles they are then paged out once the tile is paged out.
2011-11-08 21:25:10 +01:00
ThorstenB
6fbb5aaf99 navradio: set receiver's signal-quality-norm to 0 when navaid station
is lost
2011-11-07 21:51:53 +01:00
James Turner
10e6cc016b NavDisplay - cache nearby positioned items, and fix symbol instance queue to be cleared each update. Works much more sanely now. 2011-11-07 19:40:30 +00:00
James Turner
c1eca1ff6b Refactor SGSky handling and ownership - sink into Renderer, remove global variable 'the sky', and hence clean up main loop and subsystem creation a little more. 2011-11-05 17:11:52 +00:00
James Turner
a4a8d08392 JPEG-server support, in the CMake world. 2011-11-05 17:11:39 +00:00
James Turner
daf644d600 Revert my code-cleanup, causing startup crashes, bah. 2011-11-04 12:02:43 +00:00
James Turner
ecced6be78 Fewer static properties in the main loop, minor code tidying. 2011-11-04 09:40:09 +00:00
Anders Gidenstam
cc1ab5b8b5 src/Main/options.cxx: It is rather common to have two --multiplay arguments. 2011-11-02 20:35:37 +01:00
James Turner
d75c0878fe Switch the realWx controller to use the event-manager, and be slightly quieter. 2011-11-01 22:40:31 +00:00
James Turner
4b8ef9c3cf Add compile-time support for a custom fg-root location, when using CMake 2011-11-01 17:05:54 +00:00
James Turner
e819a4aaa4 Make all FDMs selectable at runtime; default LARCsim/UIUC to off. 2011-11-01 16:21:59 +00:00
adrian
9527a0391e add to project files 2011-11-01 17:44:41 +02:00
Mathias Froehlich
d1e5dc95ca Remove automake ignores. 2011-11-01 13:53:52 +01:00
James Turner
70b4f38ebc Goodbye automake. 2011-11-01 11:15:53 +00:00
James Turner
e3037b638f Restore options *processing* order (which is now distinct from *parsing* order), to resolve issues when distinct but internally overlapping options are specified, e.g. for initial position or time. 2011-10-31 13:08:58 +00:00
ThorstenB
c697c3cc3d Fix stupid compile-time switch issue...
... introduced by recent commit.
2011-10-30 20:49:48 +01:00
ThorstenB
acdf0dc469 Clean-up date/time option parser.
Add range checks and provide error messages.
Extend time offset to 64bit - so we're safe for 2038-01-19 (and the next
couple of millions years beyond...).
Support partial date/time strings, such as --start-date-gmt=2011 or
--start-date-gmt=:::12:00:00
2011-10-30 14:48:53 +01:00
Erik Hofman
8f50e24f88 Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-10-30 13:31:55 +01:00
Erik Hofman
1a13ecc1e9 Latest round of JSBim updates. 2011-10-30 13:30:57 +01:00
James Turner
43bc61d131 Make environment-manager closest airport updating quieter, and use an event instead of a manual time counter. 2011-10-30 11:59:24 +00:00
ThorstenB
9c04b2c1ad TCAS: pressure vs radio altimeter
Altert altitudes refer to AGL/radar alt - not sea-level/pressure alt.
Avoids false alerts, i.e. while taxiing.
2011-10-30 11:47:28 +01:00
Mathias Froehlich
2a4657c609 Fix returning reference to temporary. 2011-10-30 10:31:41 +01:00
ThorstenB
b6695cd3fa Configure font in osg StatsHandler for OSG3.
OSG3 relies on "fonts/arial.ttf" being available. FG doesn't provide it -
so it's not necessarily available everywhere (not here). Use one of our
txf fonts instead.
2011-10-29 21:58:11 +02:00
Curtis L. Olson
f59a0611f2 Add OPTION_MULTI to several more options that could potentially be used
multiple times to write/read data to more than one source.
2011-10-29 10:34:06 -05:00
Mathias Froehlich
49b82663e2 Forward resize events to the stats handler. 2011-10-29 14:12:08 +02:00
James Turner
facf4c12d4 Make various protocols support multiple definitions, with the new options parsing code. 2011-10-29 11:15:45 +01:00
adrian
c6062ad93c Merge branch 'next' into comm-subsystem 2011-10-29 12:22:00 +03:00
Mathias Froehlich
81cab66c2c Make use of SGTimeStamp::sleepUntil for accurate sleeping.
For use with frame rate throtteling make use of
SGTimeStamp::sleepUntil. This function should cover the
system dependent parts of accurate sleeps and should
move the system dependent code out of the time manager.
2011-10-28 17:43:47 +02:00
Mathias Froehlich
0bd7078c42 Make use of SGTimeStamp for sleep* 2011-10-28 17:01:50 +02:00
James Turner
956ba8845b Fix Mac crashing on exit - link order determines library load order at runtime, and both ALUT and OpenAL.framework (on Mac) define the alut symbols. Fix the order so we always use ALUT.framework for the alut symbols. 2011-10-28 15:09:10 +01:00
Durk Talsma
2da052d4ab Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-10-27 23:27:21 +02:00
Durk Talsma
7ae1aa4846 Improved AI taxi behavior:
* Use aircraft specific time-stamps for blocking taxiways
* Issue a stop instruction well-ahead of moving onto a blocked taxiway. This still needs some more braking power.
2011-10-27 23:24:56 +02:00
Torsten Dreyer
1a80d70e00 Some autopilot fixes
- fix minor memory leak
- make autopilots addable and removeable at runtime
2011-10-27 08:27:52 +02:00
Durk Talsma
8eca759077 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-10-26 22:38:38 +02:00
Durk Talsma
538e632f45 * Updated routing algorithm. Just sorting the schedules by usage heuristics doesn't work well for major multihub airlines.
* Improved groundnetwork routing algorithm. Don't uncesscarily block taxiways. Instead, use a "just-in-time" blocking system. The unblocking algorithm still needs some work, but the current version is already a major improvement over the previous version.
* Some tweaks to the handover from ground to tower controller. Aircraft could refuse to take-off of even refuse to taxi onto the runway. This now seems to be solved.
2011-10-26 22:26:37 +02:00
James Turner
16a54a4409 Change a hot-spot in the AI code, to use cartesian instead of geodetic math. 2011-10-26 17:26:11 +01:00
James Turner
34f86cd317 Many NavDisplay bug-fixes - almost usable now! 2011-10-24 23:55:46 +01:00
James Turner
9bd4ba6eb0 Anchor flight gear::Waypt's destructor, and make it virtual. 2011-10-24 18:21:50 +01:00
Mathias Froehlich
fea00cc9f8 Add seamless view muliscreen configuration.
Add a new way to configure multi screen systems.
The new version allows easier configuration of displays
that need to fit at the edges as well as configurations
where the screens match at reference points.
This kind of screen configuration will again zoom.
2011-10-23 16:40:13 +02:00
Mathias Froehlich
ad660380c2 Add fixed-near-far camera config parameter.
If set to true, the decision about the near and far
planes in the viewer are still adapted to not clip away
everything before the configured near plane.
2011-10-23 16:40:13 +02:00
James Turner
2157164271 Fix some code which clang didn't like 2011-10-23 15:33:00 +01:00
Durk Talsma
a6de24461e Potential fix for bug #471 (crash in checkspeedadjustment). 2011-10-22 17:57:37 +02:00
Frederic Bouvier
8057c50849 AITraffic fix - forgot two files 2011-10-22 10:31:38 +02:00
Frederic Bouvier
4d9439d0c1 Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-10-22 10:16:26 +02:00
Frederic Bouvier
3a262fe7d3 Fix a problem in AITraffic where waypoint iterator is trashed by push_back. A cleaner solution would be to use indices instead of iterators to track position in the waypoint vector 2011-10-22 10:15:16 +02:00
James Turner
e50ff87300 Relocate appData fgfsrc loading prior to init of fg-root, so we can specify --fg-root that way. 2011-10-21 16:49:15 +01:00
James Turner
e1be74902a Fix automake linkage of metar utility. 2011-10-21 14:15:40 +01:00
James Turner
1b3ea65b5e Hold an owning ref to the HTTTP request. 2011-10-21 12:58:19 +01:00
James Turner
c5cbc57895 Bring metar helper into CMake world, and use new HTTP code. 2011-10-21 12:48:42 +01:00
James Turner
8ef07230c4 Update FGMetar for revised SGMetar constructor. 2011-10-21 10:57:45 +01:00
James Turner
b1b4b7ecf4 Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'. 2011-10-17 17:41:59 +01:00
James Turner
3d861475f7 Fix two issues caught by the German QA department ;) 2011-10-17 17:39:47 +01:00
James Turner
0f5d27c10e Detect and read a config file in FG_HOME - allows nicer tweaking of settings on Mac/Windows for people with Terminal/cmd.exe phobia :) 2011-10-16 21:54:47 +01:00
James Turner
407a495546 Automate TerraSync integration with the scenery / dir creation. Now can be used with only --enable-terrasync (and some patience) 2011-10-16 21:46:27 +01:00
James Turner
3d0254f6ec Allow aircraft-dir option to override aircraft search logic completely. 2011-10-16 21:15:54 +01:00
James Turner
ccb21d4c0c And keep platforms other than my beloved OS-X working too ;) 2011-10-16 19:58:22 +01:00
James Turner
6adb42078e Refactor fg-home computation, use Library/Application Support on Mac. 2011-10-16 19:55:04 +01:00
James Turner
0431822e2a Fix Unix build. 2011-10-16 19:17:23 +01:00
James Turner
b1c7495fec Restructure option/config handling code, to avoid multiple scans & parses for special options (fg-root/fg-aircraft/aircraft). Push most of the code into a new Options class, inside options.cxx, and clean up various call-sites as a result. 2011-10-16 18:35:40 +01:00
James Turner
3d544fbc1f Tweak map-widget data boxes for AI objects, so speed/altitude update in real-time. 2011-10-12 22:33:56 +01:00
Torsten Dreyer
9f41ee414f Join duplicate fields ident and trans_ident in navrecord 2011-10-12 11:06:01 +02:00
James Turner
8986c3488d Make sun-angle a plain property, so observers fire. 2011-10-12 09:17:58 +01:00
ThorstenB
b16338598a Use more specific log classes.
Log class filters work better when different modules
use different classes :).
2011-10-11 21:55:50 +02:00
ThorstenB
53e6c0ac5f Reduce AI/MP lags when removing models
Move load of removing OSG objects to the OSG pager thread
2011-10-11 21:43:24 +02:00
Durk Talsma
020d6a6363 -Revert to the original design. It still appearch to yield the best scheduling results. 2011-10-10 23:03:57 +02:00
Durk Talsma
835334bd4f Finetuning of AI Aircraft landing performance. Aircraft slow down to taxi speeds just before leaving the runway. Increased vTaxi on the runway to further reduce time on the runway and slow down to vTouchdown well ahead of touching down. 2011-10-10 21:55:09 +02:00
Durk Talsma
88dc9a14b7 Remove the assertSpeed debugging code. 2011-10-10 18:51:41 +02:00
Durk Talsma
894f066370 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-10-09 23:46:52 +02:00
Durk Talsma
da3c098a4b AITraffic exits the runway as soon as possible (in theory; the code still needs some fine tuning). 2011-10-09 23:44:42 +02:00
Torsten Dreyer
7431c14ba6 don't use uninitialized variables 2011-10-09 21:37:52 +02:00
Torsten Dreyer
9a21896a33 start adding backward-compatibility to newnavradio 2011-10-09 21:17:33 +02:00
ThorstenB
8b05d7b211 replay system: allow to resume simulation at any point of replay-time.
Currently supported for YASim only.
2011-10-09 20:36:01 +02:00
Torsten Dreyer
9022c6a58d Reintroduce an old bugture: use localizer as dme
Our nav.dat.gz seem to have many bugs regarding paired LOC/DME where
the DME is missing.

A feature has recently been introduced to always use a LOC frequency
as a DME to avoid these issues. However many LOC station do not have
a DME paired at their frequency and this behaviour might be as confusing
as having no DME where one should be.
Before we get new/bugfree navdata, a property can be set to select
the desired behaviour:

if /sim/realism/dme-fallback-to-loc is true or absent, LOC will be
treated as DME (realism is off)
if /sim/realism/dme-fallback-to-loc is false, LOC will be NOT be
treated as DME (realism is on)
2011-10-09 20:21:02 +02:00
ThorstenB
30e2db94b1 Add generic "open-browser" command to show URLs or local HTML/text pages.
Replace deprecated "old-help-dialog" command with generic "open-browser".
Can also be used to add links to aircraft manuals in the menubar (local
file or http) , i.e.
<binding>
    <command>open-browser</command>
    <path>Aircraft/ogeL/FlightManual.html</path>
</binding>
2011-10-09 12:37:43 +02:00
ThorstenB
5b8ab277fd Minor FDM shell performance improvement
Don't resolve all properties at run-time.
2011-10-09 12:24:16 +02:00
Durk Talsma
02712dc1ad Several Bugfixes:
* Landing AIAircraft now land properly!!!
 * Fixed problems with takeoff scheduling.
 * Untangled several vertical speed calculation algorithms.
 * No more bent-over-backwards and jump-in-the-air AI aircraft initializations.
 * Fixed intermixed target speed and target altitude during climb phase.
 * Implemented beginnings of a "line up and wait" procedure.
 * Tried to use actual runway elevation for calculating the decent profile.
2011-10-09 00:25:04 +02:00
James Turner
ef995913e1 Further NavDisplay hacking, symbol binding is working more sanely now. 2011-10-07 08:34:56 +01:00
adrian
312447c565 Merge branch 'next' into comm-subsystem
Conflicts:
	src/ATC/trafficcontrol.cxx
	src/ATC/trafficcontrol.hxx
	src/Instrumentation/CMakeLists.txt
2011-10-06 15:18:44 +03:00
Durk Talsma
a9ac75b9c9 Revert back to the version from sept 4. Vertical speed calculations of decending AI aircraft were messed up. 2011-10-05 21:40:47 +02:00
Torsten Dreyer
e9d24b05ca Introducing: The new navradio code (WIP)
Here comes the work-in-progres code for a new navradio
implementation. Once completed, it will replace the
old/current navradio implementation.
The new code can be activated by setting
/instrumentation/use-new-navradio=true
at startup. This disables the old navradio implementation.

Current state:
- VOR works pretty good including the new
functionality 'code of confusion'.
- LOC and GS basically work
- backward compatibility (many properties) is to be implemented
2011-10-05 15:26:41 +02:00
Mathias Froehlich
a486eebeef hla: Avoid explicit attribute update request. Is already done by simgear. 2011-10-04 20:58:46 +02:00
James Turner
c4c5cc850b Adjust cursor-setting code, for better compatibility with Cocoa-Viewer (OSG patch still required, unfortunately) 2011-10-04 09:17:56 +01:00
James Turner
1692bc749e Mac: Work-around for OSG3's Cocoa Viewer interacting badly with PUI 2011-10-04 09:14:15 +01:00
James Turner
41759b15d6 Work on the NavDisplay instrument. 2011-10-04 08:58:09 +01:00
Torsten Dreyer
5f2fff4ec4 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-10-03 22:29:48 +02:00
Durk Talsma
f2b354d9cb Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-10-03 20:57:32 +02:00
Durk Talsma
4640f5bb02 * A new algorithm for determining hold position instructions. This version still needs some finetuning, but already appears to be more solid than the old version.
* Some tweaks to the traffic scheduling algorithm.
* Misc cleanup.
2011-10-03 20:54:58 +02:00
Mathias Froehlich
40d72b3ba7 hla: use the property based interface from the property data element. 2011-10-03 13:00:25 +02:00
ThorstenB
3451012bca Make LOD properties of AI/MP aircraft run-time configurable. 2011-10-03 12:01:58 +02:00
James Turner
465557cfa7 Improve magnetic heading handling in MapWidget - following some testing at NZCH 2011-10-02 14:30:06 +01:00
Mathias Froehlich
761644c51d hla: use the new HLAFederate::processMessages() call. 2011-10-02 15:13:55 +02:00
ThorstenB
56912c17c5 adf: fix "in-range" node
"in-range" should also be false when no station is available
2011-10-02 13:24:12 +02:00
ThorstenB
558f0c2d8f multiplay manager: option to disable freeze-on-replay feature 2011-10-02 13:23:31 +02:00
ThorstenB
a6a6910653 ATCMGR: fix minor output formatting issue 2011-10-02 13:22:09 +02:00
ThorstenB
ab84ff5904 Replay upgrade, part II: Integrate flight recorder, update replay system.
Drop hard-coded replay property logic, cut ties to net_ctrls, net_fdm.
Improve replay system controls and status information.
2011-10-01 22:58:40 +02:00
ThorstenB
d64bcf0175 Replay upgrade, part I: Add new flight recorder. 2011-10-01 22:41:53 +02:00
Mathias Froehlich
7645dd3a1d hla: make use of createJoin/resignDestroy. 2011-10-01 18:37:55 +02:00
James Turner
283b26114c Fix glx shutdown to only apply on Unix & !Mac (but we should really add a proper ifdef for GLX) 2011-10-01 10:05:01 +01:00
Mathias Froehlich
978a577ea2 Ugly workaround for a crash on exit with multiple screens 2011-10-01 09:50:34 +02:00
Mathias Froehlich
af1e00ac72 clouds: remove unused bump mapping flag. 2011-10-01 09:22:44 +02:00
Anders Gidenstam
90b35f2cbe Added /scenery/events as a new MP enabled property for sharing scenery events. 2011-10-01 00:17:23 +02:00
Torsten Dreyer
478e771632 Add a localizer audio ident class
This will be needed soon in the new navradio code.
2011-09-29 00:01:44 +02:00
Christian Schmitt
ede92fce54 Fix a segfault that became apparent with a 850 apt.dat file 2011-09-28 10:18:12 +02:00
James Turner
dbda2fb95d Switch ATCmgr comm station search to filter by range in cartesian, not geodetic, space, to avoid numerical instability with extremely distant stations. 2011-09-28 09:06:31 +01:00
Erik Hofman
dbe1504858 remove a cvs conflict 2011-09-26 10:50:48 +02:00
Erik Hofman
1df7b9cdc2 JSBSim fixes. 2011-09-26 09:07:59 +02:00
Durk Talsma
b482188848 Whoops, lazy copy/paste job. 2011-09-22 22:08:20 +02:00
Durk Talsma
0fca002ab6 Bugfix: Retrieval of the next radio frequency was broken. Contributed by Adrian Musceac. 2011-09-22 21:38:37 +02:00
Durk Talsma
152fec1cb6 Patch by Torsten Dryer: Remove the Ugly global dialog variable and remove rwy as a member variable from the AIFlightPlan class. 2011-09-22 20:52:05 +02:00
Durk Talsma
e00157d4e8 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-09-22 19:09:36 +02:00
Durk Talsma
5ae207c2fc Prefetch a previously saved aircraft settings configuration file to retrieve aircraft usage and livery information. Fallback to default settings in aircraft-set.xml file if not found. 2011-09-22 19:06:26 +02:00
James Turner
54aca561b6 Fix JPEG-server builds. 2011-09-21 19:22:13 +01:00
Torsten Dreyer
fcf0371777 fix cmake conditional for event-input 2011-09-21 19:22:32 +02:00
Torsten Dreyer
d860c949e3 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-09-21 19:19:10 +02:00
James Turner
5a17ccf9eb Push aspect-ratio handling into CameraGroup, so renderer doesn't need to resize viewports each update. 2011-09-21 17:13:53 +01:00
James Turner
227b3e469c Remove indirection on viewer draw/resize code-paths. 2011-09-21 17:13:53 +01:00
James Turner
7dd8f00c42 Enable event-input for joysticks by default on Mac + Linux, in Cmake. 2011-09-21 17:13:13 +01:00
Torsten Dreyer
25707ce82e Add debug messages for real-weather runway selection 2011-09-20 16:15:47 +02:00
James Turner
563614f36c Expose route-manager WP mirror nodes on the API 2011-09-19 11:38:35 +01:00
James Turner
af6ed2ff3a Expose departure+arrival airport + runway on route-manager. 2011-09-19 11:38:35 +01:00
James Turner
28c8e6fe1c Initial hacking on nav-display instrument, derived from the wxradar code 2011-09-19 11:38:35 +01:00
James Turner
66a3a7f164 Make map widget zoom a real property, so it persists between opening and closing the dialog. 2011-09-18 12:53:40 +01:00
Erik Hofman
e1d5a52a3a resync JSBSim 2011-09-18 11:06:54 +02:00
Durk Talsma
db816deb90 Added a new startup option. By giving the command line option --parkpos=AVAILABLE you can -in principle- let FlightGear decide what the most optimal parking location is. This option does require a few properties to be set that are also needed for future ATC use. Hence, they are listed under /sim/ATC, but could move to a different location if desired.
/sim/ATC/radius should be a nummeric estimate of the size of your aircraft. A small aircraft fits into a large parking, but a large aircraft does not fit into a small parking space. Because the AI part of radius is also used for slightly different purposes (prioritizing gate assignmments, the given valuem may deviate slightly from the real aircraft size. See http:/wiki.flightgear.org/Aircraft.radii for an overview of currently used values for the redius property.
/sim/ATC/flight-type can be any one of "ga", "cargo", "gate", "mil-fighter", "mil-cargo", or "vtol". See http://wiki.flightgear.org/Interactive_traffic#A_technical_perspective for more information.
optionally, the property /sim/ATC/airline can be set set to a three letter icao airline code. By way of illustration, I will commit a number of startup preset files setting these properties shortly.

Also did some more finetuning to the traffic mananger routing algorithm can be any one of "ga", "cargo", "gate", "mil-fighter", "mil-cargo", or "vtol". See http://wiki.flightgear.org/Interactive_traffic#A_technical_perspective for more information.
optionally, the property /sim/ATC/airline can be set set to a three letter icao airline code. By way of illustration, I will commit a number of startup preset files setting these properties shortly.

Also did some more finetuning to the traffic mananger routing algorithm.
2011-09-17 16:51:00 +02:00
Durk Talsma
67c604a722 Some tweaks to the AI traffic scheduling algorithm. Remove the requirement for a home port, but keep planning until we are back at the original port of departure. 2011-09-16 20:04:13 +02:00
adrian
66e2bac574 commradio subsystem part deux 2011-09-16 16:28:16 +03:00
Torsten Dreyer
0fa556d36a fix upper/lowercase typo
Just don't develop with windows. Never.
2011-09-15 22:39:47 +02:00
Torsten Dreyer
43109feb0c Some more refactoring of the radios
- wrap the ident-generating code into a class
- move dme-in-range property into dme.cxx
- move dme-ident generation into dme.cxx
- support ident-button and volume for dme idents
- use globals.get_aircraft_position instead of properties
- some minor cleanup
2011-09-15 21:28:30 +02:00
James Turner
2de3872d66 In joystick configurations, fall back to <unix> if no <mac> entry was provided, since the number is frequently identical. 2011-09-15 09:54:00 +01:00
Torsten Dreyer
9cef27f5ca Refactor morse and beacon as singleton 2011-09-13 20:12:52 +02:00
Durk Talsma
1e4b17595a -Prevent crashing the sim when starting at a gate that is not connected to the ground network. For now, just silently shut down the ATC system. 2011-09-11 21:42:29 +02:00
Erik Hofman
7e91e7e98b change file mode to 644 2011-09-11 13:19:51 +02:00
Erik Hofman
b09a2347a8 remove unused files 2011-09-11 11:44:19 +02:00
Erik Hofman
7375166c2b New version of JSBSim, a big rewrite. 2011-09-11 11:42:21 +02:00
Mathias Froehlich
549c5eccb9 cmake: Factor out common simgear dependency libs.
Factor out and use this core simgear depenency
library cmake variable.
2011-09-11 11:22:10 +02:00
Frederic Bouvier
099bfd988b fgfs and fgpanel need to be linked with the winsock library (on Windows) 2011-09-09 21:38:02 +02:00
James Turner
a5a8090d52 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. 2011-09-08 13:59:40 +01:00
Mathias Froehlich
d09575e646 autotools build updated with sgthreads library 2011-09-08 00:49:23 +02:00
Csaba Halasz
938d4f3752 autotools build updated with sgthreads library 2011-09-07 22:14:36 +02:00
adrian
f96123de1c begin work on radio subsystem 2011-09-06 10:29:54 +03:00
adrian
80e5585cc3 comm radio subsystem 2011-09-05 11:51:19 +03:00
adrian
2c91f179d1 reduce distance to 300 km 2011-09-05 09:46:19 +03:00
adrian
c69c91769e fix array index out of bounds in dynamics.cxx 2011-09-05 07:56:13 +03:00
adrian
9afa0e90ed print some relevant data on screen to verify accuracy 2011-09-05 07:35:44 +03:00
adrian
038251e8af fix trx and rx heights and improve calculations 2011-09-05 07:23:48 +03:00
adrian
6a4272be14 Merge branch 'next' into radio-att 2011-09-05 05:26:24 +03:00
Durk Talsma
35abe6d0ab 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.
2011-09-04 20:27:36 +02:00
adrian
135c544f6e bugfix 2011-09-04 16:13:47 +03:00
adrian
2f0ea5f3f1 Merge branch 'next' into radio-att 2011-09-04 14:21:53 +03:00
adrian
9df5e8ee33 check for allowTransmission 2011-09-04 14:20:41 +03:00
adrian
3a82ce7696 functional radio signal attenuation 2011-09-04 13:56:03 +03:00
ThorstenB
741efe2efb 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.
2011-09-04 11:09:21 +02:00
adrian
4801b28c42 fix + define WITH_POINT_TO_POINT 2011-09-04 10:00:36 +03:00
adrian
c9ef773d98 compute radio transmission attenuation according to
the Longley-Rice Irregular Terrain Model propagation mode.
2011-09-04 09:18:13 +03:00
Anders Gidenstam
a2972051a9 Added an --materials-file option to select the materials file to use at startup.
The property /sim/rendering/materials-file can also be used for this purpose.
2011-09-03 21:48:50 +02:00
Durk Talsma
77e844a78d Merge branch 'next' of git@gitorious.org:fg/flightgear into next 2011-09-03 11:40:51 +02:00
Durk Talsma
e65f53b571 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.
2011-09-03 11:26:17 +02:00
Mathias Froehlich
1c1722a2e9 Adapt to recent simgear hla/rti changes. 2011-08-31 20:02:00 +02:00
Torsten Dreyer
f835561fbe Fix typo 2011-08-31 19:54:59 +02:00
Torsten Dreyer
d83715903a Fix cmake build with SP_FDMS (missing BalloonSim.cxx) 2011-08-29 21:09:26 +02:00
Erik Hofman
1e9120a8ac Add proper conversion factor 2011-08-29 18:34:57 +02:00
Torsten Dreyer
b4400f8316 Add convenience std::string versions for fg[G|S]etXXX
Add inline wrappers functions for fgGetXXX and fgSetXXX
to make life with std::string easier
2011-08-27 17:19:36 +02:00
Torsten Dreyer
7ae9122f4e Final warning before egt_degf gets purged 2011-08-26 14:05:38 +02:00
Torsten Dreyer
54f1b83f98 refactor the realwx-controller
clean up the code and prepare for new real-weather sources
2011-08-26 09:01:31 +02:00
Torsten Dreyer
4599893fa9 fix #416: reciprocal filter broken 2011-08-25 22:25:20 +02:00
ThorstenB
cc020fe9df 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.
2011-08-24 23:17:05 +02:00
James Turner
557c95a5ec Change default (non-set) MP hosts to be an empty string instead of '0' 2011-08-24 09:44:52 +01:00
James Turner
51e307a742 Make errno dependency explicit, since raw_socket.hxx won't expose it, soon. 2011-08-23 10:25:17 +01:00
Torsten Dreyer
b82ea065c3 Add the frequency to the navinfo hash 2011-08-22 09:18:04 +02:00
ThorstenB
d76a0b09f8 Use SG_LOG(&strerror) instead of "perror".
Also clean-up some error messages.
2011-08-20 23:13:42 +02:00
ThorstenB
cf2236351c Avoid some useless file accesses
Empty "markers" in between scenery search paths shouldn't be
considered when building search paths.
2011-08-20 23:13:27 +02:00
ThorstenB
18983c5387 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.
2011-08-20 23:13:17 +02:00
Torsten Dreyer
3fbbe3134a new global function for aircraft position
add a new function to get the aircraft's position instead
of reading /position/* properties
2011-08-20 08:54:47 +02:00
ThorstenB
104507ad8b #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.
2011-08-18 22:36:44 +02:00
ThorstenB
ae6623655c #403: 2D horizontal scrolling on Mac OS
Ignore events with X-axis scrolling only (getScrollingDeltaY() == 0).
Thanks to Tatsuhiro Nishioka.
2011-08-18 21:32:24 +02:00
Curtis L. Olson
a5de08e240 Fix a couple issues with non-referenced files missing from the source
distribution (and thus breaking the build.)
2011-08-15 22:50:39 -05:00
Frederic Bouvier
1c1947eab2 Remove obsolete msvc build files 2011-08-15 19:29:27 +02:00
ThorstenB
f22a36c59c 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.
2011-08-13 16:53:47 +02:00
ThorstenB
20914e49cd Tatsuhiro Nishioka: #403, scroll up/down for Mac OS
Support osgViewer's Scroll_2D event (so far only available for Mac)
2011-08-12 23:28:57 +02:00
ThorstenB
28496bb6ac #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...
2011-08-12 00:24:25 +02:00
ThorstenB
e9a9f8c96d Use some more logging class variety.
Stop using SG_GENERAL and SG_ALL everywhere. Using different
classes makes switching the classes really useful...
2011-08-12 00:09:26 +02:00
Vivian Meazza
ce97a1e4c5 Bugfix: Ballistic objects with "expiry" set were not instantiating correctly.
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-08-11 21:46:51 +02:00
Mathias Froehlich
5093cbed43 Do not delete disabled network protocols twice. 2011-08-11 20:35:44 +02:00
Durk Talsma
cfa08438ae Merge branch 'durk-atc' into next 2011-08-10 21:42:12 +02:00
Durk Talsma
552aa5419f Some fine tuning of the ATC messages related to ground to tower transfer.
Removal of obsolete debugging messages. Let's hope I caught them all.
2011-08-10 21:39:28 +02:00
ThorstenB
5bd8828fe6 Allow bidirectional support for generic interfaces. 2011-08-10 00:05:10 +02:00
Durk Talsma
b603344d69 Merge branch 'next' into durk-atc 2011-08-09 20:09:14 +02:00
Torsten Dreyer
1e7d072eed 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.
2011-08-09 18:02:37 +02:00
Frederic Bouvier
5e30675c70 Fix issue #398: Menubar - Help > Help opens strange path when including space character 2011-08-08 23:26:58 +02:00
Durk Talsma
8212c88969 Fix state changes related to hold position and resume taxi ATC instruction. 2011-08-08 21:50:44 +02:00
Durk Talsma
b5025ccf5d Merge branch 'next' into durk-atc 2011-08-08 20:20:21 +02:00
James Turner
a18dc00f4a Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-08-08 18:17:15 +01:00
James Turner
3c9f4ad73e Switch RealWx to use simgear::HTTP class. Also tweak metar-proxy to send a HTTP status response. 2011-08-08 18:16:49 +01:00
Mathias Froehlich
fc38d69823 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.
2011-08-08 19:12:14 +02:00
Durk Talsma
5f3804e816 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.
2011-08-07 21:38:50 +02:00
ThorstenB
d3c06bd19b #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
2011-08-07 18:24:13 +02:00
Stuart Buchanan
02cf9774e8 Add property binding for 3D cloud wrapping. Note that this relies on SimGear commmit 410c5ae 2011-08-07 14:27:36 +02:00
Mathias Froehlich
2c24b1da17 Use the bv tree leafs for altitude queries.
Make use ot the bounding volume tree nodes already
present in the scenegraph for the ground cache for
scenery intersection and elevation queries.
2011-08-07 11:12:45 +02:00
Durk Talsma
37591d0ac9 Merge branch 'next' into durk-atc 2011-08-07 09:33:54 +02:00
Durk Talsma
63151fd579 Reinstate the check for aircraft that are under tower control. 2011-08-07 09:24:15 +02:00
ThorstenB
0b04bf9cdd #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.
2011-08-06 12:54:21 +02:00
Durk Talsma
513d2d7dad Merge branch 'next' into durk-atc 2011-08-04 19:01:26 +02:00
ThorstenB
c4dc12ec94 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
2011-08-04 18:59:46 +02:00
Durk Talsma
98048d1000 Some preparory work for enabling the handover from ground to tower controller. 2011-08-03 23:09:52 +02:00
Durk Talsma
449675deca Removal of some debugging statements. 2011-08-03 21:23:42 +02:00
Durk Talsma
4928886e56 Bugfix: Change the point where leg numbers recycle, in order to avoid hitting the default case in AIFlightPlan::create(). 2011-08-01 21:34:33 +02:00
Durk Talsma
2c1de98ef3 Merge branch 'next' into durk-atc 2011-07-31 19:31:25 +02:00
Durk Talsma
f84d9d4757 A fairly major interal reorganization of the AI code
- Change AIFlightPlan::waypoint into an independent class FGAIWaypoint
 - Don't update leg count until the aircraft has passed the last waypoint that was created by the corresponding leg
 - Clear ground network rendering for controllers that are no longer active.
2011-07-31 19:27:44 +02:00
ThorstenB
b0a4299d46 #232: early propagation of "point sprites for runway lights" switch
Property value is required early during initialization since the feature
isn't run-time configurable. Disable run-time calls since it has no effect.
2011-07-31 13:33:11 +02:00
James Turner
6c52a5ac85 Fixes for include-file flattening - condition.hxx no longer pulls in props or props_io 2011-07-30 10:47:28 +01:00
Torsten Dreyer
62e46b09a5 fix for #381:fgfs -h -v throws error with no --fg-root
Because there is no help without fgdata,
be a little more verbose with the error message and
give the user at least a hint about what might help.
2011-07-28 22:52:40 +02:00
Mathias Froehlich
b3ad524cec Try to fix using an own cull visitor with osg 3. 2011-07-28 18:23:54 +02:00
Durk Talsma
0215d66957 Bugfix: fix the on-runway crash, as reported by several people on the forum and mailing list. 2011-07-27 11:01:37 +02:00
Durk Talsma
987a0fd1df Fix broken constructor to prevent a segfault when deleting taxiroute during program shutdown. 2011-07-26 18:28:34 +02:00
Durk Talsma
dbceffeae8 Fix flightplan initialization issue. 2011-07-25 21:36:09 +02:00
Durk Talsma
acb2bc9286 Bugfixes:
- Allow the ATC/AI code to start from a non-airport location
	- Windows compilation fixes.
2011-07-25 12:53:10 +02:00
Durk Talsma
561282b2f9 Rename ATCDCL/ATCDialog.[ch]xx to ATCDCL/ATCDialogOld.[ch]xx to prevent compilation problems under windows (as reported by Alan Teeder). 2011-07-24 19:19:20 +02:00
Torsten Dreyer
0c9716227c let bool FGAIFlightPlan::createCruise() return a value
fix Windows build.
2011-07-24 17:22:00 +02:00
Mathias Froehlich
971e98cd14 Fix cmake build. 2011-07-24 14:38:53 +02:00
Durk Talsma
3f26233d69 Some cleanup in the ATC/AI code before merging with the next branch:
- Hide the ATC dialog box by default
 - Allow dynamic enabling and disabling of the AI groundnetwork visualization
 - Cleanup of debug messages
2011-07-24 12:48:13 +02:00
Durk Talsma
5228053f7f Merge branch 'next' into durk-atc 2011-07-24 08:44:22 +02:00
Torsten Dreyer
3723de56ca Experimental navinfo() Nasal extension function
Add a navinfo() Nasal extension function to provide
information about navaids. Inspired by the airportinfo
function.

This is work in progress, do not rely on this in your Nasal
code - the interface might change over the next weeks.
2011-07-22 12:37:41 +02:00
James Turner
1c8d8e7908 More CMake headers support 2011-07-19 07:58:03 +01:00
James Turner
7abf7c5748 CMake header support for XCode/Visual Studio 2011-07-19 07:58:03 +01:00
Torsten Dreyer
7c56cc617d Fix minor memory leak in terrainsampler
Thanks to ThorstenB
2011-07-18 11:55:50 +02:00
Torsten Dreyer
c6d5b6ebdb Partial fix for #228: ambiguous navaid-names
This fixes at least the startup process.
If an ambigous fix name was presented with --vor=ID or --ndb=ID
present a list of matching records along with frequency and
position in the console to give the user the chance to pick
the correct one by adding the frequency with --vor-frequency=nnn.nn

It does not yes solve the issue when the user relocates using the
GUI dialog. This requires some GUI and Nasal hacking along with a
new Nasal helper function "navaidinfo".
2011-07-18 11:09:43 +02:00
Torsten Dreyer
24383e5194 Two minor MSVC90 build fixes
- provide SIMGEAR_VERSION in no_version.h
- remove duplicate define of FLIGHTGEAR_VERSION
2011-07-18 10:24:52 +02:00
Torsten Dreyer
ca02aa8a04 JoystickInput: fix potential init problem
Don't remember the axis position before bindings are loaded
2011-07-17 22:26:37 +02:00
Torsten Dreyer
1cf7e78ae5 Fix compile for 32bit (handleFPE() undeclared) 2011-07-17 22:15:57 +02:00
Torsten Dreyer
c1d150a8e5 Ray protocol: don't use hardcoded gravity 9.81 2011-07-17 19:32:16 +02:00
Torsten Dreyer
eab9a65ebc Fix some gcc warnings 2011-07-17 19:31:28 +02:00
James Turner
b0566a3ed0 Fix make dist rule for removed files. (will pick to 2.4) 2011-07-17 11:58:46 +01:00
Torsten Dreyer
c238f86637 Bump to version 2.5.0 2011-07-17 11:07:07 +02:00
Torsten Dreyer
172c635f03 Bump version to 2.4.0 2011-07-17 10:47:27 +02:00
James Turner
8e682cb8a4 Disable flight-related key-bindings in the WaypointList widget for 2.4 release, pending a better solution to PLIB's lack of focus. 2011-07-16 13:25:29 +01:00
ThorstenB
80f9092460 Fix issue reported by heap debugger
Subsystems are erased by the subsystem manager - so better avoid
dependencies in their destructors.
2011-07-14 00:22:35 +02:00
ThorstenB
dcc8d22f7c Don't crash on exit, when initialization was aborted.
Some errors cause fgfs to abort/exit before "controls" is set.
2011-07-13 21:52:29 +02:00
ThorstenB
ccd6a094f1 Avoid creation of stray "/null" property nodes.
"property-assign" command had a side-effect of creating stray "/null"
nodes when assigning a value (since "getprop2" always creates some node).
2011-07-10 21:25:16 +02:00
ThorstenB
cbc048b801 Fix minor DME frequency issue.
DME frequency value should be double - not string.
2011-07-10 12:52:45 +02:00
Torsten Dreyer
5303d15aa3 Fix #369: ATIS receiver has excessive range
Add a range filter when searching for CommStations,
searching by frequency is not enough.
2011-07-08 10:56:18 +02:00
Mathias Froehlich
32159c6bce Make the 32'th joystick button work. 2011-07-07 18:41:26 +02:00
ThorstenB
eb3f135985 #367: Add visible error messages when flight plan file isn't found/readable 2011-07-07 08:44:09 +02:00
ThorstenB
b839e8c3ac #367: raise log level for some routemanager error messages
When flightplans cannot be loaded (i.e. --flight-plan command-line
option fails), make sure the message is visible to the user with
default log level.
2011-07-06 22:33:19 +02:00
Torsten Dreyer
d45bfbf225 Fix #220, Ctrl-U no longer working for YASim
Set model-state's position from properties so it can be manipulated
from the property tree.
2011-07-05 17:33:11 +02:00
Anders Gidenstam
69905cc45b Fixed faulty frame transformation of moment of inertia.
Thanks to Jon for finding the problem.
2011-07-03 22:06:54 +02:00
ThorstenB
4fd1e219a4 #348 related: More places where missing files were not reported properly
Whenever resolving a (relative) path to an absolute path with
'resolve_maybe_aircraft_path', check if the result is empty and report original
(relative) path as missing. Otherwise no or a meaningless message is
issued ("File '' not found.").
2011-07-03 13:06:41 +02:00
Durk Talsma
f8a8805e2d Merge branch 'next' into durk-atc 2011-07-01 22:20:40 +02:00
Erik Hofman
18eff91839 Update to sync with JSBSim CVS, small bug fixes. 2011-07-01 08:21:06 +02:00
Torsten Dreyer
279fbdc837 Fix #357: Enabling "fixes" on map dialog crashes FG
This happened for fixes with names shorter than 5 characters.
range check added, which operator[] does not perform.
2011-06-28 12:51:00 +02:00
ThorstenB
b2c03e4efc #178: improve normalization issue (avoid loops altogether)
thanks to Torsten
2011-06-26 19:05:28 +02:00
ThorstenB
68dec9af2d #178 related: avoid sim from freezing when FDM goes wild 2011-06-26 16:18:36 +02:00
ThorstenB
1ebab94710 #358: Missing option to disable AI scenarios
--ai-scenario=... can only add/enable another scenario.
Introduce --disable-ai-scenarios option to disable all scenarios (can be
used by external launchers, GUIs etc)
Also provide error instead of debug message when a scenario cannot be loaded.
2011-06-26 16:08:19 +02:00
ThorstenB
c19664291f #221, #242: Fix/work-around for AI traffic issues
Move the disable-HOT feature from the MP aircraft to the a/c base class,
disable HOT for all AIaircraft, since that's a fix/work-around for
#242: AI aircraft respect the user a/c only when HOT is _disabled_ for them
#221: AI aircraft don't stack at parking positions when HOT is disabled
Also generally disables HOT for ballistic and other models (suggested by vivian),
allowing it for ship/carrier models only.
2011-06-25 20:44:44 +02:00
James Turner
029d2b00eb Tone down some log output for the release, especially related to airways/navaid loading. 2011-06-25 16:18:07 +01:00
Frederic Bouvier
523f7f4cb7 Trying to fix compilation failure on Linux and Mac 2011-06-25 10:05:38 +02:00
Frederic Bouvier
243acb61c8 Fix issue #354: updateCameras reset viewport size to its initial value on OSG 3.0 2011-06-25 09:22:51 +02:00
ThorstenB
e19c49a273 Enable parameter for new command-line option. 2011-06-22 20:01:31 +02:00
ThorstenB
cd20c6073c #346 related: missing status message for property server
Provide same start-up status message as for other protocols.
2011-06-20 22:50:07 +02:00
Erik Hofman
fac1525fde Removed useless divisions - As a side effect, it removes the risk of divisions by zero 2011-06-19 10:34:21 +02:00
Erik Hofman
02eb2ac2e1 Improved the calcs during trimming after a suggestion from Dennis 2011-06-18 17:50:47 +02:00
Erik Hofman
1dbc2c0f7a Fixed switch parsing and message 2011-06-17 14:16:49 +02:00
Erik Hofman
ec454158fe sync with JSBSim CVS 2011-06-17 09:26:52 +02:00
ThorstenB
702d323a39 issue #127: make screen shots work with OSG multi-threading
Make sure actual snap shot is executed in graphics context.
(Revert the revert :) - since the basic issue in simgear is solved now)
(patch requires simgear+fgdata update!)
2011-06-13 20:31:27 +02:00
ThorstenB
25fdbebd57 Revert "issue #127: make screen shots work with OSG multi-threading"
This reverts commit b4d90150c5.
2011-06-13 00:52:43 +02:00
ThorstenB
9d7ec8f238 Martin Spott: Fix special FDM define for CMake. 2011-06-13 00:46:50 +02:00
ThorstenB
826784eb18 Martin Spott: Add CMake DBus support for event driven input.
Tested on Linux only, please improve if you see fit.
2011-06-13 00:45:40 +02:00
ThorstenB
76ffb086eb Betrand Coconnier: fix for issue #220 for JSBSim a/c
Modifying /position/altitude-ft did not change a/c position
2011-06-12 21:04:16 +02:00
ThorstenB
88f7c05274 Introduce "PRESERVE" flag to protect properties on sim reset.
Some specific properties need protection and shouldn't be restored to their
original values on sim-reset.
2011-06-12 20:31:56 +02:00
ThorstenB
505d4c5219 Do not reset persistent properties on sim-reset.
Fixed ugly sim-reset issue: Persistent properties (USERARCHIVE attribute)
are retained across sim sessions (when restarting the sim). So they should
also be retained on sim-resets (without the need to first exit/restart
the sim to make them really persistent).
Also, avoid warning due to read-only properties.
2011-06-12 13:53:14 +02:00
ThorstenB
d767fe1696 Avoid compiler warning. 2011-06-12 13:45:10 +02:00
ThorstenB
ee40e8ae3f Introduce terrasync subsystem.
Fix tile reloading issue.
2011-06-12 00:44:07 +02:00
Torsten Dreyer
bad5fbf66a Use computed gravity instead of hardcoded value 2011-06-08 20:17:40 +02:00
Torsten Dreyer
f52cf4e3b8 Merge commit 'refs/merge-requests/11' of git://gitorious.org/fg/flightgear into vivian 2011-06-08 20:12:53 +02:00
ThorstenB
db7112c20b Remove stray space
Thanks to Vivian - make MSVC9 happy again.
2011-06-06 19:53:21 +02:00
Vivian Meazza
8b6779aa96 Bugfix: set life timer to 0 on instantiation and when ballistic object dies.
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-06-06 09:32:00 +01:00
Mathias Froehlich
d21924770f Avoid crashing in hla initialization failure. 2011-06-05 13:45:40 +02:00
Erik Hofman
afca14c372 add a sanity check for the overcast property 2011-06-05 10:26:55 +02:00
Erik Hofman
8f3cdc9404 Add a /rendering/scene/overcast option to color the skydome gray in case of overcast 2011-06-05 10:20:16 +02:00
Durk Talsma
808c4c635d Merge branch 'next' into durk-atc 2011-06-05 10:06:35 +02:00
ThorstenB
bc9ffe96c2 Minor error message formatting. 2011-06-04 17:55:37 +02:00
ThorstenB
a2c768c7cd Fix crash when display/screen number invalid
getScreenResolution shouldn't be called before the safety check.
Fixes commit ba7d8b8155
2011-06-04 17:55:12 +02:00
Torsten Dreyer
c9bb9f6044 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-06-04 15:58:54 +02:00
Torsten Dreyer
0774ca000a Anticipating v2.4.0 - bump fgdata version to 2.3.0 2011-06-04 15:53:38 +02:00
Erik Hofman
8b72e13d2f As torten explains: it is probably not a good idea to ti /environment/relative-humidity since the FGEnvironment ties to this property too 2011-06-04 15:39:45 +02:00
Erik Hofman
c346bcee77 Add the /rendering/scene/scattering property to allow the weather system to contoll the amount of light scattering (or absorption) of the fog 2011-06-04 13:11:56 +02:00
Torsten Dreyer
f28ddb0b5a Fix bug#333 2D clouds sometimes not visible with material shaders are disabled
Only draw 3d clouds if enabled and shader-effects are true.
Remove the property-tie for 3dclouds-enabled and use a change listener
instead which also listens for changes of the shader-effects property.
2011-06-03 22:05:43 +02:00
Durk Talsma
2f3faf4b8a Compilation error fixes following merge with next. 2011-06-03 10:02:18 +02:00
Durk Talsma
348ff2ec23 Merge branch 'next' into durk-atc
Merge with next.
Conflicts:
	src/Airports/dynamics.cxx
	src/Airports/dynamics.hxx
2011-06-03 09:31:04 +02:00
James Turner
d5f81f0eac Push some of the ATIS logic into AirportDynamics, in preparation for ATIS being owned by the airport 2011-06-02 23:28:40 +01:00
James Turner
b0985c6b02 Fix for bug 331, cmake was missing mkfifo() check. Thanks to Olaf Flebbe for the catch! 2011-06-02 23:01:17 +01:00
ThorstenB
370645e593 Olaf Flebbe: #332, Improve Nasal's "systime" method
Use gettimeofday for determine time, rather than time() and gettimeofday()
2011-06-02 23:53:42 +02:00
James Turner
5572c53a7e Minor tweaks to positioned find commands. 2011-06-02 00:33:47 +01:00
James Turner
fc7e9740c3 Improvements to exposing FGPositioned via commands - support frequency searches. 2011-06-01 23:55:04 +01:00
Durk Talsma
63708fb0df Merge branch 'next' into durk-atc 2011-06-01 22:11:17 +02:00
ThorstenB
ba7d8b8155 Ensure window position is 0,0 for multi-display setups with fullscreen mode
Fix an issue introduced by commit 863551a932
for multi-display setups.
Some code clean-up.
2011-06-01 21:31:48 +02:00
ThorstenB
aeb4bc3672 Fix Linux build (automake)
CMake guys: please don't forget automake (yet)! ;-)
2011-06-01 21:01:50 +02:00
Durk Talsma
f9a5f921a4 Merge branch 'next' into durk-atc
Resolving merge conflicts indicated below.
Conflicts:
	src/ATC/CMakeLists.txt
	src/ATC/Makefile.am
	src/Main/fg_init.cxx
2011-06-01 20:46:34 +02:00
Frederic Bouvier
bff1f29fe8 Fix Linux build 2011-06-01 20:28:31 +02:00
Frederic Bouvier
f1a3cedb2f Fix win32 build 2011-06-01 20:25:53 +02:00
Curtis L. Olson
08ff6e2e2e Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-06-01 12:04:59 -05:00
James Turner
2b967608a0 Expose FGPositioned data via property tree, and make comm-stations a real FGPositioned subclass. 2011-06-01 17:45:22 +01:00
Curtis L. Olson
1d8dd81f90 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-06-01 11:19:19 -05:00
James Turner
2bdaebb7d9 Make basic route-manager commands be real SGCommands 2011-06-01 00:04:25 +01:00
Torsten Dreyer
e61d37a7a3 Remove some unused code 2011-05-31 20:58:22 +02:00
Torsten Dreyer
3a11f8ae28 remove inclusion of useless stdio.h 2011-05-31 20:39:32 +02:00
Durk Talsma
de1564d83e Merge branch 'next' into durk-atc 2011-05-31 20:38:42 +02:00
Torsten Dreyer
61f2b98e8f Compute gravitational acceleration
Compute gravitational acceleration based on the formula of
Somigliana corrected for altitude and provide the value
in property /environment/gravitational-acceleration-mps2
2011-05-31 15:28:32 +02:00
Torsten Dreyer
170df65081 Don't declare static functions in header file 2011-05-31 10:35:42 +02:00
Torsten Dreyer
2add898d90 Remove 'using namespace std' directive 2011-05-31 10:12:07 +02:00
Curtis L. Olson
6dc891de34 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-30 13:08:59 -05:00
ThorstenB
863551a932 fix #142: initial window position
Be (at least a bit) smarter with initial x/y position
Also some minor type/comment issues.
2011-05-29 18:46:11 +02:00
ThorstenB
3c8a80d968 Deterministic loading sequence for Nasal scripts
Avoid loading Nasal scripts in (random) file system order
2011-05-29 18:44:15 +02:00
Frederic Bouvier
11bb6ef146 Fix linux build - auto_ptr<> needs <memory> 2011-05-29 09:34:56 +02:00
James Turner
9c983359aa Move all MP code in src/MultiPlayer.
Allow the subsystem to be (re-)inited at runtime.
2011-05-29 00:04:30 +01:00
ThorstenB
0d0b5c616c Bertrand Coconnier: bug fix for #184, JSBSim: command line arguments
1. The atmospheric properties of FG are not yet initialized when
JSBSim is initialized.
-> patch is quite basic and there may exist smarter ways to initialize
properly the environment before the FDM.
2. The Euler angles were initialized after the velocities.
3. The glide slope and rate of climb were ignored. Fixes all FDMs (YASim,
UIUC, JSBSim, etc.)
4. Some properties were instructed to re-use their previous value while
they should not.
5. Some bugs existed in JSBSim trim code. -> This bug has already been
fixed in JSBSim but the corresponding patch has not yet been applied to FG.
2011-05-29 00:05:33 +02:00
ThorstenB
b4d90150c5 issue #127: make screen shots work with OSG multi-threading
Make sure actual snap shot is executed in graphics context.
(patch requires simgear+fgdata update!)
2011-05-28 23:27:46 +02:00
James Turner
a32ef9f391 Fix yet another subtle resize problem I introduced, which upset PUI. This code is terribly fragile - yuck. Thanks to papillion 81 for tracking down the issue, 2011-05-28 21:20:06 +01:00
ThorstenB
be1117f782 fixed #308: "Reload input" did not respect joysticks.xml
Predefined joystick information must be maintained on "reload input".
2011-05-28 11:16:03 +02:00
Curtis L. Olson
cbec277ed4 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-27 15:14:42 -05:00
James Turner
4bfa9cac85 Used the simgear strutils helper, fixing a corner-case ThorstenB spotted. 2011-05-26 20:18:27 +01:00
James Turner
1b4e5e1b91 Unfortunately, the view code relies on resize being called each frame ... bah. Fixes startup aspect ratio for the moment. 2011-05-25 12:18:07 +01:00
James Turner
436abe1e62 Factor timeofday command into the TimeManager 2011-05-25 12:13:25 +01:00
James Turner
5bae2e3d37 Merge branch 'refs/heads/topics/loadfp' into next 2011-05-25 11:51:33 +01:00
James Turner
fe1bedad32 Make --flight-plan option delegate to the route-manager loadRoute code, and hence support XML flight-plans. 2011-05-25 08:21:45 +01:00
James Turner
c09c0e6941 First attempt at support for loading airport XML files via a command 2011-05-25 00:03:51 +01:00
James Turner
0ec9a9492f Minor cleanup of resize() handler, while tracing down an OS-X Windowing issue. 2011-05-24 23:56:44 +01:00
Vivian Meazza
a6cc487b74 Add the capability of switching slaved objects at runtime.
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2011-05-24 19:45:08 +02:00
ThorstenB
bdeeab8453 #323: Bad init sequence could segfault
Oops, early window event callbacks could trigger issues on some systems.
Fixes an issue caused by my commit 473d1447c3
2011-05-22 22:56:51 +02:00
ThorstenB
dd9d82d941 Some minor splash screen status improvements. 2011-05-22 18:32:15 +02:00
ThorstenB
51bb633e55 Bugfix for #106: main view port aspect-ratio broken when 2D panels are moved
Seems the hack was necessary for the pre-OSG display only. Or the feature
is broken since OSG port altogether. But it caused issues for 3D and 2D
cockpits when /sim/virtual-cockpit wasn't enabled. => Removing for now.
2011-05-22 18:32:15 +02:00
James Turner
b357dd7ac3 Remove remaining use of fabsf() from the code, avoid an OSG header issue on OS-X. 2011-05-22 16:30:18 +01:00
ThorstenB
f82caf49a3 Fix #109: Seg faults caused by wxradar with ARC display mode (aerostar700)
Fixes an ugly issue with OSG overwriting memory/stack. wxradar triggered
the issue in display mode "ARC" - since it configured a display mask (12
vertices) but all vertices were immediately removed again ("_vertices->clear()").
Issue is fixed, mask now working - however the mask wasn't even properly
aligned for the display (probably never worked since OSG port). The display
mask is only really required for weather display - so disabling for now.
2011-05-22 11:02:15 +02:00
Curtis L. Olson
df796a4899 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-21 11:15:06 -05:00
ThorstenB
2a9f87e42c Fixed blocked splash-screen on sim reset
Fixes Commit 9a3fb418e4
2011-05-21 17:12:37 +02:00
Curtis L. Olson
8b17f2b20a Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-21 09:06:20 -05:00
ThorstenB
9a3fb418e4 Fixed #321: --enable-clock-freeze freezed the splash screen
Splash screen effect must use system time - not freezable sim time
2011-05-21 14:54:38 +02:00
James Turner
59fe23dcb3 Change occurrences of fabsf to fabs - part of tracking down an osg/Math issue on Mac with XCode4 2011-05-21 13:41:43 +01:00
ThorstenB
87647b40cb Fix win-compile for new pause command. 2011-05-21 14:07:03 +02:00
ThorstenB
53a954d631 New "pause" fgcommand.
Original property-rules in keyboard.xml toggled master and clock freeze
independently - which caused issues when only one property was true. New
command toggles both properties consistently.
2011-05-21 13:27:09 +02:00
ThorstenB
473d1447c3 Minor renderer clean-up & performance bits.
Use non-static methods so we can use member variables.
2011-05-21 13:24:23 +02:00
ThorstenB
2088a61f2f Revert "make clearcolor black, so that space is dark instead of gray."
This reverts commit b36b33f716.

See #316: Caused issues with sky becoming black in dense fog.
Also: when the fog issue is solved, we could configure the constant
(black) clear color once only (during init), no need to do it in every
loop. Also, entire "if (skyblend) { ... } else {..}" was redundant,
since "if" and "else" clauses were all identical - and the "clearColor"
variables were unused. => Once the fog issue is solved, we can easily
improve the clearColor configuration here.
2011-05-21 09:16:21 +02:00
ThorstenB
9f13c49d29 issue #316: panning not working when center-on-aircraft enabled
Panning feature looked broken to some users since auto-center is enabled
by default which blocks panning. center-on-aircraft is now disabled
automatically when view is panned.
2011-05-20 19:48:05 +02:00
Curtis L. Olson
800ac5a188 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-16 09:05:52 -05:00
ThorstenB
9bd00a62fa Continuous replay: use correct replay duration
(LinuxTag live hacking...)
2011-05-14 10:19:51 +02:00
ThorstenB
6c3cd27a57 Looped replay feature
New option for continuously repeated replay
(LinuxTag FlightGear demo mode :) )
2011-05-14 09:17:51 +02:00
Torsten Dreyer
13db36f679 Replace round by simgear::SGMiscd::roundToInt()
to make it compile again under MSVC (sigh)
2011-05-08 20:34:35 +02:00
Curtis L. Olson
e174561c67 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-08 09:22:17 -05:00
Torsten Dreyer
209a93c4ea Expose JSBSim turbulence models 2011-05-08 15:50:33 +02:00
Durk Talsma
6ee1d7411b Simple FlightPlan generation and execution for the user aircraft: This will allow ATC guided taxiing to the runway. 2011-05-07 10:03:27 +02:00
Torsten Dreyer
76ea9a7968 Remove unused class SGEnviro
This class and their source files visual_enviro.[h|c]xx were
unused since OSG transition. It's only functionality was to
keep a variable for the enable-state of rendering of precipitation.
This has now been moved to SGPrecipitation.
This patch also removes all references to this class and
visual_enviro.hxx. Wxradar needs a new implementation for cloud
echoes which probably should be part of fgclouds.

See also SimGear commit 4e6159aa07f2817c09fad72db64d713e47f6f3da
2011-05-06 14:12:17 +02:00
Curtis L. Olson
6f37568da9 Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-05-05 14:18:46 -05:00
Curtis L. Olson
a482465659 Fix a problem with the YASim turbulence model. This change has been
coordinated with and approved by Andy.

The lattice(x,y) arguments were being "WRAP()'d" but the WRAP() function
didn't make sense.  Instead it was forcing the value to zero if it was
greater than the wrap limit.  This was creating large areas of constant
values in the perlin noise maps which resulted in a "constant" turbulence
vector over time -- which is just weird.

Andy couldn't see any reason why the values should be wrapped and couldn't
remember any reason why the WRAP() function was set up like it was.

Andy wanted me to make sure and mention that he was INSANE when he wrote that
code (but now he's sane ... err, mostly.)
2011-05-05 14:13:18 -05:00
ThorstenB
83052e1656 #310: c++ header dependency
Header's dependency is to <cstring> not <memory>. <memory> itself had
dependency to <cstring> for earlier GCC version though.
2011-05-04 21:34:15 +02:00
Curtis L. Olson
11686cfb49 Hopefully add AV400WSim.cxx to the cmake system (not tested) since I use
autoconf/make.
2011-05-03 12:27:25 -05:00
Curtis L. Olson
e81479d857 Bruce Hellstrom @ ATC Flight Sim.
New module contributed: AV400WSim.
Supports communication with external (aka real) Garmin 400/500 WAAS flight
sim units.  Includes changes to options.cxx and fg_io.cxx to support
invoking and configuring the new module.
2011-05-03 11:12:55 -05:00
Durk Talsma
81c0e0b3df Merge branch 'next' into durk-atc 2011-04-29 20:46:54 +02:00
Durk Talsma
17fececa9f Some more work on AI/ATC user interaction integration:
* Update AI aircraft object based on user position.
* Process flightplan
* Don't try to update the radar information for AIAircraft that don't have a valid manager pointer
2011-04-29 20:44:05 +02:00
Stuart Buchanan
65607d4a7b Add x-offset-m and y-offset-m to move-cloud command. 2011-04-24 20:48:18 +01:00
Torsten Dreyer
94828f8acd Merge commit 'refs/merge-requests/1554' of git://gitorious.org/fg/flightgear into merge-requests/1554 2011-04-23 11:34:49 +02:00
Erik Hofman
3e1aba3b2a Sync. with JSBSim CVS, now properly 2011-04-23 10:17:31 +02:00
Stuart Buchanan
202e957154 Further updates to 3D clouds 2011-04-22 21:06:28 +01:00
Stuart Buchanan
0becb0df2b Merge branch 'next' of git://gitorious.org/fg/flightgear
Conflicts:
	src/Environment/environment_mgr.cxx
2011-04-21 20:55:49 +01:00
Stuart Buchanan
38af5a2a07 Improved 3D cloud support 2011-04-21 20:43:05 +01:00
Frederic Bouvier
aae1b5494f Remove vim swap file 2011-04-19 22:32:23 +02:00
ThorstenB
e42a8f597c Automatic tower positioning
New "auto-position" switch to always use closest tower for tower-view.
Exposes new "/sim/airport/closest-airport-id" property.
Display closest airport on groundradar by default.
2011-04-18 22:54:33 +02:00
ThorstenB
9c3571da5f ADF2 support
New "--adf2" option.
Also introducing "--adf1" for consistency, while keeping legacy "--adf".
2011-04-17 17:35:31 +02:00
Erik Hofman
2cf249fb7e Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-04-16 11:36:55 +02:00
Erik Hofman
b36b33f716 Lauri Peltonen: make clearcolor black, so that space is dark instead of gray. 2011-04-16 11:35:56 +02:00
ThorstenB
0c500d4fc4 Wish #304: MapWidget's center-on-aircraft button should be sticky
Thanks to Victhor Foster for the idea.
2011-04-16 10:53:09 +02:00
ThorstenB
fb52b013f0 Clear OSG object cache on scenery reload
Scenery reload (menu: Debug-> Reload Scenery) also needs to clear the OSG
object cache, otherwise scenery isn't really reloaded from disk.
2011-04-15 21:34:44 +02:00
ThorstenB
dc76290d6e Minor file mode issue. 2011-04-15 00:20:06 +02:00
ThorstenB
7f5a0e3518 Adrian Musceac: #303, YASim solver settings
The internal solver of YASim which computes drag and lift
coefficients now actually uses the values configured in
the XML input file for approach fuel, cruise fuel and cruise
glide angle.
2011-04-15 00:15:18 +02:00
ThorstenB
1456635c55 Fixed minor memory leak on joystick reload. 2011-04-13 21:30:11 +02:00
Anders Gidenstam
8513a057f3 Fixed some memory leaks. Thanks to Andreas Gaeb for reporting. 2011-04-13 21:06:54 +02:00
Erik Hofman
05a2eff317 One step ahead of JSBSim CVS. 2011-04-11 10:06:57 +02:00
ThorstenB
82f6d29f9f Improve OSG caching.
Ensure property tree is provided early to modellib.
To disable: --prop:sim/rendering/cache=0 (enabled by default)
(also requires simgear update)
2011-04-03 19:13:51 +02:00
Durk Talsma
b9b2d9386c Merge branch 'next' into durk-atc 2011-04-03 17:25:29 +02:00
Durk Talsma
7e604f22a7 * Added a pure virtual render() function to FGATController that can be used to implement traffic visualization
* Allow position and intentions to be monitored and updated by the Startup controller
* Added a "parent" pointer to the startup controller to allow communication with the groundnetwork.
* Implemented a render() function for the Startup controller
* Renamed "FGGroundNetwork::getRenderNode() to FGGroundnetwork::render()
2011-04-26 19:18:28 +02:00
Durk Talsma
960f6881c9 Merge branch 'next' into durk-atc 2011-04-19 18:02:30 +02:00
Durk Talsma
a7ccae9fca More work on AI/ATC integration:
- Fixed a bug in AI aircraft ground steering code: When aircraft were not moving, the value of headingchangeRate kept increasing to insane levels. Although this was clamped to a maximum of 30 degrees per second, the initial rate could still push the aircraft in the wrong direction. In practice, this bug would be visible when an AI aicraft would be pushed back, when it tended to veer to the right.
 - Make sure that the aircraft slows down well ahead of the pushback point. This change ensures that the AC will actually reach the pushback point. It also ensures a slightly tighter steering range.
 - AI ground steering rate is tuned to 30 degrees per second at a nominal taxispeed of 15. I now modulate the heading adjustment rate by manipulating the adjustment using a non-linear function (the sqrt). This allows for a slightly tighter turn radius at speeds < 15 and slightly looser turns at speeds > 15.
 - The AI Flightplan generation code can return false. This can be used to determine whether any additional AI aircraft may be created. Currently, the function returns false when no more parkings are available. This should limit the build-up of huge AIAircraft tower stacks.
 - The ground network can now graphically display all aircraft actitivy on the ground network by using a virtual marker system.
2011-04-19 18:01:24 +02:00
Durk Talsma
ee9a5cf73d Merge branch 'next' into durk-atc 2011-04-17 10:21:09 +02:00
Durk Talsma
65e87bf2f8 Added some code to visualize the ground networks. 2011-04-17 10:19:58 +02:00
Durk Talsma
e16f772e54 Merge branch 'next' into durk-atc 2011-04-15 19:40:44 +02:00
Durk Talsma
fa842a42b6 Added a small and simple dialogbox that allows the user to issue ATC commands. 2011-04-15 19:32:21 +02:00
Durk Talsma
3bd4e99d81 Merge branch 'next' into durk-atc 2011-04-14 17:53:38 +02:00
Durk Talsma
dee72d3434 * First test scenario to get user ATC interaction working. 2011-04-14 17:51:46 +02:00
Durk Talsma
c597f72158 Added some interface function to traffic manager related classes and added a traffic record that mimicks the users aircraft's traffic intentions. 2011-04-12 23:28:48 +02:00
Durk Talsma
493661a2dc Small step forward: Ensure that traffic information is appropriately updated. 2011-04-11 22:23:53 +02:00
Durk Talsma
416ba93a41 Merge branch 'next' into durk-atc 2011-04-11 20:51:16 +02:00
Durk Talsma
819e6a04fa Some more work on AI/ATC interaction.
* Added an AIAircraft that is shadowing the user aircraft's behavior, in terms of AI / ATC interactions
* Set up a shadow AI FlightPlan that is used for tracking the user's aircraft.
2011-04-10 12:46:00 +02:00
Durk Talsma
e04d2f8ba9 Assigned an ATC controller to the user's Aircraft and change the comm1 radio frequency according to the frequency relevant to the current scenario. 2011-04-10 08:58:48 +02:00
Durk Talsma
3455079060 Added a simple dialog, just as proof-of-principle. 2011-04-06 19:48:54 +02:00
Durk Talsma
ff4004b261 Some further testing of the ATC Dialog infrastructure. 2011-04-05 18:13:11 +02:00
Durk Talsma
49677f512b Merge branch 'next' into durk-atc 2011-04-04 20:33:41 +02:00
Durk Talsma
52b0baace1 adding changed files for previous commit. 2011-04-03 17:58:16 +02:00
Durk Talsma
48bb176e87 Start of adding interaction between the user controlled aircraft and AI traffic, by means of ATC.
* Started transfering the ATC infrastructure to be driven by it's own subsystem
* Changed the bahavior of the "'" key so that it is no longer driven by ATCDCL, but it now triggered by the new subsystem based ATC module.
2011-04-03 17:39:35 +02:00
ThorstenB
93180eb004 On-demand loading of Nasal modules.
Load a module whenever its /nasal/foo/enabled flag is set,
even if it was disabled at start-up. Also expose a property if it was
successfully loaded.
2011-04-03 15:30:25 +02:00
ThorstenB
731e803223 Minor clean-up (fixed renamed subsystems) 2011-04-02 15:15:59 +02:00
ThorstenB
298f832d43 Support optional Nasal modules in fgdata/Nasal/MyModuleFoo
- Allow structuring generic Nasal sources into modules (i.e. support
  separate source folders for multiplayer/local weather/... sources)
- Option to enable/disable loading of generic Nasal modules (i.e we only
  need to load stuff that is really needed/enabled).
- Provide basic loading sequence: subfolders are strictly loaded _after_
  the base directory. So submodules can rely on .nas-scripts like math.nas,
  io.nas, debug.nas, ... to be already loaded - dropping the need for
  awkward listeners/timers to delay module initialization (loading order
  within Nasal/*.nas is still random)
2011-04-02 15:15:59 +02:00
ThorstenB
4141b80b0c fix #296: FDMshell+TankProperties not bound after sim reset
Well, when we need to unbind something temporarily, it's wise to really
bind it again...
2011-03-29 23:31:59 +02:00
ThorstenB
7ec9d036d6 Renaming / more consistent naming. 2011-03-28 00:30:23 +02:00
ThorstenB
dca2132087 New property reporting worst-case frame latency.
Shows maximum latency of any frame within the last second.
2011-03-28 00:16:27 +02:00
ThorstenB
d7798a7cc2 Slightly brighter blue color level for map widget
Almost couldn't see the new blue color on my screen.
Enjoy the blues... :)
2011-03-27 11:32:41 +02:00
Stuart Buchanan
23971c17aa Improve display of shipping in map widget. 2011-03-26 11:02:00 +00:00
ThorstenB
d051b800cc Minor replay issues
restore most recent frame
2011-03-24 23:41:12 +01:00
ThorstenB
3a90186341 Minor replay issues
When disabling replay: don't clear buffers and restore most recent frame
2011-03-24 23:30:09 +01:00
ThorstenB
11320e6b00 Bertrand Coconnier: Fix instant replay with JSBSim aircraft (bug #294)
Avoid re-trim to be triggered by property listeners during instant
replay (when the FDM is suspended).
2011-03-23 23:52:36 +01:00
ThorstenB
38226af24e Improve timing statistics
Enable/disable and print statistics at run-time.
Configurable intervals and filters.
2011-03-23 23:09:02 +01:00
ThorstenB
b4c47b06d5 Drop unnecessary include dependency.
Make Csaba happy...
2011-03-23 22:50:56 +01:00
ThorstenB
189457f2af Minor namespace issue
using "using" in the .cxx now :)
2011-03-23 22:49:18 +01:00
ThorstenB
5ace4e9632 Fix reset during replay issue
Need to properly reset the replay manager's states on sim reset.
Also remove obsolete method.
2011-03-22 21:02:57 +01:00
Torsten Dreyer
0114fd962e Fix broken tank properties. More verbose generic protocol error messages 2011-03-22 18:00:55 +01:00
ThorstenB
991beb0b5e replay/FDM shell subsystem refactoring
Move final bits of replay code to where it belongs.
Use subsystem suspend/resume for FDM shell during instant replay.
2011-03-21 23:07:05 +01:00
ThorstenB
b6d70d2c71 Replay improvements
Clear replay buffers on sim reset.
Allow instant replay to be activated properly when sim is paused.
2011-03-20 15:03:47 +01:00
Erik Hofman
51a6302f48 Make sure Include/config.h gets found which is located in /src 2011-03-19 16:04:32 +01:00
ThorstenB
befc533398 More virtual destructors. 2011-03-19 15:02:17 +01:00
ThorstenB
4b74636d04 Avoid nuisance sound effects after sim-reset. 2011-03-19 14:51:39 +01:00
ThorstenB
badec14d27 Cut&paste voiceplayer into a separate module.
GPWS and TCAS are now completely separate - but use the same voice player.
2011-03-09 23:49:25 +01:00
ThorstenB
59f2328551 Used tied property list. 2011-03-09 23:10:55 +01:00
ThorstenB
b3d59ed563 Fixed an property tieing issue on sim reset.
Oops, my commit f6fde388a2 untied the
tank properties also on reset - should also re-tie them after the
reset then...
2011-03-09 23:02:19 +01:00
ThorstenB
18ada05d41 Fix navreceiver to make DME work with ILS signals.
Property "dme-in-range" should also work with ILS signals, which include
a DME. The nav database (dme_list) doesn't have separate entries for
"ILS-DME" (unlike for "VOR-DME"), so searching a DME by frequency didn't
work for ILS.
=> "instrumentation/nav[*]/dme-in-range" can now be used to enable/disable
cockpit DME displays.
2011-03-09 22:04:03 +01:00
ThorstenB
f6fde388a2 Untie all TiedPropertyLists before destruction.
Untieing needs to be done prior to the destruction of the object which
aggregated the TiedPropertyList. So the TiedPropertyLists destructor can't
untie the properties automatically (and it doesn't). So, do some manual
clean-up.
2011-03-07 19:38:48 +01:00
ThorstenB
4761a3cdcf Fix another (tiny) memory leak.
SGCloudField::addCloud does *not* keep a reference to SGNewCloud - so we
only need a temporary object. Also adapt to changed addCloud interface
to make things a little more obvious.
2011-03-07 19:38:48 +01:00
Csaba Halasz
ae8438333c Quick fix for ascii generic input line separator problem 2011-03-06 02:38:39 +01:00
Torsten Dreyer
1050a35d92 prepare for subsystem_mgr.hxx no longer including props.hxx
subsystem_mgr.hxx will soon no longer include props.hxx since it
does not (need to) know about properties at all.
2011-02-27 12:53:47 +01:00
ThorstenB
645ef8036a TCAS clean-up.
Change default voice samples.
2011-02-25 21:12:35 +01:00
ThorstenB
f6b9c5b908 Make AIplanes respond to TCAS RAs. 2011-02-25 21:12:35 +01:00
ThorstenB
27a0ff5442 Added tracker stage to TCAS.
Added relative/absolte altitude display mode to wxradar.
2011-02-25 21:12:35 +01:00
ThorstenB
0f7f7fce6b Expose vertical speed for MP planes
vertical speed of MP planes was always 0,
calculate their (average) vertical speed since
it's required for TCAS and TCAS display
2011-02-25 21:12:35 +01:00
ThorstenB
b6eba5ce65 New TCAS display mode for wxradar.
- new mode to display traffic in TCAS-style
- select symbols according to TCAS-threat level
2011-02-25 21:12:35 +01:00
ThorstenB
bdd931aed9 Introduce new TCAS instrument
- implements a TCAS II v7.0
2011-02-25 21:12:35 +01:00
ThorstenB
dd7c88b8cb Make voiceplayer independent
- former mk-viii voiceplayer is now an independent FGVoicePlayer
- voiceplayer still sits in mk-viii module for now
- add option to configure location/prefix of voice samples
- add pause/resume to voiceplayer
2011-02-25 21:12:34 +01:00
Torsten Dreyer
f938a23d7c clear two gcc warnings 2011-02-25 20:46:18 +01:00
Torsten Dreyer
6c3035af60 allow proxy to set as an url 2011-02-20 17:14:30 +01:00
Torsten Dreyer
e5fb1f281f Merge branch 'next' of gitorious.org:fg/flightgear into next 2011-02-20 12:06:41 +01:00
Torsten Dreyer
3ccfdac8fe use http_proxy environment variable 2011-02-20 11:42:21 +01:00
ThorstenB
6cd0e5aac4 Merge remote branch 'origin/releases/2.2.0' into next 2011-02-19 12:00:43 +01:00
ThorstenB
118d8fbca5 #84: John Denker: Set correct file modes
Sources shouldn't be executable.
2011-02-19 11:55:43 +01:00
Torsten Dreyer
556885e553 remove unused code and use code from simgear 2011-02-19 11:23:36 +01:00
ThorstenB
3c3f3a096e John Denker: move branch cut and apply clamps
fixed un-normalized outputs
2011-02-16 19:53:10 +01:00
John Denker
214919da20 More accurate, more symmetrical computation of tangent vector. 2011-02-16 19:44:23 +01:00
John Denker
02f42b8816 fix up some comments 2011-02-16 19:44:14 +01:00
John Denker
54fb3b64d0 Implement gs-direct-deg property.
Useful when posing aircraft for pictures, not quite on glideslope.
2011-02-16 19:34:38 +01:00
ThorstenB
8962477cfa Fix huge multiplayer memory leak.
Almost all FGPropertyData elements received via MP were leaked.
Property data is now cleanly deallocated in the FGExternalMotionData destructor.
Thanks to Jester for reporting rising mem consumption in MP mode.
2011-02-16 00:49:00 +01:00
Tim Moore
9c98258ab0 Merge branch 'releases/2.2.0' into next
Conflicts:
	CMakeModules/FindSvnClient.cmake
	src/FDM/JSBSim/JSBSim.cxx
2011-02-15 13:26:24 +01:00
Tim Moore
c5366cceb6 accomodate changes to osgDB::DatabasePager interface
The change was introduced in OSG SVN revision 12080. Note: that
revision has a bug that causes fgfs to crash. The bug is fixed in
revision 12170.
2011-02-15 12:42:53 +01:00
Torsten Dreyer
df370549c3 Warning fixes for MSVC 2011-02-14 22:11:56 +01:00
Torsten Dreyer
5ec361ae06 Fix wrong throttle-position on init (trim) 2011-02-14 21:01:48 +01:00
Torsten Dreyer
a1acd92a1c gcc warning fixes 2011-02-14 20:58:54 +01:00
Torsten Dreyer
ddd04d91ca TankProperties: don't allow negative values 2011-02-14 20:45:59 +01:00
Torsten Dreyer
fff48bdd6a Refactor controls.cxx: use simgear functions
- use TiedPropertyList
- use SG_CLAMP_RANGE
2011-02-14 20:44:20 +01:00
Torsten Dreyer
03aac3de8b Refactor ridgelift: use simgear::TiedPropertyList 2011-02-14 20:26:39 +01:00
ThorstenB
7bc9749d91 Support scenery reloading (needs simgear update).
TileMgr subsystem reinit: remove all scenery tiles from scenegraph and
clear cache (simgear update required).
"normal" sim resets: no TileMgr reset is needed (avoid reloading scenery).
2011-02-13 19:26:55 +01:00
ThorstenB
4a351fdd8b Update tile loader options whenever its config properties change
New listener for tile-loader properties.
2011-02-13 19:26:44 +01:00
ThorstenB
45f526aca5 Minor output format issue. 2011-02-13 19:26:32 +01:00
ThorstenB
526cd9fa6e Avoid crash and/or long delay on shutdown in METAR loader.
Catching loader thread on subsystem destruction is too late, since it
depends on other subsystems (which are destroyed earlier).
=> Need to stop & join thread during subsystem shutdown.
Also changed loader sleep logic - to avoid excessive delays (up to
30 seconds) on shutdown.
(Issues mostly happened when running offline with realwx enabled.)
2011-02-13 18:44:56 +01:00
ThorstenB
ae320ca46c Avoid crash and/or long delay on shutdown in METAR loader.
Catching loader thread on subsystem destruction is too late, since it
depends on other subsystems (which are destroyed earlier).
=> Need to stop & join thread during subsystem shutdown.
Also changed loader sleep logic - to avoid excessive delays (up to
30 seconds) on shutdown.
(Issues mostly happened when running offline with realwx enabled.)
2011-02-13 16:54:08 +01:00
Torsten Dreyer
c7cccd8758 TankProperty: a bugfix and a new properties
- Fix initial number of TankProperty instances (thanks to Csaba)
- Add new property for unusable fuel and compute "empty" state
2011-02-12 21:36:58 +01:00
Torsten Dreyer
94d870d930 Support more than eight tanks
I was naive enough to think that no aircraft ever uses more
than eight tanks. Csabe proved me wrong and came up with a
fix - Thanks.
2011-02-08 21:23:02 +01:00
Torsten Dreyer
fcf1709df6 Fix the tank properties if no content was defined in fg 2011-02-06 22:08:46 +01:00
Torsten Dreyer
717ffe584f Unified handling of (fuel-)tank properties
Ensure consistent properties for all fuel tanks
2011-02-06 17:33:31 +01:00
ThorstenB
591ef4ab01 Fixed incomplete merge of JSBSim.cxx
Commit 287cc74965 wasn't merged to release/2.2.0
properly by Commit b649f97b19.
2011-02-06 16:46:36 +01:00
Torsten Dreyer
d1b35578c8 Move tiedpropertylist from flightgear to simgear 2011-02-06 15:44:09 +01:00
ThorstenB
ac71778319 Bertrand Coconnier: updated fix for #204 and #222: JSBSim reset
Use shared property pointers instead of path strings, adapt method
names to JSBSim style, catch all property ties, proper error handling
when tieing failed.
2011-02-06 15:34:32 +01:00
ThorstenB
6b6d7059de Improved fix for #204 and #222: JSBSim::unbind() needs to untie _all_ its properties
Extends and partially reverts commit 287cc74965
Previous fix did not consider properties outside the /fdm/jsbsim branch.
FGPropertyManager now keeps track of all its tied properties - and provides
a method to cleanly untie them again.
2011-02-06 15:34:16 +01:00
ThorstenB
68728c9449 Betrand Coconnier: fix bugs #47,#184: roll/pitch/speed via command-line
Specifying initial roll, pitch and speed should be working again.
2011-02-06 15:33:49 +01:00
ThorstenB
b649f97b19 Fix for bug #204 and #222 by Bertrand Coconnier; NaNs (bug #222) were basically generated because the method JSBSim::unbind() was not implemented in JSBSim.cxx. 2011-02-06 15:33:27 +01:00
ThorstenB
0d233c0dfc Bertrand Coconnier: updated fix for #204 and #222: JSBSim reset
Use shared property pointers instead of path strings, adapt method
names to JSBSim style, catch all property ties, proper error handling
when tieing failed.
2011-02-06 15:16:58 +01:00
ThorstenB
ad8d46ba64 Improved fix for #204 and #222: JSBSim::unbind() needs to untie _all_ its properties
Extends and partially reverts commit 287cc74965
Previous fix did not consider properties outside the /fdm/jsbsim branch.
FGPropertyManager now keeps track of all its tied properties - and provides
a method to cleanly untie them again.
2011-02-05 17:49:26 +01:00
ThorstenB
edfc06119a Not reported by cppcheck: fix another memory leak :)
Extends/changes commit 687be04678
to fix a related second leak (with "model").
2011-02-04 19:38:22 +01:00
ThorstenB
133cfbfa7f Fixed several compiler warnings
uninitialized or unused variables, init sequence, ...
2011-02-02 22:05:54 +01:00
ThorstenB
07fe929288 Fixed helicopter view.
Corrected the new panning check: panning rotates around the y-axis,
so the x- or z-axis need an offset != 0 (not x-/y-axis).
2011-02-01 19:23:05 +01:00
Frederic Bouvier
6bb8e69b92 Initialize class member in AIFlightPlan 2011-01-30 21:20:50 +01:00
Frederic Bouvier
a853af5b0e Reported by cppcheck: fix an incorrect usage of iterators 2011-01-30 21:17:20 +01:00
Frederic Bouvier
687be04678 Reported by cppcheck: fix a memory leak 2011-01-30 21:17:19 +01:00
Frederic Bouvier
95a5326c4e Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-01-30 21:16:57 +01:00
Frederic Bouvier
257e3390c9 Detect joystick disconnection 2011-01-30 21:14:32 +01:00
ThorstenB
67978f92e5 Proposed fix for #251: Waypoint handling
Do not consider destination/runway waypoints as done, when these
are far away - even if the course is off by > 90 degrees.
2011-01-30 18:18:41 +01:00
ThorstenB
f68f300bb3 Proposed fix for #251: Waypoint handling
Do not consider destination/runway waypoints as done, when these
are far away - even if the course is off by > 90 degrees.
2011-01-30 18:05:53 +01:00
ThorstenB
91d001ff4e Fix viewer issue with Tower and Chase View.
When looking _at_ a model with an x,y offset of 0,
then the view heading has no effect. So, force heading offset property
to 0 to keep other property consumers from running incorrect calculations.
=> Trying to rotate the heading offset in Tower/Chase view no longer
rotates the blue sky around the aircraft, though the viewer itself
isn't rotating anything.
2011-01-30 17:35:07 +01:00
ThorstenB
32b69f823a Betrand Coconnier: fix bugs #47,#184: roll/pitch/speed via command-line
Specifying initial roll, pitch and speed should be working again.
2011-01-30 16:05:28 +01:00
Erik Hofman
287cc74965 Fix for bug #204 and #222 by Bertrand Coconnier; NaNs (bug #222) were basically generated because the method JSBSim::unbind() was not implemented in JSBSim.cxx. 2011-01-30 11:04:37 +01:00
James Turner
2ea7f87ae1 Andreas Gaeb: make input (joystick) re-init work. 2011-01-29 16:05:02 +00:00
Frederic Bouvier
86bb7f39f9 Ignore a generated file 2011-01-28 20:15:43 +01:00
Frederic Bouvier
511e10142d Cmake: use different icons for 32-bit and 64-bit executables 2011-01-28 19:34:49 +01:00
Frederic Bouvier
0807cf3ae6 Cmake: set an icon to the Windows executable 2011-01-28 19:30:27 +01:00
James Turner
53e8fbfcbb Andreas Gaeb: fix #222 (JSBSIm reset problems) 2011-01-25 00:27:56 +00:00
James Turner
4f364af6d1 Andreas Gaeb: fix #222 (JSBSIm reset problems) 2011-01-25 00:26:07 +00:00
James Turner
c2458a17bf Re-apply fix for #204, crash on JSBSim reset 2011-01-25 00:25:43 +00:00
James Turner
4b494b1d08 Re-apply partial fix for #222, JSBsim crash-on-reset 2011-01-25 00:25:23 +00:00
Torsten Dreyer
6cb4fbcf0a Bugfix: reset transparency of non fog/mist/haze layers 2011-01-24 19:44:51 +01:00
Torsten Dreyer
8fe3d6c8e8 Bugfix: reset transparency of non fog/mist/haze layers 2011-01-24 19:41:56 +01:00
Torsten Dreyer
b085649f20 Code cleanup, no functional change 2011-01-23 21:51:07 +01:00
ThorstenB
e64b382397 Report stopped MP transmission at higher log level,
it's too important to be a "debug only" message.
2011-01-23 19:01:43 +01:00
ThorstenB
ee26505e28 Added sanity checks to MP receive/send.
Stop invalid data (NaN values) from being sent or received via MP.
2011-01-23 19:01:43 +01:00
ThorstenB
5268b3c6ed Report stopped MP transmission at higher log level,
it's too important to be a "debug only" message.
2011-01-23 15:24:28 +01:00
Erik Hofman
5402ab5a1b Merge branch 'next' of git://gitorious.org/fg/flightgear into next 2011-01-23 15:14:57 +01:00
Erik Hofman
4a817a6307 Sync. with JSBSim CVS 2011-01-23 15:14:01 +01:00
ThorstenB
feab53b462 Added sanity checks to MP receive/send.
Stop invalid data (NaN values) from being sent or received via MP.
2011-01-23 15:07:09 +01:00
ThorstenB
59d06d130d Make route editing sane.
Drag&drop, insert and remove now update the current waypoint as expected.
2011-01-23 10:45:31 +00:00
ThorstenB
7f846d20c7 Make route editing sane.
Drag&drop, insert and remove now update the current waypoint as expected.
2011-01-23 00:45:06 +01:00
ThorstenB
d365689d5c Fix crash in GPS module.
Fixes crash on exit (during property untie). Also potential run-time crash.
2011-01-22 00:03:07 +01:00
ThorstenB
f32656b2a5 Fix crash in GPS module.
Fixes crash on exit (during property untie). Also potential run-time crash.
2011-01-21 23:44:23 +01:00
Torsten Dreyer
ac4d22628e remove debug message spam 2011-01-21 20:44:35 +01:00
ThorstenB
99ee9a1bbb GPWS: avoid "altitude_callout_voice != NULL" assertion
Properly remember which active alerts were already voiced.
Added NULL-pointer safety check
2011-01-21 20:20:22 +01:00
ThorstenB
fab1284f83 GPWS: avoid "altitude_callout_voice != NULL" assertion
Properly remember which active alerts were already voiced.
Added NULL-pointer safety check
2011-01-21 19:55:42 +01:00
Torsten Dreyer
258a4436aa Fix bug 255, support turbulence to weather menu 2011-01-21 19:01:32 +01:00
Torsten Dreyer
5fc0be8820 Fix bug #253, at least partially
make options
--wind=nnn@mm
--visibility
--visibility-miles
--ceiling
--turbulence
work again. These options now write properties in the
/environment/config/presets
branch. The values will be applied in the property-rules
in FGDATA/Environment/interpolator.xml
2011-01-21 19:01:27 +01:00
Torsten Dreyer
a81103341e Fix bug 255, support turbulence to weather menu 2011-01-21 10:35:04 +01:00