Henning Stahlke
2229b0a494
YASim: mark methods of Version 'const'
2017-04-22 14:59:03 +02:00
Henning Stahlke
fcfc82b471
YASim: move one-liners and add 'const'
2017-04-21 22:17:27 +02:00
Henning Stahlke
ef9fa25b94
YASim: update default for desired cg range.
2017-04-18 22:27:35 +02:00
Henning Stahlke
1302c167dd
YASim: rename some exported props.
2017-04-18 22:11:34 +02:00
Henning Stahlke
73de375249
YASim declared get methods as const. (correction to previous commit)
2017-04-18 19:12:23 +02:00
Henning Stahlke
3f0ef99c71
YASim: add MAC (mean aerodynamic chord) and c.g. calculations.
2017-04-17 22:52:26 +02:00
Henning Stahlke
574f2f907f
YASim: add setAirFromStandardAtmosphere() to Class Model.
2017-04-17 20:10:46 +02:00
Henning Stahlke
7f5a91ea47
YASim: refactoring loadControls()
2017-04-17 20:09:44 +02:00
Henning Stahlke
dbfe9a7b41
YASim: clean up export of aero force and ground effect force to prop tree.
2017-04-17 19:54:26 +02:00
Gary Preston
8958b4d130
Cleanup unused variable warning.
...
Remove, comment out or relocate variables as appropriate to silence
unused variable warning.
2017-04-06 18:26:18 +09:00
Gary Preston
d2ca422c8b
Adjust if/else indentation to fix -Wmisleading-indentation
2017-04-06 18:26:01 +09:00
Henning Stahlke
50110b0cd6
YASIM: minor change to allow RigidBody addMass and setMass to trigger aggregation correctly. (not a problem up to now, just to be safe in future)
2017-03-21 22:47:07 +01:00
Henning Stahlke
f7359d9699
YASim: add bug warning messages.
2017-03-21 22:46:33 +01:00
Henning Stahlke
53103ac15e
YASim: update CLI usage message.
2017-03-21 22:43:01 +01:00
Erik Hofman
2393fd647d
Merge /u/jsb1685/flightgear/ branch yasim into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/78/
2017-03-19 07:49:26 +00:00
Henning Stahlke
dc63307965
YASim: fix segmentation fault in yasim CLI tool
2017-03-18 23:17:19 +01:00
Henning Stahlke
0f472efe9b
YASim parser: add support for metric and imperial attibutes, e.g. mass-lbs, mass-kg
2017-03-18 21:28:26 +01:00
Henning Stahlke
cecdfd0832
YASim FGFDM.hpp correction of pointer declarations.
2017-03-18 21:19:24 +01:00
Henning Stahlke
c61730db92
YASim Wing method name clarification (SMC is not MAC).
2017-03-16 09:43:41 +01:00
Henning Stahlke
bb9a8a1850
YASim backward compatibility fix for ground effect calculation (added if isVersionOrNewer).
2017-03-16 09:39:58 +01:00
Henning Stahlke
1c932b3d79
YASim Model.cpp to avoid performance problems with getNode() add variables for properties that are written at FDM rate.
...
getNode() is slow, setValue() is ok
2017-03-16 09:36:15 +01:00
Bertrand Coconnier
40be2687f7
Restored the legacy behavior: the XML extension is mandatory and when it is not explicitely specified it is automatically added.
2017-03-14 21:59:14 +01:00
Henning Stahlke
dbf21b1ca8
YASim calculate max CG range (on x-axis) from gear positions, to implement checks later (a better guesstimate will follow).
2017-03-11 22:44:45 +01:00
Henning Stahlke
e78a763eef
YASim Airplane: move one-liners to header and remove unused code.
2017-03-11 21:29:05 +01:00
Henning Stahlke
60f5c97272
YASim Gear: move one-liners to header
2017-03-11 21:06:16 +01:00
Bertrand Coconnier
0d342f526e
Exports the parameters of JSBSim ground reactions friction resolver to the property tree for debugging.
2017-03-11 14:00:20 +01:00
Bertrand Coconnier
579f215005
Sync w/ JSBSim:
...
* Propeller required power now accounts for the engine tilt
* Fixed a division by zero in FGLGear::GetSteerNorm for non steerable gears
* Fixed a bug reported by Ron H. and Rebecca N. Palmer on the FG mailing list: the 'length' parameter passed to gethostbyaddr in FGFdmSocket was erroneous.
2017-03-11 13:24:51 +01:00
Henning Stahlke
06ba4fe351
YASim wrap bugfix with version check to maintain compatibility with old aircraft config.
2017-03-07 20:47:43 +01:00
Henning Stahlke
1e92c33a9e
YASim export config version used by aircraft to property tree.
...
Gives /fdm/yasim/config-version as integer (see enum in Version.hpp to decode).
2017-03-07 20:45:46 +01:00
Henning Stahlke
80462d23c5
YASim Wing: remove unnecessary local variable "root" (use _base);
...
calculate _tip in directly in one command
clarify signature of Wing::interp()
2017-03-07 18:03:25 +01:00
Henning Stahlke
583ea27dd6
YASim Version: add tag for version 2017.2
2017-03-07 17:50:05 +01:00
Henning Stahlke
a56f85ac95
YASim removed unused include from Rotor.cpp
2017-03-07 17:50:05 +01:00
Henning Stahlke
6efa1ab821
YASim moved one liners
2017-03-07 17:50:05 +01:00
Henning Stahlke
ce4df326d7
YASim Airplane.cpp additional comments
2017-03-07 17:50:05 +01:00
Henning Stahlke
05f9fcfd10
comments
2017-03-07 17:50:04 +01:00
Henning Stahlke
dc66959b83
YASim comments
2017-03-07 17:50:04 +01:00
Henning Stahlke
1198f5a3ec
YASim CLI tool: add print out of max lift and min drag
...
add drag(speed) print function
2017-03-07 17:50:04 +01:00
Henning Stahlke
cb7d2a1bc5
YASim Wing: add _aspectRatio and _meanChord.
...
(an some indent)
2017-03-07 17:50:04 +01:00
Henning Stahlke
a87442c6f3
YASim fix performance problem due to export to prop.tree.
2017-03-07 17:50:04 +01:00
Henning Stahlke
76a0ea96cc
YASim clarification. Add const to method parameters in Math.hpp
2017-03-07 17:50:04 +01:00
Henning Stahlke
4cbe540bec
YASim: convert local variables alpha and stallAlpha to members of Surface.
2017-03-07 17:50:03 +01:00
Henning Stahlke
5f78545961
only white spaces
2017-03-07 17:50:03 +01:00
Henning Stahlke
d4688d206a
YASim: export surface data to property tree.
2017-03-07 17:50:03 +01:00
Henning Stahlke
d322ded552
YASim bugfix: ground effect did not calculate wingspan correctly;
...
Variable name clarification;
Add Wing::getWingArea, separate Wing::getWingSpan and Wing::getBase.
2017-03-07 17:50:03 +01:00
Henning Stahlke
559dcf4e32
YASim optimization: pre-calculate data for masses that do not change in flight to save CPU (RigidBody::recalc() runs at FDM rate).
...
export mass data to property tree.
2017-03-07 17:50:03 +01:00
Henning Stahlke
4e1be43f15
YASim: export wing data to property tree.
2017-03-07 17:50:03 +01:00
Henning Stahlke
021a9db9be
YASim add surface id and export surface positions to prop tree after model compile.
2017-03-07 17:50:02 +01:00
Henning Stahlke
dd420c6ff4
YASim bugfix, correct an obvious copy-and-paste error
2017-03-07 17:50:02 +01:00
Henning Stahlke
41b18155a8
YASim: export FDM state (v, a, rot) to property tree.
2017-03-07 17:50:02 +01:00
Henning Stahlke
70dd3de3bb
YASim: FGFDM convert local variable _yasimN into a class member
2017-03-07 17:50:02 +01:00
Henning Stahlke
2cac4e4671
YASim: Move variables and methods for input properties from FGFDM to ControlMap.
2017-03-07 17:50:01 +01:00
Henning Stahlke
f14cc3be33
Extend yasim-test.cpp; add print mass distribution, add plot with different configs
2017-03-07 17:47:51 +01:00
Henning Stahlke
6f1f850c11
YASim method name clarification Airplane::setWeight
2017-03-07 17:47:50 +01:00
Henning Stahlke
97a0511ce0
YASim method name clarification in class Surface
2017-03-07 17:47:50 +01:00
Henning Stahlke
91fd075796
YASim method name clarification Wind::setSlat
2017-03-07 17:47:50 +01:00
Henning Stahlke
91806861c6
YASim method name clarification Wind::setFlap1
2017-03-07 17:47:50 +01:00
Henning Stahlke
e69f6ba9ab
YASim method name clarification Wind::setFlap0
2017-03-07 17:47:50 +01:00
Henning Stahlke
ce753c0382
YASim method name clarification Wing::setSpoiler
2017-03-07 17:47:50 +01:00
Henning Stahlke
b447bbdc5e
Optimize YASim/RigidBody.cpp utilizing symmetry of tensor.
2017-03-07 17:47:49 +01:00
James Turner
41f875a729
Silence a warning about log levels.
...
These levels will never be set on the output side, so handle them
as default here.
2017-03-05 21:41:52 +02:00
James Turner
3653508412
Build- and run-time concept of developer mode.
...
Make a single Cmake value to expose the build type to code, and use
this to default a run-time ‘developer-mode’ property, which can be
over-ridden from the command line.
Use this to drive the different warning levels. Policies subject to
review, especially whether nightly builds should default to
developer mode or not.
2017-02-27 23:37:59 +00:00
Peter Sadrozinski
ec4b9f8542
Alternative terrain engine based on pagedLOD
...
- remove TileMgr from sub systems - add to btg terrain engine
2017-02-26 10:17:15 -05:00
Bertrand Coconnier
7cbdc8b923
Sync w/ JSBSim (use SGPath to manage file names)
2017-02-25 16:22:23 +01:00
Bertrand Coconnier
86d46ce79c
Sync w/ JSBSim
2017-02-21 22:35:09 +01:00
Richard Harrison
fa142c9464
Change log level for "prepare_ground_cache(): scenery_available returns false" message as the message occurs at a high rate and seems to be more suited at bulk rather than warn level
2017-02-14 16:08:05 +01:00
Erik Hofman
7133bc5c0f
Make MSVC happy
2017-01-30 00:41:27 +01:00
Erik Hofman
ebfadb908c
Make sure the AISim code compiles with the latest SIMD code changes in simgear
2017-01-29 15:27:41 +01:00
Viktor Radnai
a26a5d741b
Make wheels spin down slowly once off the ground
2017-01-26 20:36:07 +00:00
Erik Hofman
1a0537e493
Silence a few compiler warnings
2017-01-26 15:37:43 +01:00
martymac
ffc7ad6cdf
Fix build with Clang 4.0.0.
...
Those patches fix errors related to ordered comparisons between pointers and
integers, such as the ones related here on FreeBSD :
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216203
2017-01-21 21:32:50 +00:00
Erik Hofman
404fad4254
MSVC fix
2017-01-15 09:26:34 +01:00
Erik Hofman
9f9f1c631f
Add the latest code for reference in the JSBSim mailing list while bug hunting
2017-01-14 14:33:28 +01:00
James Turner
88fc98f57b
Mcc build fix for JSBsim executable.
2017-01-12 12:30:43 +00:00
Geoff McLane
52572ef1f3
Add back a JSBSim.exe build, install
2017-01-12 12:30:42 +00:00
Geoff McLane
c7391668e6
To build JSBSim, add copy from jsbsim-code repo
2017-01-12 12:30:42 +00:00
Erik Hofman
9a71f6348f
A new batch of updates, slowly moving forward
2017-01-06 15:02:35 +01:00
Erik Hofman
ffdfdcb6d7
Alter the sequence to allow type conversion
2016-12-23 16:01:49 +01:00
Erik Hofman
31ed6184a9
NExt batch of updates: more use of SIMD instructions. Still work in progress.
2016-12-22 15:14:52 +01:00
Erik Hofman
33f0b83b69
Viktor Radnai:
...
There is a Flightgear property called /sim/hitches/winch/automatic-release-angle-deg that can be used to simulate a safety feature built into modern gliders. If the cable angle gets too great during a winch launch, the hook will automatically release the cable. This usually happens when the glider gets almost on top of the winch at the top of the launch without releasing the cable.
Unfortunately winch launching has two separate implementations, one in Nasal for JSBSim, and another one in C++ for YASIM. The YASIM one does not implement this property so I wrote a patch to add this.
2016-12-22 11:49:15 +01:00
Erik Hofman
342f75d48c
Add a missing break statement
2016-12-21 09:50:53 +01:00
Erik Hofman
8b466cb207
One last(?) MSVC fix
2016-12-15 20:08:25 +01:00
Erik Hofman
e845dab6e0
Fix an MSVC error
2016-12-15 10:49:09 +01:00
Erik Hofman
709936a265
MSVC fixes
2016-12-08 01:03:26 +01:00
Erik Hofman
7ec7a8b60c
Add the first version of AISim but
2016-12-07 11:05:07 +01:00
Erik Hofman
7ed4a5162e
Replace auto_ptr with unique_ptr
2016-12-07 11:03:54 +01:00
James Turner
14942f4e8b
Move Yasim properties to /fdm/yasim
...
As discussed on the mailing list, make this more consistent with JSBsim.
We could still define common locations for these values as well, but
waiting on positive answer to that discussion on the ML.
2016-11-25 17:41:05 +00:00
James Turner
9bf337148d
Expose c-of-g to property tree in YASim.
...
Patch by Henning Stalkhe
2016-11-18 16:40:38 +01:00
James Turner
7b0c58081b
JSBsim lib needs SimGear headers.
2016-11-03 10:01:27 +00:00
James Turner
6382d20f68
Fix flightProperties build.
2016-11-02 14:39:53 +00:00
Erik Hofman
4ee8661eaa
Include the cmath header
2016-11-02 15:30:35 +01:00
James Turner
e2f7585d9c
Use a Cmake imported target for SimGear
2016-10-30 22:15:54 +00:00
Bertrand Coconnier
c226e08293
Fixed the initial location so that geodetic latitude and ASL are kept in sync.
2016-08-28 12:23:17 +02:00
Erik Hofman
1c8542b65b
Remove some debugging statements
2016-08-08 11:19:14 +02:00
Erik Hofman
fa99be7766
Use a bit less intrusive solution
2016-08-08 11:16:21 +02:00
Erik Hofman
02d037d205
Fix the startup position error. I'll leave it to Bertrand wether this is the best way to fix it
2016-08-07 11:41:03 +02:00
Erik Hofman
5ab2d82c89
Show a popup dialog for every SG_POPUP message in the queue
2016-07-20 15:03:15 +02:00
Erik Hofman
f1f2e9f21d
Brendan Black:
...
when active does not touch the way the YASim jet calculates fuel flow, but separates out the afterburning component of thrust, calculates the TSFC of that component and uses the same method of fuel flow calculation for the afterburning component then adds it to the existing fuel flow
When inactive (atsfc doesn't exist or is zero) it just behaves exactly as before
I finally got around to testing this small patch thoroughly, and I'm satisfied that it doesn't affect anything else & works across many different versions (i've been testing it with current as it has changed over the last 7 months)
2016-07-17 11:30:07 +02:00
James Turner
2eb5e6f0f4
Merge /u/jbicha/flightgear/ branch next into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/49/
2016-07-11 09:04:58 +00:00
Bertrand Coconnier
a1a7aa267c
JSBSim sync.
...
* Fixed the initial conditions settings (geodetic altitude is now correctly computed).
* FGLGear reports the time at which it detected a violent ground hit (aka crash)
* Doc update of the kinematic component
* TurboProp code cleanup with the removal of lots of obsolete/no-op members.
2016-07-10 14:45:09 +02:00
Jeremy Bicha
25928bf614
Use CMAKE_INSTALL_BINDIR
...
Allow /bin install directory to be overriden. Debian for example uses this
to install FlightGear to /usr/games/ instead of /usr/bin/
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
2016-07-09 18:52:58 -04:00
James Turner
7870e03faf
Build fixes for yasim tests / SGPath changes.
2016-07-04 10:17:41 +01:00
James Turner
7f3fe584e3
Update for path-aware easyXML API
2016-07-03 23:43:39 +01:00
James Turner
03ecac9dbc
Work with new SGPath API.
2016-06-22 17:36:05 +01:00
Bertrand Coconnier
a61c0bfdb4
Sync'ed with JSBSim: avoid the lag in <kinematic> while trimming. This allows the trim on ground for the P51 to succeed.
2016-06-12 17:04:35 +02:00
Bertrand Coconnier
dc7f065e08
Sync'ed with JSBSim:
...
* Fixed the trim on ground algorithm. Now JSBSim aircrafts should no longer be 'dropped' on the runway at start.
* Removed a correction on the propeller induced velocity that was giving erratic results when the aircraft aero velocity is very small.
* Various source comments updates.
2016-06-12 11:36:45 +02:00
Erik Hofman
1a0f3d8826
Revert some debugging code which krept in
2016-05-28 10:05:09 +02:00
Erik Hofman
ea6e1c9854
Fix the header name change from sample_openal.hxx to sample.hxx
2016-05-28 09:57:03 +02:00
Bertrand Coconnier
f25304ace5
Tentative to fix JSBSim bug SF #115 : don't compute cl-squared when qbar is too low otherwise its value will go through the roof and so will the induced drag.
2016-05-27 13:50:35 +02:00
Bertrand Coconnier
adeb0241ae
Bug fix for JSBSim SF bug #115 : P51D crashes when advance ratio goes through zero
2016-05-23 20:02:36 +02:00
Erik Hofman
6fb6446189
Fix file permissions
2016-05-23 11:39:40 +02:00
Erik Hofman
34011c1dec
Code cleanups, code updates and fix at least on (possible) devide-by-zero
2016-05-23 11:38:05 +02:00
Bertrand Coconnier
43f2daa7ae
JSBSim: - Fixed the forces/hold-down feature. The velocities are now zeroed when the property is set which should prevent aircraft from drifting as has been reported by G. Agostinho.
...
- Fixed a bug that was skipping the <system> initialization.
2016-04-16 14:49:12 +02:00
Erik Hofman
02174a1df6
Add the latest fixes and expose all inertias in the property tree
2016-04-06 14:26:30 +02:00
James Turner
e8398d5cee
Fix Clang unused member warnings in JSBsim.
2016-03-26 20:24:57 +00:00
Erik Hofman
5ef3413373
Add the latest batch of JSBSim changes. Tested with the Shuttle
2016-01-29 12:23:58 +01:00
James Turner
9172a8a8a9
VS2013 fixes for some FDMs.
2016-01-27 14:00:09 +00:00
James Turner
2677b3a226
Use target_include_directories in some places.
...
I didn’t know about this feature when doing the original CMake files,
we can use this to target header-file includes more precisely.
(Probably more cases exist that can be changed from global to target-
specific includes)
2016-01-26 07:48:30 +01:00
bcoconni
bf851605fb
Fixed a bug which caused the solid propellant thrusters of the space shuttle to be unconditionnally ignited during the trimming.
2016-01-17 10:26:25 +01:00
Bertrand Coconnier
95b932e9b3
JSBSim dropped the support of the simplex trim code
2016-01-16 19:36:32 +01:00
Bertrand Coconnier
f526dcdf3a
Fixed the initialization process for JSBSim models: the error message "FGTrim::calcRotation DistPlane^2 larger than sqrRadius" should no longer be issued
2016-01-16 19:32:50 +01:00
bcoconni
4d2f9e7955
Remove the error message about the property atmosphere/P-sl-psf that can't be tied
2016-01-16 13:14:51 +01:00
James Turner
a549c8fe45
Fix unused constants in YASim
2016-01-12 12:50:44 -06:00
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