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
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
ThorstenB
8ca9f26e1b
Ivan Ngeow: Fixed compile for FreeBSD platforms.
2011-02-11 18:53:35 +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
292b0214fb
Repair windows vc90 build broken by TankProperties commit
2011-02-06 20:04:12 +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
Torsten Dreyer
d1b35578c8
Move tiedpropertylist from flightgear to simgear
2011-02-06 15:44:09 +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
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
2a7afaf642
Cmake: add a rule to build sources from fluid (.fl) files
2011-01-28 20:12:56 +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
Frederic Bouvier
2317b3bf05
Deprecate VS2010 handmade project files now that we have Cmake
2011-01-28 19:00:28 +01:00
Frederic Bouvier
0baa517b33
Cmake: fix VS2010 link
2011-01-28 15:15:20 +01:00
Frederic Bouvier
ede9a03d07
Cmake: support VS2010 and MSVC 64 bit
2011-01-28 14:57:32 +01: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
8fe3d6c8e8
Bugfix: reset transparency of non fog/mist/haze layers
2011-01-24 19:41:56 +01:00
James Turner
7f84bf5599
Whoops, missed a place to use fgVersion
2011-01-24 13:48:01 +00:00
James Turner
fec0b28f14
Include Macflightgear files, and the build helper.
2011-01-24 13:35:01 +00:00
Torsten Dreyer
b085649f20
Code cleanup, no functional change
2011-01-23 21:51:07 +01:00
Frederic Bouvier
fe03a4d799
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2011-01-23 21:08:09 +01:00
Frederic Bouvier
c21ba6cb20
Cmake: restore its original name to the ephemeris library
2011-01-23 21:07:24 +01:00
Mathias Froehlich
cb82e136dd
Help configure finding the rti libraries.
2011-01-23 20:35:05 +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
Frederic Bouvier
58550d9e70
Cmake: remove debug messages
2011-01-23 09:49:04 +01:00