James Turner
c62b004438
Fix many clang errors in UIUC code
...
- because uiuc_warning_error always called exit(-1), it can be marked
no return, so Clang realises that when it’s used in the ‘else’
side of a parsing test, uninitialised variables in the enclosing
call site are safe.
(Requires Simgear update to define SG_NO_RETURN helper)
2016-01-12 12:50:31 -06:00
James Turner
dc17b5dda2
Fix unused variable in LaRCsim
2016-01-12 12:49:14 -06:00
Erik Hofman
508c367c5b
Sync. again
2016-01-12 19:05:51 +01:00
James Turner
0250d2ee5b
Bugfix: pause works for JSBsim/Yasim again
2016-01-11 11:47:40 -06:00
James Turner
078366cbf7
Fix some FDM warnings with Clang
2016-01-10 12:55:18 -06:00
James Turner
52f39abc6b
Apply /sim/speed-up to general subsystem dt
...
- consistent with pause (freeze), /sim/speed-up is now applied to the
dt value for all subsystems, not just the FDM and some instruments.
For example AI traffic can now be sped-up or slowed down.
- requires both an FGData and Simgear update.
2016-01-05 23:19:28 -06:00
Erik Hofman
335fda719d
Prevent two possible nan's
2015-12-29 14:55:22 +01:00
Erik Hofman
64b80b4dab
Sync with JSBSim again: remove a lot of unused trimming code
2015-12-15 09:47:08 +01:00
James Turner
a55c939c5e
Fix a JSBSim crash on OSG-quit
...
(i.e Cmd-Q / window closing, not the normal FlightGear quit sequence)
2015-12-11 12:49:32 -06:00
Edward d'Auvergne
9b7db929f2
LaRCsim FDM - detabbing of all files.
...
All '\t' have been replaced with 8 spaces, as most of the code is indented with spaces.
2015-12-10 10:07:21 +01:00
Edward d'Auvergne
dc04fc2294
UIUC FDM - detabbing of all files.
...
All '\t' have been replaced with 8 spaces, as most of the code is indented with spaces.
2015-12-10 10:04:45 +01:00
Edward d'Auvergne
7ed80221c3
LaRCsim cleanup of -Wimplicit-function-declaration compilation warnings.
...
The stub FDM/LaRCsim/default_model_routines.h header has been expanded and completed.
2015-12-10 10:01:37 +01:00
Edward d'Auvergne
97d0ab7eb9
LaRCsim cleanup of -Wunused-variable compilation warnings.
...
A number of static array definitions were shifted into the scope of the function.
2015-12-10 09:23:29 +01:00
Edward d'Auvergne
cf9e3e7bf0
LaRCsim cleanup of -Wformat-contains-nul compilation warnings.
...
The sprintf() function automatically adds the terminating null character, so no
need to have it in the formatting string.
2015-12-10 09:13:34 +01:00
Edward d'Auvergne
13b05db6f9
UIUC cleanup of -Wunused-but-set-variable compilation warnings.
...
The two unused variables were commented out.
2015-12-10 09:11:09 +01:00
Edward d'Auvergne
4eeeaf140c
UIUC cleanup for -Wsign-compare compilation warnings.
...
The string find_first_not_of() and find_first_of() functions return string::npos
if not found, rather than -1.
2015-12-10 09:04:23 +01:00
Edward d'Auvergne
e7d405d0ee
UIUC and LaRCsim cleanup of -Wunused-variable compilation warnings.
...
This is for defined but unused variables, many of which are in commented out
code.
2015-12-10 09:04:18 +01:00
Edward d'Auvergne
ce7c6de726
UIUC cleanup of -Wparentheses compilation warnings.
2015-12-10 09:04:09 +01:00
Erik Hofman
5c7d261df5
Sync JSBSim again
2015-12-07 11:10:03 +01:00
James Turner
2314ccfe13
Developer-warnings
...
- make some existing warnings developer-mode only
- add a warning about legacy aircraft path usage
2015-11-13 22:13:44 +00:00
Erik Hofman
27ca027a7e
Fix permissions
2015-11-10 16:15:42 +01:00
Erik Hofman
a0e31b5565
Sync. with JSBSim again
2015-10-30 10:10:01 +01:00
bcoconni
7bcbe8e802
Fixed the pilot acceleration for consistency with the accelerometer computation
2015-08-09 20:00:08 +02:00
bcoconni
adb926eefc
Fixed the accelerometer that now reports correctly 0g in orbit and 1g when steady on ground. Bug report by Thorsten Renk.
2015-08-09 19:59:29 +02:00
bcoconni
eb95edf2fc
Prevent JSBSim from crashing when the user forgot to specify the axis.
2015-07-14 16:01:33 +02:00
bcoconni
e9239c7178
Clarified the error message: recall the name of the file that has not been found.
2015-07-14 15:59:45 +02:00
Torsten Dreyer
14b97abd8f
Fix #1771 , wrong groundspeed indication for UFO
2015-07-10 11:07:34 +02:00
Torsten Dreyer
9c637e6b2a
UFO and MagicCarpet FDM: avoid negative headings
...
Both FDM set the heading to negative values when turning left
through north. This should be fixed by this commit.
2015-07-08 11:14:46 +02:00
James Turner
bbff8dcbb6
Remove / reduce level on some debug output
2015-06-08 10:37:26 +01:00
Erik Hofman
752b8d0acc
Add the option to (properly) revert the propellers moment of inertia calculation
2015-06-03 13:55:00 +02:00
Bertrand Coconnier
45de8ddf80
Modified the loop so that the simulation is suspended whenever the user
...
set the property fdm/jsbsim/simulation/terminate to true.
2015-04-12 18:20:00 +02:00
Bertrand Coconnier
475166643c
Removed executable flags for JSBSim source files and synced JSBSim (removed warnings about comparison between signed and unsigned / modified FGInput to issue a more explicit message about unknown input types)
2015-04-10 19:21:59 +02:00
Rebecca N. Palmer
27a4be5d87
UIUC: fix check_float (EOF is not an error in this context)
...
http://sourceforge.net/p/flightgear/mailman/message/33683003/
2015-04-03 14:18:04 +01:00
Erik Hofman
e10b493421
Do not run the HoldDown code until after the aircraft is trimmed to prevent a devide by zero and ultimately a segmentation fault
2015-04-02 20:31:17 +02:00
Erik Hofman
aa63e65122
Sync. with JSBSim just in time for the official JSBSim release.
2015-04-02 15:17:12 +02:00
James Turner
f2d6b76b13
Portability: Fix compile errors on MSVC (cmath)
...
From Scott (xDraconian)
2015-03-24 11:11:42 -05:00
James Turner
0cff350dab
Fix UIUC libc++ compilation.
2015-03-24 09:37:40 -05:00
Edward d'Auvergne
3f3bd6994a
Fix to restore the UIUC FDM aircraft after the FGAddon split.
...
The fix follows from the thread at
http://thread.gmane.org/gmane.games.flightgear.devel/77094 , and specifically
implements step 3 in the message
http://thread.gmane.org/gmane.games.flightgear.devel/77094/focus=77214 .
The change requires the corresponding <airplane-dir> XML tag deletion
and file system rearrangements in FGAddon as mentioned in the thread to
work.
2015-03-23 18:51:45 +01:00
bcoconni
5349d3367f
JSBSim syncing. The changelog is:
...
* The Pitot angle can now be tweaked with the <pitot_angle> tag in the <metrics> block.
* The refuel rate is now configurable with the <refuel-rate> tag in the <propulsion> block.
* Fixed C++11 compliance. JSBSim can now be compiled with a C++11 compiler.
* Avoid a spurious mass report to be issued when resetting.
* Fixed the moments computation. Previously they were computed with the previous time step CG position.
* Fixed a bug where the CG update was delayed to the next time step when point masses location were modified via the FCS.
2015-02-15 11:37:13 +01:00
Torsten Dreyer
ef2c9b995f
JSBSim: populate fuel tank cg
2015-02-04 12:44:20 +01:00
bcoconni
5d2197ae3c
Fixed a bug that made FG crash when repositionning the aircraft or resetting the simulation. Thanks to Rebecca Palmer for the bug report and the bug patch.
2015-01-17 14:58:48 +01:00
Anders Gidenstam
df61dfe1b3
JSBSim: Renamed the location properties for external forces to include the unit.
2014-12-18 11:02:41 +01:00
bcoconni
a1df1fb70a
Synced JSBSim. Adds the following new features:
...
- Ability to modify the location of external forces via the property tree
- Ability to specify manually the inertia matrix of "point masses"
- Improvements of the water injection feature in the turbine code
2014-12-15 20:12:18 +01:00
bcoconni
5f0bffde58
Re-sync JSBSim with FlightGear including James Turner's fix for the call to the function to_string that failed to compile on Mac and MSVC.
2014-11-18 19:54:52 +01:00
bcoconni
51e5add743
JSBSim sync
2014-11-15 11:39:49 +01:00
bcoconni
a30dadcf18
Fixed the initial conditions settings where the altitude passed by FG to JSBSim is geodetic instead of geocentric.
2014-10-19 19:05:30 +02:00
Torsten Dreyer
159ec7e08b
Expose total-fuel-m3 to the tank properties
2014-08-25 21:40:12 +02:00
Torsten Dreyer
a4b0be3d8a
Expose the vertical flight path as a property
...
write the vertical flight path to /orientation/path-deg
zero means level flight, positive angles climb
Also use SGD_DEGREES_TO_RADIANS (and vice versa) for double computations
instead of the float constants
2014-08-19 00:01:08 +02:00
bcoconni
beedd9e683
Fixed a bug where the rate_limit was ignored if it was set by a property.
2014-08-09 20:02:44 +02:00
bcoconni
1c867eb99d
Bug fix for the issue #1497 . JSBSim calculations of geodetic coordinates were producing a NaN at the North and South poles (i.e latitude +/-90deg).
2014-08-03 13:59:30 +02:00
bcoconni
a428d611c3
Fixed the erratic behavior of <actuator> when rate_limit is read from a property. See more details about the bug in the issue #1503 in FlightGear bug tracker.
2014-07-19 00:23:41 +02:00
bcoconni
5deeeaf781
Fix for the bug reported in the FlightGear 1503
2014-07-17 01:11:09 +02:00
bcoconni
d830430e61
Kévin Seroux: C++11 fixes for MSVC++
2014-06-14 00:29:39 +02:00
Torsten Dreyer
29990c40bf
No JSBSim debug msg without having SG_FLIGHT class
2014-05-20 22:58:38 +02:00
bcoconni
105cba0bda
JSBSim sync
2014-05-18 13:39:31 +02:00
Colin Douglas Howell
54f954fd02
Fix for issue 1463 (YASim underestimates off-axis aerodynamic forces on fuselages)
...
Change the drag coefficient for fuselages along the Y and Z axes
(i.e. perpendicular to the fuselage's main axis) to use a fixed
value of 0.5. (The value can still be adjusted using the fuselage's
"cy" and "cz" XML attributes.)
For the Y-axis and Z-axis drag on fuselages, YASim originally used
a drag coefficient equal to:
(solver drag factor) * (fuselage length/width ratio)
This value turns out to be way too small for well-streamlined
aircraft, even those with long, narrow fuselages, and especially
so for those with short, stubby fuselages. Such fuselages are
streamlined in the X direction, but not along Y or Z.
0.5 is only a ballpark estimate, but it's reasonably close for the
common case of a fairly long fuselage with a round cross section. For
flat-sided fuselages, a larger value should be used, up to a maximum
of 2 for a slab-sided block. For short fuselages, the value should be
reduced to account for end effects. The fuselage's "cy" and "cz" XML
attributes can be modified to make such adjustments.
This fix won't affect straight flight much, but it should have a strong
impact on some maneuvers. For example, it will make slips more
effective and may make knife-edge flight easier on aerobatic aircraft
which should be capable of it.
Only aircraft which specify version="YASIM_VERSION_32" or newer are
affected.
2014-05-12 19:07:10 -07:00
Colin Douglas Howell
907209746f
Separate fuselage drag adjustment from that for landing gear and external weights.
...
This commit is in prepartion for the following commit, which is a bug fix for
Issue 1463 (YASim underestimates off-axis forces on fuselages).
Previously the solver would adjust the drag factor for all of an Airplane's
non-Wing Surfaces in one pass, with no attempt to distinguish Fuselage Surfaces
from the Surfaces for Gear and Weights. This makes it difficult to modify how
fuselage drag is calculated while leaving unaffected the drag for landing gear
and external weights.
Now the solver adjusts the drag for an Airplane's fuselages, landing gear, and
external weights in three separate passes. To do this, each Fuselage now has a
list of its Surfaces. The fuselage pass simply iterates through the list of
Fuselages, running through each Fuselage's list of Surfaces.
The Airplane's list of non-Wing Surfaces, "_surfs", is no longer used here, but
there may still be uses of it elsewhere.
2014-05-12 14:29:48 -07:00
Colin Douglas Howell
4d1aebad79
Fix for issue 1394 (YASim's geometry for non-cylindrical fuselages is wrong)
...
Correct handling of fuselage's "midpoint" XML attribute so that the midpoint's
location matches the point assumed by all aircraft developers and YASim docs.
This means the fuselage won't be generated "back-to-front".
Also correct the variation of diameter for tapered fuselages so that both ends
of the fuselage narrow from the midpoint to the endpoints.
Before this, one end was narrowing from the endpoint to the midpoint, the
opposite of what was expected.
These changes affect both weight distribution and the distribution of lateral
aerodynamic forces.
2014-05-06 10:38:48 +02:00
Torsten Dreyer
86b3469fbf
JSBSim: fix zero agl above scenery discontinuity
...
see http://osdir.com/ml/flightgear-sim/2014-04/msg00145.html
2014-04-30 16:41:27 +02:00
Torsten Dreyer
4e89d05fb4
YASim: implement a versioning system
...
user attribute "version" of the airplane element of the YASim config file
to define the version this config uses.
Example:
<airplane mass="1344" version="YASIM_VERSION_CURRENT">
Initially, the following can be used:
YASIM_VERSION_ORIGINAL - The original version of YASim as implemented up to
FlightGear 3.0.0
YASIM_VERSION_32 - The version of YASim implemented in FlightGear 3.2.x
(and the development version 3.1.x)
YASIM_VERSION_CURRENT - The current and latest version of YASim.
2014-04-20 20:58:12 +02:00
Colin Douglas Howell
ef2898f25c
Corrected fix for issue 1423 (YASim miscomputes incidence rotation of force vector)
...
I got the sign wrong in my previous fix, causing the vector to be rotated the
wrong way. See my latest comments in issue 1423. Sorry about that.
2014-04-05 11:58:16 +02:00
James Turner
5002814554
FreeBSD fixes
...
From Ganael Laplanche.
2014-04-04 15:33:27 +01:00
Torsten Dreyer
ec2baa1a41
Merge commit 'refs/merge-requests/1579' of git://gitorious.org/fg/flightgear into yasimfixes
2014-04-04 08:57:16 +02:00
Torsten Dreyer
efc5c32633
Merge commit 'refs/merge-requests/1578' of git://gitorious.org/fg/flightgear into yasimfixes
2014-04-04 08:57:12 +02:00
Colin Douglas Howell
8cca0adc58
Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes)
...
Correct Airplane::compileFuselage() so that a Fuselage's "cx"
only affects drag on the X axis.
2014-03-27 02:12:11 -07:00
Colin Douglas Howell
aa27b38666
Fix for issue 1423 (YASim miscomputes force vector on Surfaces with nonzero incidence)
...
Surface::calcForce() now does reverse incidence rotation of force vector properly.
2014-03-25 01:50:21 -07:00
Colin Douglas Howell
8a9ce0ccf7
Fix for issue 1400 (YASim slats always give full stall enhancement)
...
Surface::stallFunc() now scales _slatAlpha by _slatPos when adjusting stallAlpha.
2014-03-22 12:11:39 -07:00
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
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
ThorstenB
591ef4ab01
Fixed incomplete merge of JSBSim.cxx
...
Commit 287cc74965
wasn't merged to release/2.2.0
properly by Commit b649f97b19
.
2011-02-06 16:46:36 +01:00
ThorstenB
ac71778319
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:34:32 +01:00
ThorstenB
6b6d7059de
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-06 15:34:16 +01:00
ThorstenB
68728c9449
Betrand Coconnier: fix bugs #47,#184: roll/pitch/speed via command-line
...
Specifying initial roll, pitch and speed should be working again.
2011-02-06 15:33:49 +01:00
ThorstenB
b649f97b19
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-02-06 15:33:27 +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
133cfbfa7f
Fixed several compiler warnings
...
uninitialized or unused variables, init sequence, ...
2011-02-02 22:05:54 +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
53e8fbfcbb
Andreas Gaeb: fix #222 (JSBSIm reset problems)
2011-01-25 00:27:56 +00: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
Erik Hofman
4a817a6307
Sync. with JSBSim CVS
2011-01-23 15:14:01 +01:00
James Turner
d4d70200eb
Better fix for bug #204 ; bind after all engines are loaded.
2011-01-01 16:08:17 +00:00
James Turner
738d653745
Work-around for bug #222 - delete the units/WOW property on init.
...
Another cleanup
2011-01-01 16:08:06 +00:00
James Turner
6fd33dd2c3
Fix bug #204 , and help with bug #222 - delete all
...
properties under /fdm/jsbsim when deleting the JSBSim interface.
2010-12-29 22:46:35 +00:00
James Turner
3f00b27926
Fix link ordering to keep GNU ld happy.
2010-12-19 09:03:35 -08:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Erik Hofman
d66903e9ad
latest updates from JSBSim
2010-11-30 13:44:10 +01:00
Erik Hofman
c44948041b
PAtch by Andreas Gaeb to eliminate NaN's in the location code
2010-11-29 09:57:45 +01:00
Erik Hofman
1cf207e054
Quick update with Bertrand Coconnier's fixes
2010-11-28 15:14:12 +01:00
Erik Hofman
ad51a9bde2
Sync JSBSim again
2010-11-28 10:58:47 +01:00
Erik Hofman
4dc76922c8
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-28 10:58:18 +01:00
ThorstenB
b037a80e5f
bug #183 : Increase area where models are force-loaded before FDM release
2010-11-26 23:33:22 +01:00
Erik Hofman
2ea50c63bb
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-11-19 15:35:38 +01:00
ThorstenB
44901ae86f
Tile manager improvements
...
Priority scheme for tile loading/removing
Cleaner tile manager interface for AI/groundcache/...
Reduce start-up delay. Drop splash screen when inner scenery is available.
Be nice to osg loader: slow-down main loop while initial scenery is still loading.
2010-11-19 13:59:43 +01:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
Erik Hofman
e7ed88af92
Merge branch 'next' of git://gitorious.org/fg/flightgear into next
2010-10-29 09:10:59 +02:00
Erik Hofman
61788d6558
temporary fix for a crash of the c172 (and possibly other aircraft)
2010-10-29 09:10:07 +02:00
Frederic Bouvier
6081f24b00
Don't blindly delete the global property tree on reinit
2010-10-29 09:00:31 +02:00
Erik Hofman
68f5429048
Sync with JSBSim cvs + Anders' patch to get it working with FlightGear.
2010-10-26 09:48:56 +02:00
James Turner
987c1bdfda
Automake build fixes for PLIB net/ul removal.
2010-10-24 11:04:14 +01:00
James Turner
0e53e2cbb1
PLIB net removed from FlightGear
2010-10-24 07:10:51 +01:00
Erik Hofman
08a42cb164
Sync. with JSBSim CVS
2010-09-19 11:18:13 +02:00
Erik Hofman
4b8fde057b
Sync. with JSBSim CVS
2010-09-19 11:16:29 +02:00
Erik Hofman
63b3f802ec
sync again
2010-08-14 14:09:58 +02:00
Torsten Dreyer
1aa484aee5
Fix segfault on invalid command line arguments
...
If FlightGear terminated before the FDM was instantiated it crashed.
2010-08-06 08:44:34 +02:00
Erik Hofman
1d91468ddc
Fix a startup offset problem
2010-08-04 10:22:26 +02:00
Erik Hofman
0d0751e37c
Sync. with JSBSim CVS.
2010-08-03 09:51:13 +02:00
James Turner
d1852430bf
Make various implicit includes (via PLIB) explicit.
2010-07-28 10:25:42 +01:00
Erik Hofman
d6e6f85452
don't forget to update the Makefile
2010-07-16 12:31:59 +02:00
Erik Hofman
0b86f8f63c
Sync with JSBSim CVS
2010-07-16 11:05:59 +02:00
Erik Hofman
7053b45c8c
Sync with JSBSim CVS
2010-07-16 08:00:21 +02:00
James Turner
93c6d15e19
Merge branch 'topics/bug141' into next
2010-07-13 20:50:17 +01:00
Torsten Dreyer
e0d30cc412
Compute /position/altitude-agl-ft in MagicCarpet FDM
...
Add the same computation of /position/altitude-agl-ft for
the magic carpet fdm as it is used in the ufo fdm. This
property is used in the environment controller to interpolate
between the individual weather-condition layers.
2010-07-13 21:11:49 +02:00
James Turner
c32da90e5c
Ensure sim/signals/fdm-initialized is only fired on a rising edge; add sim/fdm-initialized as the state value.
2010-07-13 13:47:24 +01:00
James Turner
01e0156b5d
Remove current_aircraft global, fgAIRCRAFT struct, and dead code for reading aircraft dirs.
2010-07-01 22:33:51 +01:00
James Turner
fec7cb977c
Clarify warnings from fgUntie, and fix one source of such warnings, in FGInterface.
2010-07-01 02:04:16 +01:00
James Turner
14be21ea5c
Add license / copyright info to newly added files.
2010-06-27 20:34:00 +01:00
Torsten Dreyer
f6ea868804
Fix build on Windows
...
Add missing includes.
Thanks to Alan Teeder
2010-06-27 15:02:59 +02:00
James Turner
180e524a0e
Fix automake build after mainloop changes - especially, JSBSim includes.
2010-06-26 18:37:51 +01:00
James Turner
4a948f5955
Remove uses of the global FDM interface in the cockpit/HUD code.
2010-06-26 14:21:16 +01:00
James Turner
4be1661305
Automake updates.
2010-06-26 10:31:22 +01:00
James Turner
85be9be1e0
Initial work on FDM shell, and removal of cur_fdm_state
2010-06-26 10:31:22 +01:00
Torsten Dreyer
c89b18ddbd
Ignore generated files
...
add generated files to gitignore that has also been in cvsignore
remove generated config.h-msvc* from source control
2010-06-02 11:27:16 +02:00
James Turner
ad19acf1c6
Remove C++ autobrake code - this can all be done easier in XML now!
2010-05-29 10:36:23 +01:00
Tim Moore
fba05c527f
Merge branch 'torsten/track'
2010-02-10 00:45:28 +01:00
Tim Moore
5aea857dd6
initialize track variable in constructors
2010-01-26 11:06:37 +01:00
torsten
690395354f
provide a property /orientation/track
...
The track is computed between two subsequent settings of the geodetic position and represents the true track.
Also the _set_Latitude() and _set_Longitude() methods were removed. Use _set_Geodetic_Position(lat,lon) instead.
2010-01-03 22:26:16 +01:00
Csaba Halasz
54691c0086
Detect zero length fuselage in YASim/Airplane.cpp. Also, initialized _failureMsg member in the constructor and added another check for failure.
2009-12-22 07:17:27 +01:00
ehofman
1e744a2582
Csaba Halasz: Pass file name to xml parser for error reporting from JSBSim.
2009-11-29 15:54:22 +01:00
ehofman
7af1f496e8
PreLoad and PostLoad also from a separate file.
2009-11-29 15:53:57 +01:00
ehofman
30e535bc7b
Sync. withn JSBSim CVS
2009-11-29 15:53:31 +01:00
ehofman
b1eebb21a6
rocket engine and piston engine fixes
2009-11-02 23:30:56 +01:00
ehofman
a70431c5a4
sync. w. JSBSim CVS
2009-10-28 23:23:29 +01:00
Tim Moore
7024454088
Remove system typedefs for MSC in net_fdm.hxx
...
They are defined by stdint.hxx now.
2009-10-26 23:46:17 +01:00
Tim Moore
ec8b5df2cf
stdint.h or equivalent is needed for net_fdm.hxx
2009-10-26 22:41:36 +01:00
ehofman
1d097cc575
mingw fix
2009-10-26 22:11:58 +01:00
ehofman
82364aa4da
Sync. w. JSBSim cvs
2009-10-26 18:56:23 +01:00
ehofman
7283e506b2
Sync. with JSBSim CVS
2009-10-24 19:50:27 +02:00
ehofman
836aabae69
Removed code from ConsumeFuel() which failed due to rounding error.
2009-10-19 23:58:14 +02:00
ehofman
6fec83155e
James Turner: Add autobrake functionality
2009-10-17 14:02:27 +02:00
ehofman
b937b5bbea
Changed starting fuel flow. Fixed aborted start behavior.
2009-10-16 11:23:07 +02:00
ehofman
b7079aef7a
This is the looping fix.
2009-10-16 11:22:57 +02:00
ehofman
5e22f4b563
fixed egngine feed bug
2009-10-16 11:22:47 +02:00
ehofman
0f0f25512d
sync. with JSBSim CVS again
2009-10-14 00:40:44 +02:00
durk
47a7952f89
Stuart Buchanan:
...
Improvements to the cloudsystem:
- A new xml format
- Texture indexing based on the position of the sprite in the cloud
mass, allowing more control over the texture set.
- Improved fog and shading
- Better sprite distribution
- A more natural distribution of clouds, so no more obvious grids.
2009-10-04 02:05:08 +02:00
Tim Moore
8b10bb12f5
Merge branches 'jmt/navradio', 'jmt/cleanup' and 'torsten/gps-fix'
2009-10-01 15:17:24 +02:00
jmt
9d97531b82
Replace one SGD_ constant with a local one, in LaRCsim.
2009-09-20 16:46:32 +02:00
jmt
59895306a5
Remove <plib/sg> includes.
2009-09-20 16:46:32 +02:00
torsten
16eefc84d1
Tatsuhiro Nishioka:
...
Patches for configure.ac and Makefile.am files in FG/SG so Mac developers can build these in a unix way.
These also enables Mac developers to choose either PLIB framework or PLIB static libs.
2009-09-17 22:54:42 +02:00
frohlich
2f6107982c
Use the new vector conversion functions.
...
Modified Files:
src/FDM/groundcache.cxx src/Main/renderer.cxx
src/Main/viewer.cxx src/Scenery/scenery.cxx
2009-09-09 08:56:31 +02:00
ehofman
f220feb684
Sync. with JSBSim (CVS) again
2009-09-09 08:56:31 +02:00
ehofman
98b5e7e6fe
Bertrand Coconnier:
...
Additionally to the original fix (problem with the Tec2b matrix initialization) I have modified the code for the "STRUCTURE" contacts in order not to generate NaNs when the z direction of the body frame is normal to the ground normal. Now there should no longer be any NaN generated by the landing gear code.
2009-09-03 00:02:48 +02:00
durk
1ae2b59333
Added two missing files from JSBSim.org that were missing in the last sync.
2009-09-03 00:02:48 +02:00
ehofman
48cad71a70
Sync with JSBSim CVS again
2009-09-03 00:02:48 +02:00
curt
f07a83c73a
Allow setting of NED velocities.
2009-09-03 00:02:48 +02:00
Tim Moore
185ede0159
Fix order of initializers in constructor
2009-08-24 17:58:27 +02:00
Tim Moore
5a1e0d92f4
fix gcc warnings
...
Mostly comment out unused variables.
2009-08-24 17:57:32 +02:00
Tim Moore
1e049f24b0
fixes to remove warnings
...
Comment out unused variables; fix a real bug in uiuc_gear().
2009-08-24 17:56:39 +02:00
Tim Moore
bfe942268e
Initialize some variables
2009-08-24 17:54:48 +02:00
Tim Moore
c6d4f3b0ff
Fix to LaRCsim interpolation code
...
Is this code still used? I don't know, but -Wall -Werror turned up a problem.
2009-08-24 17:53:57 +02:00
ehofman
9a01f8bf73
temporary fix for a division by zero problem for some aircraft
2009-08-23 21:43:10 +02:00
fredb
f2b9b9f441
Compile under MSVC9 again
2009-08-23 21:43:09 +02:00
ehofman
5ee9cd1fcc
Add Bertrand Coconnier's latest landing gear code
2009-08-23 21:43:09 +02:00
fredb
4c29f8711b
Compile under MSVC9 again
2009-08-23 21:43:08 +02:00
ehofman
cf25f69d36
Update to the latest version of JSBSim
2009-08-23 21:43:08 +02:00
fredb
abe00db6aa
Compile under MSVC9 again
2009-08-08 08:37:14 +02:00
ehofman
a7976b835d
Sync. with JSBSim
2009-08-08 08:37:14 +02:00
fredb
94caa0b891
Fix case typo
2009-07-27 23:52:33 +02:00
fredb
9718338560
Compile under MSVC9
2009-07-27 23:52:33 +02:00
timoore
ca3bd1c309
accomodate changed getDisplayName interface in yasim::Hitch
2009-07-16 12:10:47 +02:00
fredb
219be77f1e
Suppress warnings
2009-07-02 08:59:16 +02:00
ehofman
6079ff58fd
sync. with JSBSim again
2009-07-02 08:59:15 +02:00
ehofman
1ed6276f16
Don't create a new instance of /fdm/jsbsim upon reset
2009-07-02 08:59:15 +02:00
Tim Moore
b588a92b7f
adapt to changes in sg_exception interface
...
sg_location now uses C strings. Also, change uses of sg_throwable to more
specific exceptions like sg_io_exception.
2009-06-16 11:46:47 +02:00
ehofman
d27097d7b8
don't forget to include the new header for the tardist
2009-06-15 10:29:44 +02:00
ehofman
cb435814c1
latest changes for JSBSim (1.0 prerelease)
2009-06-15 10:29:44 +02:00
frohlich
c56b2f0047
Also take the current BVH nodes transform into account.
...
Modified Files:
src/FDM/groundcache.cxx
2009-06-11 16:05:20 +02:00
ehofman
4aff7b279d
Upgrade to JSBSim 1.0-prerelease
2009-06-03 00:18:56 +02:00
ehofman
88478f03d0
Sync. with JSBSim CVS
2009-05-18 12:24:17 +02:00
mfranz
095c710c0e
leak fixes
2009-05-18 12:24:16 +02:00
andy
2eebd94dac
From Vivian: add a tunable launchbar acceleration, to better support some
...
of the Jets on the catapult.
2009-05-02 00:44:22 +02:00
ehofman
86b34010f3
Sync. w. JSBSim: fix a few unexpected glitches
2009-05-02 00:44:20 +02:00
ehofman
720b6fa3f6
Sync. w. JSBSim CVS
2009-04-15 23:19:30 +02:00
ehofman
1a1b11b96c
Fixes:
...
* line 343: comparison between signed and unsigned integer expressions
* line 441: 'lon', 'lat', 'slr' and 'alt' might be used uninitialized
* line 565: enumeration value 'etUnknown' not handled in switch
2009-04-01 09:23:54 +02:00
ehofman
81b9bb61e5
Sync. w. JSBSIm one more time to fix at least one bug
2009-04-01 09:23:54 +02:00
ehofman
27a7305736
Sync. w. JSBSim cvs
2009-04-01 09:23:54 +02:00
frohlich
183b871b48
Fix a problem with two concurent 'round to multiple of basic simulation
...
time' code paths. The problem may lead to skipped fdm updates at very high
frame rates. The most visible effect of that was that the aircraft
slips backwards wrt the forward moving carrier.
Remove unused stuff.
Modified Files:
configure.ac projects/VC7.1/FlightGear.vcproj
projects/VC8/FlightGearLib.vcproj src/Cockpit/cockpit.cxx
src/FDM/Makefile.am src/FDM/flight.cxx src/FDM/flight.hxx
src/FDM/SP/Balloon.cxx src/FDM/SP/BalloonSim.cpp
src/FDM/SP/BalloonSim.h src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx src/Time/Makefile.am
Removed Files:
src/Time/fg_timer.cxx src/Time/fg_timer.hxx
2009-03-18 08:00:09 +01:00
frohlich
22888ca8a5
Use simgear vector instead of plib vectors.
...
Modified Files:
SP/Balloon.cxx SP/BalloonSim.cpp SP/BalloonSim.h
2009-03-18 08:00:09 +01:00
frohlich
a99ea1c7b5
Port over remaining Point3D usage to the more type and unit safe SG* classes.
...
Remove leftover headers from plib/sg.
Modified Files:
src/AIModel/AIBase.cxx
src/AIModel/AIFlightPlanCreateCruise.cxx
src/ATCDCL/AIEntity.cxx src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.cxx src/ATCDCL/AIGAVFRTraffic.hxx
src/ATCDCL/AILocalTraffic.cxx src/ATCDCL/AILocalTraffic.hxx
src/ATCDCL/AIMgr.cxx src/ATCDCL/ATC.hxx
src/ATCDCL/ATCDialog.cxx src/ATCDCL/ATCProjection.cxx
src/ATCDCL/ATCProjection.hxx src/ATCDCL/ATCutils.cxx
src/ATCDCL/ATCutils.hxx src/ATCDCL/approach.cxx
src/ATCDCL/commlist.cxx src/ATCDCL/ground.cxx
src/ATCDCL/ground.hxx src/ATCDCL/tower.cxx
src/ATCDCL/tower.hxx src/Airports/calc_loc.cxx
src/Airports/dynamics.cxx src/Airports/groundnetwork.cxx
src/Airports/parking.cxx src/Airports/runwayprefs.cxx
src/Airports/simple.cxx src/Cockpit/cockpit.cxx
src/Cockpit/hud.hxx src/Cockpit/hud_card.cxx
src/Cockpit/hud_rwy.cxx src/Environment/environment.cxx
src/FDM/UFO.cxx src/FDM/SP/MagicCarpet.cxx src/GUI/dialog.hxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx
src/Instrumentation/KLN89/kln89.cxx src/Main/fg_init.cxx
src/Main/viewer.cxx src/Main/viewmgr.cxx
src/Model/panelnode.cxx src/MultiPlayer/mpmessages.hxx
src/Scenery/tilemgr.cxx src/Traffic/SchedFlight.cxx
src/Traffic/TrafficMgr.cxx
2009-03-18 08:00:08 +01:00
frohlich
c254bb9c38
Make use of the fast bv intersection tests even for the croaser altitude
...
queries. This also fixes some issues with the carrier and the croaser
altitude values that is used when no hit is found.
Include some ifdefed out debugging code, that might be interresting.
Modified Files:
groundcache.hxx groundcache.cxx
2009-03-18 08:00:08 +01:00
frohlich
8f660b97ad
Make a simulation reset on the carrier work again.
...
Modified Files:
src/FDM/flight.cxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx
2009-03-18 08:00:08 +01:00
frohlich
db2d4a7a68
Fix some sim time issues with the locations of the ground cache and the
...
queries in there.
Modified Files:
flight.cxx flight.hxx groundcache.cxx
groundcache.hxx JSBSim/JSBSim.cxx YASim/YASim.cxx
YASim/YASim.hxx
2009-03-18 08:00:08 +01:00
frohlich
7cb7ba9f90
Fix cmpiler warning.
...
Modified Files:
Rotorpart.cpp Rotorpart.hpp
2009-03-18 08:00:08 +01:00
frohlich
f9f9350b96
Adapt to SGTimeStamp changes.
...
Modified Files:
configure.ac src/Cockpit/panel.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/ExternalNet/ExternalNet.hxx
src/Instrumentation/marker_beacon.cxx src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx
src/MultiPlayer/multiplaymgr.cxx src/Time/fg_timer.cxx
utils/GPSsmooth/MIDG_main.cxx utils/GPSsmooth/UGear_main.cxx
utils/GPSsmooth/gps_main.cxx
2009-03-18 08:00:08 +01:00
frohlich
16211c9440
More robust behaviour when the tilemanager reports 'no scenery'.
...
Insert log if this happens.
Modified Files:
flight.cxx groundcache.cxx
2009-03-18 08:00:07 +01:00
frohlich
82b54e7a25
Avoid SGLocation usage.
...
Modified Files:
configure.ac src/AIModel/AIBase.cxx
src/ATCDCL/AILocalTraffic.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/LaRCsim/LaRCsim.cxx
src/Main/Makefile.am src/Main/fg_init.cxx src/Main/main.cxx
src/Main/viewer.cxx src/Main/viewer.hxx
src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx
2009-03-11 23:14:34 +01:00
frohlich
2229491ffe
Use new function.
...
Modified Files:
src/FDM/groundcache.cxx
2009-03-11 23:14:33 +01:00
frohlich
55a978f2a8
Update groundcache api:
...
Make leaner interfaces to the groundcache.
Remove legacy interfaces.
Update users of them.
Add new query routines for 'nearest point' and 'body with given id'.
Modified Files:
src/FDM/flight.cxx src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx src/FDM/JSBSim/JSBSim.cxx
src/FDM/JSBSim/JSBSim.hxx src/FDM/YASim/FGGround.cpp
src/FDM/YASim/FGGround.hpp src/FDM/YASim/Gear.cpp
src/FDM/YASim/Gear.hpp src/FDM/YASim/Ground.cpp
src/FDM/YASim/Ground.hpp src/FDM/YASim/Model.cpp
2009-03-11 23:14:33 +01:00
frohlich
d2466d605f
Set the motion transform id in the collection step.
...
Modified Files:
src/FDM/groundcache.cxx
2009-03-05 10:52:03 +01:00