James Turner
f07771f3d5
Fix a crash after reset.
2014-03-10 17:43:15 +00:00
James Turner
a8fe586e48
Revert wiping of /fdm on reposition.
...
This is too destructive for many established things, so revert it.
Instead, make the FDM shell save /fdm state on postinit(), and
restore it on re-init (which reposition invokes).
2014-03-10 12:00:51 +00:00
James Turner
5ce2a067ca
Fix JSBsim trimming on reposition.
...
- remove the entire /fdm tree on reposition
- force the initial NED wind values to 0.0 in JSBsim,
pending advice from people who know better.
2014-03-06 22:33:42 +00:00
Anders Gidenstam
4a5dce9f48
Added support for shared JSBSim engine and system configurations in fgdata.
...
Adds $FG_ROOT/Aircraft/Generic/JSBSim/{Engines,Systems} to the JSBSim
engines and system search paths. Internally JSBSim already searches
$aircraft_dir/Engines and $aircraft_dir/Systems.
A file in $aircraft_dir/{Engines,Systems} have higher priority than one
in the shared directories.
2014-03-05 22:41:34 +01:00
James Turner
826ea8139f
Re-apply the Clang/C+11 fix for JSBSim
...
Hopefully an equivalent change will occur upstream before the next
JSBsim sync.
2014-02-14 17:42:50 +00:00
Erik Hofman
73a519a95c
Make the JSBSim terrain handling code compile time configurable by calling cmake -DJSBSIM_TERRAIN=1
2014-01-29 13:50:06 +01:00
Erik Hofman
7bdd1d617d
Integrate the latest terrain handling code
2014-01-29 13:45:19 +01:00
James Turner
64cbc06003
clang / libc++ fixes for JSBSim
...
(needs to be upstreamed too)
2014-01-25 10:34:19 +00:00
Erik Hofman
fe79be0702
Do not use the new JSBSim ground reactions code by default until there is a good way to identify Nasal scripts that do this themselves
2014-01-19 15:23:15 +01:00
Erik Hofman
e3e44e49ee
Sync. with JSBSim CVS: although it looks a large part it is mostly bug fixes and fixing compiler warnings
2014-01-18 10:56:15 +01:00
James Turner
8aba04c3a2
Reset: change FDM ownership
...
- make the FDM owned via a SGSharedPtr
- drop some property references explicitly.
2013-12-01 21:37:17 +00:00
James Turner
8bcf597086
Remap JSB-sim debug levels from SG_LOG levels.
...
(Avoids the entire aircraft config being dumped to the console at
log-level info)
2013-12-01 21:37:16 +00:00
bcoconni
b996eca299
Fix for bug #1238 : the accelerations, velocities, etc. are now updated to a consistent set of values prior to exiting the trim routines.
2013-11-29 19:37:39 +01:00
bcoconni
69baf3a9d6
Synchronized with JSBSim/CVS
2013-11-24 20:12:17 +01:00
James Turner
ea822a99e1
Fix some warnings identified by Clang
...
_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
2013-11-16 09:41:33 +00:00
bcoconni
139af0026f
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
2013-11-14 22:07:50 +00:00
janodesbois
78301e95b4
make YASim report /velocities/mach as the speed's norm
2013-10-31 20:25:08 +01:00
janodesbois
00aacd6442
Revert "JSBSim fix: /velocities/mach was reported as totale mach speed"
...
This reverts commit 4dde865cbc
.
2013-10-31 20:21:13 +01:00
janodesbois
4dde865cbc
JSBSim fix: /velocities/mach was reported as totale mach speed
...
should be the U axis component (machU)
2013-10-28 05:48:53 +01:00
janodesbois
a6030bc9ce
forgot a .hxx modif in larcSim for bug 202
2013-10-27 14:51:19 +01:00
janodesbois
ecfdf354f1
considering u,v,wbody-fps are the ECEF velocity expressed in body axis, change in all functions/variables name dealing with them, wrongly named with wind, or even north, east, down.
2013-10-27 13:24:54 +01:00
James Turner
dfa1353a8a
Kill another BOM.
2013-09-27 18:06:18 +01:00
James Turner
c55849d644
Remove UTF-8 BOM.
...
Seems to be upsetting the compiler on Jenkins.
2013-09-27 17:08:36 +01:00
Anders Gidenstam
5a4b9c617c
Restored JSBSim to a working state in FlightGear.
2013-09-23 22:33:23 +02:00
Anders Gidenstam
22d91528f8
Synchronized with JSBSim/CVS.
2013-09-23 22:30:44 +02:00
James Turner
dab588c789
Fix for CVE-2012-2091:
...
add checks against buffer overruns
CVE-2012-2091 mentions various buffer overruns in simgear and
flightgear. This patch addresses this issue in Rotor::getValueforFGSet().
From: Tom Callaway
2013-09-14 17:39:49 +01:00
janodesbois
04764f8288
#901 , yasim report the wrong sign in side-slip-deg and -rad.
2013-09-05 08:28:40 +01:00
Tom Paoletti
1f88d1d11b
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:02:06 +01:00
James Turner
cff6b2034d
Remove unnecessary includes/using
...
flight.hxx (FGInterface) was pulling in list, string and vector, and
'using' them, despite no actual need.
2013-07-29 22:59:45 +01:00
James Turner
948aa70af7
Fix native protocol crashes.
...
As part of this, kill off the evil global FDM state, and avoid us
copying FGInterfaces (which is bad since it contains TiedProperties
and an FGGroundCache, neither of which are especially keen on being
copied). Will probably disable copy/assignment on TiedProperties in
a future commit.
2013-07-18 12:01:36 +01:00
Thomas Geymayer
ba088d9f1e
Fix warnings identified by gcc.
2013-07-04 23:07:36 +02:00
James Turner
e5bace53af
Bug http://code.google.com/p/flightgear-bugs/issues/detail?id=1077
...
Fix rotation rate of UFO to compensate for large
dead-band value. (makes small rotational speeds
possible, yay). Patch by Jean Pellotier
2013-06-25 21:47:51 +01:00
Anders Gidenstam
9c8d2e046d
src/FDM/JSBSim/models/FGPropagate.{h,cpp}: Do not return reference to local.
2013-06-11 22:15:03 +02:00
Anders Gidenstam
f9689a561c
Synchronized with JSBSim/CVS.
2013-06-11 22:14:51 +02:00
James Turner
0d6cd11dd4
Work with revised NetChannel poll() API.
2013-06-09 22:57:45 +01:00
Thomas Geymayer
1ad9756a4b
Fix jsbsim gear location in the property tree.
...
Need to convert from feet to inch.
2013-05-26 20:57:28 +02:00
Christian Schmitt
d9026d776c
update gitignore
2013-02-28 13:37:49 +01:00
James Turner
b0a879a5b1
Fix ADA compilation.
...
Patch by Roland Haeder
2013-02-11 22:16:02 +00:00
James Turner
37f783e92d
File mode fixes.
...
Contributed by Roland Haeder
2013-02-11 22:15:23 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
7ad55a206e
Adapt to revised logging API.
2013-02-07 12:02:52 +00:00
James Turner
5826cea0a8
Work-around a JSBSim reset issue following the sync.
...
Thanks to Ron Jensen for the catch. I've added a comment so we know to update this on the next JSBSim sync.
2013-01-28 12:54:21 +00:00
Torsten Dreyer
07720af693
sync with JSBSim
2013-01-19 22:39:28 +01:00
Thomas Geymayer
fee2844ec3
Fix #953 .
2012-12-03 09:28:48 +01:00
ThorstenB
a784443a24
Remove static property dependencies
...
preventing us from wiping properties on reset/reinit/subsystem recreate.
(more work required for "native_gui" and "ATC-Outputs" protocols)
2012-11-18 16:35:54 +01:00
ThorstenB
4e6f0e18fd
YASim airborne start-up
...
Gear should be up when starting in-air.
2012-11-17 20:05:16 +01:00
ThorstenB
adc95a4b55
#600 , for Curt... ;-) allow speed-up value to use fractions
...
"speed-up" can now also be used for slow-motion (i.e. 0.5 / 0.25 / ...)
or fractional speeds (3.141...). This was already working for instruments
(for replay) before, now it's also considered by FDM simulation.
2012-11-17 20:01:19 +01:00
James Turner
72131a4a49
Alexis Bory:
...
The purpose of this little cosmetic patch is to ease the use of proptest's output in a ploter.
2012-11-08 09:06:24 +00:00
ThorstenB
82bfb96d23
Add different error message when an FDM is disabled.
...
Better shows the difference between "unknown" and "disabled" FDMs.
2012-11-01 15:03:01 +01:00
ThorstenB
076bbb8487
Fix some compiler warnings.
...
Unused vars, loss of precision, bool type conversions.
2012-10-13 17:59:47 +02:00