Henning Stahlke
35f6811ce3
YASim: trivial code clarification in Wing.cpp
2017-05-04 15:33:13 +02:00
Henning Stahlke
caf2100b5e
YASim: code dedup in class Wing.
2017-05-04 15:18:48 +02:00
Henning Stahlke
6817292e73
YASim: changed constructor for Wing. Creating a Wing object without basic geometry data is pointless and this data cannot change during runtime.
2017-05-04 14:31:43 +02:00
Henning Stahlke
614f05bb39
YASim: split Wing::compile into smaller functions (2).
2017-05-04 14:12:30 +02:00
Henning Stahlke
4584c83d8b
YASim: split Wing::compile into smaller functions (1).
2017-05-04 14:02:11 +02:00
Henning Stahlke
eb6bb087f6
YASim: include yasim-common.hpp in Wing.cpp and remove constant.
...
Trivial cleanup and variable name clarification.
2017-05-04 13:52:21 +02:00
Henning Stahlke
b0a831e667
YASim: initialize floats with 'f' suffix to avoid problems with windows build
2017-05-03 22:17:08 +02:00
James Turner
2747a33e6b
Merge /u/jsb1685/flightgear/ branch yasim into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/89/
2017-05-02 15:09:13 +00:00
Henning Stahlke
37c43ab6dc
YASim: add initalizer to Wing.hpp, cleanup constructor.
2017-04-29 12:54:56 +02:00
Henning Stahlke
b4743b3830
YASim: add initalizer to Model.hpp, cleanup constructor.
2017-04-29 12:54:56 +02:00
Henning Stahlke
f9334d8c39
YASim Surface move initialization
2017-04-29 12:54:56 +02:00
Henning Stahlke
efde524685
YASIM move constants to a common header file.
2017-04-29 12:54:55 +02:00
Erik Hofman
072bad4f50
sync. with JSBSim and expose Oil_Press_Relief_Valve, Oil_Press_RPM_Max, Design_Oil_Temp, Oil_Viscosity_Index
2017-04-27 15:41:23 +02:00
Henning Stahlke
0a0402f667
YASim Airplane refactoring (code dedup).
2017-04-25 09:19:25 +02:00
Henning Stahlke
e604f2f662
YASim BodyEnvironment rename methods and split setupState into two methods.
2017-04-25 09:19:25 +02:00
Henning Stahlke
add6c6b8a8
YASim: Airplane solver uses standard atmosphere so we can replaced atmosphere members with floats for altitude and pass those to setup atmo where needed directly from altitude.
2017-04-25 09:19:25 +02:00
Henning Stahlke
8064135665
YASim: Moved Airplane::setupState to BodyEnvironment
2017-04-25 09:18:26 +02:00
Henning Stahlke
ed6dee3f55
YASim Airplane: add initalizers.
2017-04-24 18:31:03 +02:00
Henning Stahlke
8bd8d5f163
YASim Model move one-liner to header.
2017-04-24 00:08:36 +02:00
Henning Stahlke
3457c3c61f
YASim: convert Atmosphere to a non-static class so we can pass around air parameters in one object instead of several variables.
2017-04-22 16:14:52 +02:00
Henning Stahlke
5e99f92a0f
YASim: conver Airplane::setupState from static to const
2017-04-22 15:06:02 +02:00
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