Florent Rougon
33c54e5d76
Fix crash in PT_vs_hpt() due to invalid data in ISA_def
...
In commit 15525aab58
, a layer with
lapse=0.0 was added to ISA_def (atmosphere model). However, the last
layer *must* have lapse == -1.0, otherwise the code in PT_vs_hpt()
doesn't know when it's on the last element of ISA_def, and does an
illegal memory access with (pp+1)->height. This is why -1.0 is the
default value for lapse ('l') in the ISA_layer constructor.
Fix: add the -1.0 terminator to the last element of ISA_def.
2017-05-10 16:54:55 +02:00
Florent Rougon
9a64150d57
Fix crash in src/ATC/trafficcontrol.cxx (invalid iterator dereferenced)
...
When the test:
if (i == activeTraffic.end() || (activeTraffic.empty()))
was true, the iterator named 'current' was uninitialized and later
dereferenced.
Fix:
- when the previously-mentioned test is true, return;
- initialize 'current' only when it is really needed (i.e., later and
after the test), and since we don't need it for iterating, make it
an FGTrafficRecord&.
2017-05-10 16:54:55 +02:00
Henning Stahlke
43e19c1123
YASim: revert a change in Model.cpp that caused segfaults on some systems.
2017-05-10 16:27:46 +02:00
Alessandro Menti
c00f98b0d1
QT Launcher spelling/style fixes
...
Fix a couple of spelling mistakes, as well as some terms which are
styled differently in the main FG interface.
2017-05-08 21:29:42 +02:00
Henning Stahlke
222361bf66
YASim bufix segfault with helicopters.
2017-05-05 13:47:47 +02:00
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
Florent Rougon
2ad164e80f
Improve handling of the pushBackRoute attribute in groundnet's Parking nodes
...
- Don't ignore pushbackRoute="0".
- Stricter parsing with precise log messages when the input is
incorrect.
- Add missing includes in src/Airports/dynamicloader.cxx.
See <https://sourceforge.net/p/flightgear/mailman/message/35788373/ > for
the discussion about this change.
2017-05-04 10:30:51 +02:00
Florent Rougon
df2a98d245
Fix warnings about unreferenced local variables
...
Warnings seen on Jenkins with Visual Studio.
2017-05-04 09:41:29 +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
James Turner
9e7924a4b1
Silence a warning.
2017-05-02 12:45:32 +01:00
James Turner
2dbe88936e
Don't warn about missing CrashRpt when developing
2017-04-29 20:58:05 +01: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
James Turner
cbdbe2882b
Fix disabled appearance of toolbox buttons.
...
Ensures ‘fly’ button appears disabled as appropriate in the
launcher.
2017-04-19 13:31:45 +01:00
James Turner
a05860608b
Fix erroneous button highlighting.
2017-04-19 13:12:48 +01: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
James Turner
503907be34
Merge /u/jsb1685/flightgear/ branch yasim into next
...
https://sourceforge.net/p/flightgear/flightgear/merge-requests/87/
2017-04-18 09:05:57 +00: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
James Turner
b006ef5c78
Launcher: fix navaid map default scaling.
2017-04-15 14:18:02 +01:00
James Turner
f2d5f18da6
Title label for location airport/nav pages.
2017-04-15 14:18:02 +01:00
Florent Rougon
4259b548b0
Fix bugs due to incorrect use of SGPath::pathListSep
...
Before SimGear commit a962c90b30f36575d01162b64471fa77473237a0,
SGPath::pathListSep was a char in static memory that was not necessarily
followed by '\0'. As a consequence, using &SGPath::pathListSep as a
C-style string could result in a string containing the correct separator
*plus* whatever followed in memory until the first null byte...
SimGear commit a962c90b30 changes this situation by making
SGPath::pathListSep an array of two const chars: the path list separator
followed by a '\0'.
This commit simply adapts FlightGear to this change, which fixes a
couple of bugs where the separator was used, mainly unneeded NavCache
rebuilds due to the "apt.dat", "fix.dat" and "nav.dat" properties in the
SQLite database containing the correct paths separated by a possibly
incorrect separator string (there was no alteration of the cache
contents as far as I can tell, since the db property is only used to
check if the lists of apt.dat, fix.dat and nav.dat files have changed).
2017-04-15 09:53:16 +02:00
James Turner
5fa9242d7a
Launcher: fix handling of prop custom args.
...
The parser wasn’t special case these, and they have to be handled
differently to work now.
2017-04-15 08:39:18 +01:00
James Turner
ec9989c244
FIx build issue with previous commit.
2017-04-14 22:16:22 +01:00
Richard Harrison
feca0a73ba
Multiplay: Fix transponder property definitions
2017-04-14 19:46:12 +02:00
James Turner
95a6d31e18
Launcher: update all aircraft UI.
...
Replaces more complex previous attempt, which was also not hooked
up properly, ooops.
2017-04-14 18:31:23 +01:00
James Turner
c19fc6bc06
Launcher: add ‘show console’ setting on Windows
...
This entailed fixing the handling of the visibility property with an
override from the QWidget basic version.
2017-04-14 17:36:28 +01:00