ThorstenB [Wed, 29 Dec 2010 21:13:04 +0000 (22:13 +0100)]
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
ThorstenB [Wed, 29 Dec 2010 20:57:49 +0000 (21:57 +0100)]
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
ThorstenB [Tue, 15 Feb 2011 23:49:00 +0000 (00:49 +0100)]
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.
ThorstenB [Sun, 13 Feb 2011 15:50:23 +0000 (16:50 +0100)]
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.)
ThorstenB [Sun, 13 Feb 2011 15:50:23 +0000 (16:50 +0100)]
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.)
ThorstenB [Sun, 6 Feb 2011 14:16:58 +0000 (15:16 +0100)]
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.
ThorstenB [Sat, 5 Feb 2011 16:49:26 +0000 (17:49 +0100)]
Improved fix for #204 and #222: JSBSim::unbind() needs to untie _all_ its properties
Extends and partially reverts commit 287cc74965e11ff3888117a9d9b88ed2bdbb9252
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.
ThorstenB [Sun, 6 Feb 2011 14:33:27 +0000 (15:33 +0100)]
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.
ThorstenB [Sun, 6 Feb 2011 14:16:58 +0000 (15:16 +0100)]
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.
ThorstenB [Sat, 5 Feb 2011 16:49:26 +0000 (17:49 +0100)]
Improved fix for #204 and #222: JSBSim::unbind() needs to untie _all_ its properties
Extends and partially reverts commit 287cc74965e11ff3888117a9d9b88ed2bdbb9252
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.
ThorstenB [Fri, 4 Feb 2011 18:38:22 +0000 (19:38 +0100)]
Not reported by cppcheck: fix another memory leak :)
Extends/changes commit 687be046789e2f509ccf93155456c47f3f463e0c
to fix a related second leak (with "model").
ThorstenB [Thu, 27 Jan 2011 23:06:23 +0000 (00:06 +0100)]
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.
ThorstenB [Thu, 27 Jan 2011 23:06:23 +0000 (00:06 +0100)]
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.
ThorstenB [Sun, 30 Jan 2011 16:35:07 +0000 (17:35 +0100)]
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.
Erik Hofman [Sun, 30 Jan 2011 10:04:37 +0000 (11:04 +0100)]
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.