ThorstenB [Sat, 11 Feb 2012 16:11:13 +0000 (17:11 +0100)]
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.
ThorstenB [Fri, 10 Feb 2012 22:41:33 +0000 (23:41 +0100)]
#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").
ThorstenB [Sun, 5 Feb 2012 14:13:58 +0000 (15:13 +0100)]
#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.
Torsten Dreyer [Wed, 1 Feb 2012 21:24:06 +0000 (22:24 +0100)]
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).
ThorstenB [Tue, 31 Jan 2012 22:19:02 +0000 (23:19 +0100)]
Fix string buffer issue with replay time display.
Unclean method of appending a string to a buffer would break with
some compiler optimization settings.
ThorstenB [Wed, 25 Jan 2012 16:37:14 +0000 (17:37 +0100)]
fgpanel: use same default fgdata path as fgfs
Use location configured at compile-time (Linux) or use run-time check (Mac)
(copied from fgfs/options.cxx).
ThorstenB [Sun, 22 Jan 2012 10:23:56 +0000 (11:23 +0100)]
#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).
ThorstenB [Thu, 12 Jan 2012 21:06:40 +0000 (22:06 +0100)]
#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.
adrian [Mon, 9 Jan 2012 17:47:25 +0000 (19:47 +0200)]
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.
ThorstenB [Sun, 8 Jan 2012 12:31:49 +0000 (13:31 +0100)]
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.
ThorstenB [Sun, 8 Jan 2012 12:28:49 +0000 (13:28 +0100)]
#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).
ThorstenB [Sun, 8 Jan 2012 11:31:18 +0000 (12:31 +0100)]
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.
Curtis L. Olson [Thu, 5 Jan 2012 01:17:32 +0000 (19:17 -0600)]
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.)
ThorstenB [Tue, 3 Jan 2012 21:02:48 +0000 (22:02 +0100)]
cmake: Fix Xinerama and Xft dependency issue.
Don't try to add Xinerama/Xft libraries, unless these are installed.
It seems these libraries are also not required on all systems (not required
over here...).
Durk Talsma [Mon, 2 Jan 2012 21:23:24 +0000 (22:23 +0100)]
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.
ThorstenB [Thu, 29 Dec 2011 23:39:08 +0000 (00:39 +0100)]
#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)
ThorstenB [Tue, 27 Dec 2011 12:04:09 +0000 (13:04 +0100)]
#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.
ThorstenB [Sun, 18 Dec 2011 11:40:34 +0000 (12:40 +0100)]
#525 related: add compiler search path for every library
Consider search path for every single library as reported/found by CMake.
Most includes sit in the same directory (so the same directory is reported
for almost all libraries), however this may not be the case for every
system or library.