Frederic Bouvier
024ef128e3
Better fix for a compilation problem with MSVC 2012
2012-09-03 19:09:35 +02:00
Frederic Bouvier
ace6f4173f
Revert "Fix compilation problem with MSVC 2012"
...
This reverts commit 85ae0697ee
.
2012-09-03 19:08:06 +02:00
Frederic Bouvier
85ae0697ee
Fix compilation problem with MSVC 2012
2012-09-03 17:33:20 +02:00
Mathias Froehlich
26664aaff0
Push SGMaterial use into these classes that need it.
2012-08-29 06:29:29 +02:00
Mathias Froehlich
7e97a4c693
Fix compile of simgear headless past bvh rework.
2012-08-27 17:58:25 +02:00
Mathias Froehlich
e3ad3d3a07
bvh: Adapt to upstream bvh changes in simgear.
2012-08-24 21:24:12 +02:00
James Turner
8a087582bc
Whoops, case-sensitivity matters on Linux.
2012-08-22 00:53:48 +01:00
James Turner
588eba658a
Make some include dependencies explicit.
2012-08-22 00:07:53 +01:00
jberndt
1d33664067
Fixed a bug where a structural to Body frame conversion was being doen twice for tanks.
2012-07-20 00:18:35 +02:00
ThorstenB
d5c56cdffa
#798 : Betrand Coconnier: Fix setting initial vertical speed with JSBSim
2012-07-15 15:23:46 +02:00
ThorstenB
7edbf8a8c9
#798 : climb rate cannot be higher than the true speed
...
Don't set vertical-speed on sim reset, unless the user intentionally
requested this as a start-up property.
2012-07-08 11:40:24 +02:00
Erik Hofman
10e6c6eea7
change file permissions
2012-05-30 08:42:47 +02:00
Erik Hofman
642735ab18
sync with JSB JSBSim CVS
2012-05-30 08:39:04 +02:00
Frederic Bouvier
75fc136931
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:20:04 +02:00
ThorstenB
0f462d4a6e
Fix rpmlint/Linux packager complaints
...
about outdated/invalid FSF address in some license headers.
2012-05-05 01:42:41 +02:00
ThorstenB
b9260f543b
Ganael Laplanche: fix include dependencies for FreeBSD support
2012-05-05 01:08:20 +02:00
ThorstenB
d00cc33a2e
set correct file mode
...
More non-executable data files.
2012-05-02 23:26:42 +02:00
ThorstenB
efa18fae1e
Add CMake option to disable building test applications.
2012-04-08 18:49:11 +02:00
ThorstenB
cab350d7fc
YASim performance optimization
...
Use stashed property nodes.
2012-04-05 21:06:39 +02:00
ThorstenB
7dc8db8ef5
Fix some compiler warnings.
...
Also removes "itm.cpp" from CMake to avoid code duplication/warnings, since
this the file is already included by radio.cxx.
2012-04-05 21:02:09 +02:00
ThorstenB
ed1ec90287
YASim performance optimization
...
Several functions of YASim's math wrapper are hotspots. Allow compiler
optimization/inlining.
2012-04-05 21:02:09 +02:00
ThorstenB
5fb6614c23
Remove unused variables (moment/ias)
2012-04-05 21:02:09 +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
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
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
cabb17818f
Fix "use of uninitialized data" reported by valgrind.
...
(also pushed to JSBSIM cvs)
2012-03-26 21:11:04 +02: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
Frederic Bouvier
19e7163971
Compile with MSVC 9
2012-03-25 14:39:24 +02: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
da73dd97d3
Clean-up cmake (linker) dependencies.
2012-02-24 22:23: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
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
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
ThorstenB
dac00efbc7
Fix some compiler warnings.
...
Comment out unused code.
2012-01-02 23:16:17 +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
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
Erik Hofman
02c286bb08
Sync. With JSBSim CVS
2011-11-25 13:38:08 +01: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
Frederic Bouvier
f1d0ac52a6
Fix MSVC9 build
2011-11-14 08:38:58 +01:00
James Turner
c14b3bc268
std namespace fix
2011-11-13 20:32:42 +00: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
James Turner
e819a4aaa4
Make all FDMs selectable at runtime; default LARCsim/UIUC to off.
2011-11-01 16:21:59 +00:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
Erik Hofman
1a13ecc1e9
Latest round of JSBim updates.
2011-10-30 13:30:57 +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
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
ThorstenB
5b8ab277fd
Minor FDM shell performance improvement
...
Don't resolve all properties at run-time.
2011-10-09 12:24:16 +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
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
Erik Hofman
e1d5a52a3a
resync JSBSim
2011-09-18 11:06:54 +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
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
Torsten Dreyer
d83715903a
Fix cmake build with SP_FDMS (missing BalloonSim.cxx)
2011-08-29 21:09:26 +02:00
Torsten Dreyer
7ae9122f4e
Final warning before egt_degf gets purged
2011-08-26 14:05:38 +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
Erik Hofman
18eff91839
Update to sync with JSBSim CVS, small bug fixes.
2011-07-01 08:21:06 +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
9d7ec8f238
Martin Spott: Fix special FDM define for CMake.
2011-06-13 00:46:50 +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
Curtis L. Olson
6dc891de34
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-05-30 13:08:59 -05: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
Curtis L. Olson
800ac5a188
Merge branch 'next' of gitorious.org:fg/flightgear into next
2011-05-16 09:05:52 -05: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
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
Erik Hofman
3e1aba3b2a
Sync. with JSBSim CVS, now properly
2011-04-23 10:17:31 +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
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
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
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
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
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
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
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
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
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