James Turner
ed8970a29d
Fix some more uses of libC time()
2016-01-05 23:19:28 -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
James Turner
540d4c2111
Use SGTime instead of time() in traffic/AI code
...
- avoids manual handling of /sim/time/warp in many places
2016-01-05 23:19:28 -06:00
James Turner
ac146f5658
Remove dt member of AIAircraft
2016-01-05 23:19:28 -06:00
James Turner
fadad5d70b
Make TrafficRecord own its AIAircraft.
...
- use the ref-counting system, hopefully avoid a dangling pointer
crash I encountered. (Of course it may turn into a leak)
2016-01-04 13:34:39 -06:00
James Turner
359f924ec9
Package variants working.
2016-01-03 20:58:03 -06:00
James Turner
c400405b0a
Chatter-queue moved out of globals
...
- now lives as part of the sound-manager, yay.
2016-01-03 12:00:15 -06:00
James Turner
fc9c43b48d
Remove FontCache from globals.
...
- access via a singleton instead.
2016-01-03 12:00:15 -06:00
Erik Hofman
0cd38c8be4
Remove scenefx code, it keeps crashing in untracable places and I lost interrest. It was a hughe waste of time
2016-01-03 14:38:18 +01:00
James Turner
52fd6986f8
Pull Sound-manager out of FGGlobals
2015-12-31 15:19:57 -06:00
James Turner
ba56c42eb4
Pull Ephemeris out of FGGlobals
2015-12-31 15:19:51 -06:00
James Turner
9e4e6a6fbf
Avoid view-manager returning default SGGeod
...
- when switching views, force an update() to ensure view position
is valid. Otherwise various subsystems such as AI traffic and the
tile manager see a request for a 0,0 location.
- when switching to model view, we still generate a 0,0
location initially - to be fixed.
2015-12-30 14:48:01 -06:00
Erik Hofman
335fda719d
Prevent two possible nan's
2015-12-29 14:55:22 +01:00
Erik Hofman
d6c5dc647d
Do not call setIsPushback, it causes a segmentation fault after about 10 minutes. I did commit this change in 6b9a28a568
to fix a warning, but it night not have been the wisest thing to do.
2015-12-24 13:44:34 +01:00
Erik Hofman
de023dd7bd
Fix the tile-manager subsystem name
2015-12-24 11:52:09 +01:00
James Turner
7644c74df9
Better Traffic performance data warnings.
2015-12-22 15:15:27 -06:00
Torsten Dreyer
7a69b9beff
don't always open "file opened in new browser window" popup
...
Setting /sim/gui/show-browser-open-hint to false disables the popup.
Default is true (show the popup)
2015-12-22 11:42:27 +01:00
Torsten Dreyer
2b66cf3484
Remove unused code
2015-12-22 11:41:56 +01:00
James Turner
6da9461f92
Fix a typo
2015-12-19 00:32:25 -08:00
James Turner
c69e6fde12
AI subsystem now does an orderly shutdown
...
- remove special case logic which is no longer required
2015-12-19 00:30:31 -08:00
James Turner
83ea6d32d0
Make PerformanceDB a real subsystem
2015-12-19 00:29:00 -08:00
James Turner
e80fc563e5
Fix off-by-one errors in GroundController
...
findSegment() and segments[] array use different indexing, account
for this in the conversion to always use findSegment
2015-12-19 00:08:07 -08:00
James Turner
b7c88e7acc
Stop OSG threading earlier on shutdown.
...
Avoid intermittent race conditions on shutdown when the OSG
pager/Db thread is running. Ensure the OSG threads are stopped before
we start tearing down any scene graph nodes.
2015-12-18 22:00:37 -08:00
James Turner
0e71a9593b
Quiet down Traffic error logging.
2015-12-18 21:59:28 -08:00
James Turner
865bb365ed
Trying to bullet-proof the traffic code.
2015-12-18 21:42:22 -08:00
James Turner
0f590280c7
Aircraft-model subsystem behaves better
...
- make shutdown logic more robust
- shutdown is no longer special cased in globals.
2015-12-18 20:13:23 -08:00
James Turner
89065ea5c2
Proper shutdown() for the model manager
...
- also move property setup to bind/unbind
2015-12-18 19:56:56 -08:00
James Turner
c76d106e64
Runtime checks for GroundContoller crashes.
...
Trying to identify what’s actually going wrong here.
2015-12-17 20:23:45 -08:00
James Turner
b431696e9b
Fixes for first/last legs on a route
...
- fixes total route distance calculation
2015-12-17 19:22:14 -08:00
James Turner
c585f7f7d1
Asserts to pin down a reported crash.
2015-12-16 13:02:06 -08: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
ff33aa038e
Fix a startup issue Vic Mar reported
...
- accept invalid/missing airport IDs when starting ATC
2015-12-14 14:59:33 -06:00
James Turner
9c467af6bf
Interim windows build fix
...
(real fix to follow shortly)
2015-12-14 10:56:42 -06:00
James Turner
e5fa1a5ab1
Merge /u/userid-1550991/flightgear/ branch next into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/31/
2015-12-14 14:57:18 +00:00
Erik Hofman
a5e516fe8c
Replace a program segmentation fault by an annoying message
2015-12-14 11:14:40 +01:00
www2
2da5541901
Add feedback if prompt mode is use
2015-12-13 15:57:53 +01:00
www2
95e3d00a17
Add new commands to telnet protocall
...
New comands:
setb set a Boolean value
setd set a Floaring point value
seti set a integer value
del delete a node
2015-12-12 15:43:00 +01:00
James Turner
7afedb1702
Work on visualisation of Vias
2015-12-11 13:43:25 -06:00
James Turner
846fd21698
GUI support for VIA/Discontinuity
2015-12-11 13:43:25 -06:00
James Turner
caead66ba6
Nasal support for VIA / Discontinuity
2015-12-11 13:43:25 -06:00
James Turner
eaa147e3c2
Work on FlightPlan VIA / discontinuity support.
...
Needed for realistic FMS route support.
2015-12-11 13:43:25 -06: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
James Turner
8877b442f8
ATC/Traffic doesn’t crash reset.
...
- remove some global headers from AI headers, to avoid pollution
- change how ATC owns the ‘player’ FGAIAircraft so reset works
- ensure AIAircraft controllers are cleared on unbind for reset
2015-12-11 12:11:59 -06:00
James Turner
1544641405
Remove view/tile/scenery members from globals
...
- also fix sound manager creation
2015-12-11 12:11:59 -06:00
Erik Hofman
6b9a28a568
Fix warning: variable ‘isPushBackRoute’ set but not used
2015-12-11 11:39:29 +01:00
James Turner
43fcbd2246
Progress towards testing
...
- remove route-manager from global variables
2015-12-10 16:40:22 -06:00
James Turner
76c6665af4
Merge /u/edauvergne/flightgear/ branch lat_lon_precision_fix_v3 into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/23/
2015-12-10 22:39:31 +00:00
James Turner
d891c5928c
Remove /sim/temp/winding-ccw property
...
- part of work on unit-testing, remove OpenGL usage in fg_props
2015-12-10 15:53:05 -06:00
James Turner
545b347a16
Relocate implementation of geocRadialIntersection
2015-12-10 15:53:05 -06:00
James Turner
d7a680e848
Templated subsystem handling
...
- remove explicit FGControls var from globals, as part of work
towards unit-testing infrastructure.
2015-12-10 15:53:05 -06:00
James Turner
6446d67431
Split GroundNetwork class down the middle
...
- ATC functions move to GroundController, which layers above
remaining GroundNetwork functionality
- dynamics owns both the groundNetwork and the ground controller.
2015-12-10 15:53:05 -06:00
James Turner
8b49ed08cc
Merge /u/edauvergne/flightgear/ branch warning_cleanup_UIUC_LaRCsim into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/26/
2015-12-10 20:22:56 +00:00
Erik Hofman
c1729253ee
Read the scenery global scene effects configration file and update them every frame. The SceneFX class is not yet registered though.
2015-12-10 13:24:52 +01: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
Edward d'Auvergne
912215e949
The OSG version is now printed with --version.
...
This adds the OSG version number between the simgear and PLIB versions.
2015-12-05 15:24:47 +01:00
James Turner
2af076e6cb
Add airport dynamics manager
...
- decouple dynamic airport data from the static (nav-db) data.
2015-12-05 00:25:29 +00:00
Edward d'Auvergne
524136d709
Minor rounding error fix for the latitude and longitude strings.
...
This is for the FGProperties::getLongitudeString() and
FGProperties::getLatitudeString() functions. The previous algorithm was to
round the degrees up by the smallest fraction required to prevent a round up to
60 minutes or seconds, and then round down the final minutes or seconds by the
same fraction. The new algorithm is to detect if the final minute or seconds
will be rounded to 60 by the string formatting and, if so, the higher unit
(degrees or minutes) is incremented by one, and the lower unit decremented by
60.
2015-12-02 17:48:02 +01:00
James Turner
fc887b106b
Checkpoint - ground-net skips the cache
2015-12-01 14:01:32 +00:00
Rebecca N. Palmer
d56fbfd415
Revert "Initialise Qt earlier, and whenever available"
...
Temporary workaround for
http://sourceforge.net/p/flightgear/codetickets/1819/
This reverts commit 3e67417bf0
.
2015-11-30 23:10:32 +00:00
James Turner
6954360dfa
Merge /u/r-harrison/flightgear/ branch next into next
...
http://sourceforge.net/p/flightgear/flightgear/merge-requests/21/
2015-11-29 21:51:08 +00:00
Richard Harrison
0368e9a003
Fix indentation and use naIsNil to determine if _globals is nil
2015-11-29 19:15:24 +01:00
James Turner
cec1de6219
Use a transaction when indexing polylines.
2015-11-29 14:18:30 +00:00
James Turner
8bfb1c3aa5
Move functionality into clear_fg_scenerey helper.
2015-11-27 23:25:53 +00:00
James Turner
5e4f212b84
Remove some debugs
2015-11-27 23:25:24 +00:00
James Turner
6ee7e51af3
Clamp diagram zoom.
...
- avoid poor performance and unusable UI when zooming out
2015-11-27 23:25:11 +00:00
James Turner
242e79f5e9
Fix some coastline issues.
2015-11-27 23:02:42 +00:00
James Turner
bfb539f090
Launcher shows polygon/polyline data
2015-11-27 23:02:42 +00:00
James Turner
e52e20b54f
SHPParser
2015-11-27 23:02:42 +00:00
James Turner
6a41353bdc
Remove accidentally duplicated functions.
2015-11-26 23:48:16 +00:00
James Turner
f39fc0f086
Remove a stray debug.
2015-11-26 23:48:16 +00:00
James Turner
a63fff14cc
Graphical picking of parking/helipads too.
2015-11-24 22:14:22 +00:00
James Turner
cfcdd9da45
Add helipad support to the diagram.
...
- stops crashes selecting a heliport.
2015-11-24 21:46:14 +00:00
James Turner
b15e5f559f
Remove long-obsolete fields
2015-11-24 21:46:14 +00:00
James Turner
3cee5eea73
Initial work on rendering parking locations.
2015-11-24 21:46:14 +00:00
Rebecca N. Palmer
cc725c61de
Use SLOT for both uses of QTimer::singleShot
...
(fix Qt < 5.4 build)
2015-11-24 18:40:54 +00:00
James Turner
2d1c5d47ee
Fix MSVC2012 build
...
- multi-line QStringLiteral doesn’t work on MSVC prior to 2013. Boo.
2015-11-24 15:36:53 +00:00
James Turner
9e60dcba61
Use old-style SLOT macro for Qtimer::singleShot
...
- member-function-pointer variant was only added in 5.4
2015-11-24 08:05:17 +00:00
Rebecca N. Palmer
997a431d53
{fatal,modal}MessageBox: Use Qt on Linux when available
...
(console error messages are invisible when started from an icon)
2015-11-24 07:24:32 +00:00
Rebecca N. Palmer
3e67417bf0
Initialise Qt earlier, and whenever available
...
(to allow it to be used for error boxes)
2015-11-24 07:21:52 +00:00
James Turner
be1291f689
Change handling of default hangar / catalog.
...
- no longer re-add it on startup, add an explicit button in the UI
(will add a more obvious item to the aircraft list in a follow-up
commit)
2015-11-23 22:58:00 +00:00
James Turner
4ea093ecc4
Ensure aircraft list stays in sync
...
- when removing a catalog, use the new notification to refresh
the list, so we don’t show stale package data.
2015-11-23 17:59:16 +00:00
James Turner
3ccea681ea
Fix merge noise
2015-11-23 01:19:03 +00:00
James Turner
579881322e
Lat-lon startup location fixes.
2015-11-23 00:48:21 +00:00
James Turner
5184f3404c
Labels on large airports in the diagram
2015-11-23 00:48:21 +00:00
James Turner
e356e691b2
Cap number of airports displayed in diagrams
...
- restrict heliports / seaports by aircraft type
- prioritise by runway length
- clean up airport label names
2015-11-23 00:48:21 +00:00
James Turner
1010caeaf6
Remove some debugs.
2015-11-23 00:48:20 +00:00
James Turner
97a5e15aaf
Show paused message when starting frozen.
2015-11-23 00:48:20 +00:00
James Turner
e63a95feb9
Draw aircraft on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
5fd350cb3d
Fix unproject / navaid drawing.
2015-11-23 00:48:20 +00:00
James Turner
eb06aeba97
Closed airport support.
2015-11-23 00:48:20 +00:00
James Turner
f4500e03f4
Label de-overlapping for diagrams
2015-11-23 00:48:20 +00:00
James Turner
317498fe4a
Move airplane drawing into the base class.
...
- ground work for showing airplane on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
6ec9c36afb
Fix Linux compilation issues.
2015-11-23 00:48:20 +00:00
James Turner
9ab672abd8
Location history re-instaed
2015-11-23 00:48:20 +00:00
James Turner
19a8fc8822
Fixing launcher save/restore of settings.
2015-11-23 00:48:20 +00:00
James Turner
aa58d5c761
Fix for determining towered vs untowered airports.
2015-11-23 00:47:01 +00:00
James Turner
b9acb26c07
Work on launcher diagrams.
2015-11-23 00:47:01 +00:00
James Turner
e5df6e6d4a
Allow distinguishing un-towered airports.
2015-11-23 00:47:01 +00:00
James Turner
5043bf0966
Fixes to launcher aircraft thumbnail sizing
...
- handle large images and longer descriptions correctly
2015-11-23 00:47:01 +00:00
James Turner
ceebd59001
Fallback when aircraft description is missing.
...
- avoids corrupted delegate display caused by asking for
bounds of empty string.
2015-11-23 00:47:01 +00:00
James Turner
a39df48772
Navaid diagram for launcher
...
- work in progress, needs labels
2015-11-23 00:47:01 +00:00
James Turner
2b18479859
Lat-lon position support
2015-11-23 00:47:01 +00:00
James Turner
adedf7af65
Navaid diagram work
2015-11-23 00:47:01 +00:00
James Turner
c277395010
Start-paused for in-air starts
2015-11-23 00:47:01 +00:00
James Turner
addcc432fd
ILS drawing in the airport diagram
2015-11-23 00:47:01 +00:00
James Turner
09cac14089
Work on LocationWidget for Qt launcher
2015-11-23 00:47:01 +00:00
James Turner
56d7d049bc
Launcher GUI for in-air / navaid starts
2015-11-23 00:46:25 +00:00
James Turner
1e213201cf
Work on the launcher
2015-11-23 00:45:21 +00:00
Rebecca N. Palmer
9d0fe40a45
QtLauncher::initApp: store argc to avoid crash
...
As QApplication only stores a reference to argc, it may crash if
the argc passed to it goes out of scope. (One way to trigger this
is to pass an invalid --fg-root, triggering an initApp call from
Options::setupRoot.) Copy argc to prevent this.
2015-11-22 21:05:09 +00:00
Stuart Buchanan
660c38ce72
Fix for SEGFAULT when using multiple loggers.
...
Patch from Julian BREITENEICHER.
2015-11-22 17:11:36 +00:00
Rebecca N. Palmer
3e462f3056
fgValidatePath: allow Nasal to read user-set scenery directories
...
(but not the Terrasync directory, as Nasal can change that)
2015-11-22 11:27:39 +00:00
Rebecca N. Palmer
97f235173e
fgValidatePath: documentation improvements
2015-11-22 11:03:00 +00:00
Rebecca N. Palmer
91dc448875
Simplify fgValidatePath + minor fix (requires simgear update)
...
Drop fgNormalizePath, use realpath() only
As this makes it accept relative paths, always use the returned
(absolute) version for the actual file operation to avoid check-to-use
races, or where this is not possible (NasalSGPath) explicitly reject
relative paths
Fix: do_save is a write, not a read
2015-11-21 21:37:19 +00:00
James Turner
29ef561ed9
Fix some inverted logic
...
- spotted by Thomas Geymayer!
2015-11-20 21:28:19 +00:00
Thomas Geymayer
fdf4a61ed5
fgcommand remove-subsystem: fix double delete/segfault.
2015-11-19 23:17:58 +01:00
James Turner
f110fc57d6
Fix enable/disable-freeze option.
...
- set /sim/freeze/clock as well as /sim/freeze/master
Fix by Hamza Alloush
2015-11-13 22:13:44 +00:00
James Turner
bf6ef6664c
Fix for OSG 3.5
2015-11-13 22:13:44 +00:00
James Turner
ca1f8cddc9
Fix a package crash on startup.
2015-11-13 22:13:44 +00: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
26f1d12ad7
Rename EnvironmentFX to SceneFX and rethink the aircraft model specific properties: use a samping factor which applies to both volume and reference_distance and max_distance
2015-11-05 15:31:52 +01:00
Erik Hofman
8363ee8784
Add Nasal bindings
2015-11-04 14:37:41 +01:00
Erik Hofman
0f113060e9
First implementation of an environment audio fx module
2015-11-03 14:51:01 +01:00
Torsten Dreyer
62d0d2ab06
event input system: be a little more helpful on errors
2015-11-02 11:42:30 +01:00
Erik Hofman
a0e31b5565
Sync. with JSBSim again
2015-10-30 10:10:01 +01:00
Torsten Dreyer
e324c89171
newnavradio: expose localizer crosstrack error
2015-10-08 10:18:14 +02:00
Florent Rougon
7198dec355
Use SGPath::realpath() on the value supplied for --aircraft-dir
...
* Before setting /sim/aircraft-dir from the --aircraft-dir option,
canonicalize its value with SGPath::realpath() as is already done in
FGGlobals::append_aircraft_path() for the paths given with --fg-aircraft
or via the FG_AIRCRAFT environment variable.
* This fixes a bug when --aircraft-dir is used, due to the fact that
fgValidatePath() canonicalizes its 'path' argument before matching it
against the allowed patterns, and therefore will not validate paths
under the directory specified with --aircraft-dir if this directory has
been given in a non-canonical form by the user (e.g., containing at
least one symlink component).
* This fix does not lower security: the path which is canonicalized has
been explicitely given by the user. This operation is already done for
all paths specified with --fg-aircraft or via the FG_AIRCRAFT
environment variable, via Options::initPaths() which calls
FGGlobals::append_aircraft_paths().
* To reproduce the bug, create a symlink (e.g., /tmp/aircrafts) to a
directory suitable for --fg-aircraft, then run:
fgfs ... --fg-aircraft=/tmp/aircrafts \
--aircraft-dir=/tmp/aircrafts/SenecaII --aircraft=SenecaII
This will trigger many failures such as:
loadxml: reading '/tmp/aircrafts/SenecaII/Dialogs/registration.xml'
denied (unauthorized directory - authorization no longer follows
symlinks; to authorize reading additional directories, add them to
--fg-aircraft)
(from do_load_xml_to_proptree() in flightgear/src/Main/fg_commands.cxx)
I have also tested this with the ec130b4 and the 777-200ER. Same
problem, same fix.
2015-10-06 21:54:50 +02:00
James Turner
b49dd70de9
Remove some debug noise
2015-09-27 23:13:18 -05:00
James Turner
5f0e347c60
Keep in sync with SimGear Package API
2015-09-27 19:44:39 -05:00
James Turner
43bcc85919
Correct handling of updating packages
2015-09-27 19:44:29 -05:00
James Turner
1e2460d9bf
Disable mouse hover code for now.
2015-09-27 19:43:50 -05:00
Florent Rougon
1d34b96d49
Don't load resources for the current aircraft from several aircraft dirs
...
* If one has the same aircraft in several aircraft directories,
FlightGear should not mix resources from the various aircraft
directories. For instance, if one starts FG with:
--fg-aircraft=/my/personal/dir:/path/to/fgaddon/Aircraft
and one has in /my/personal/dir/ec130 a clone of the upstream
developer repo, FlightGear should use either the upstream version from
/my/personal/dir/ec130 or the FGAddon version from
/path/to/fgaddon/Aircraft/ec130, but not some strange, untested hybrid
of both.
* This commit makes sure that when the looked-up resource starts with
Aircraft/<ac>, where <ac> is the current aircraft name [last component
of aircraftDir = fgGetString("/sim/aircraft-dir")], then
AircraftResourceProvider::resolve() doesn't search other aircraft
directories if the resource isn't found under 'aircraftDir'.
* To reproduce the bug before this commit, you may add the following
code (there is nothing specific about the SenecaII here, it's just the
aircraft I used for testing):
var file_path = resolvepath("Aircraft/SenecaII/flo-test");
if (file_path != "")
gui.popupTip("flo-test found", 2);
else
gui.popupTip("flo-test not found", 2);
in a keyboard binding for the SenecaII (for instance; you may use the
F11 binding that otherwise only prints a short message). You should
add this to the SenecaII/SenecaII-base.xml file *that will be loaded
by FlightGear*, let's say the one under /my/personal/dir in the
example above (beware of the <path-cache> in autosave_X_Y.xml). Then,
by creating or removing a file named "flo-test" in the SenecaII
subdirectory of other aircraft dirs (for instance,
/path/to/fgaddon/Aircraft in the example above), you can see that the
behavior of the loaded aircraft is influenced by the contents of
unrelated versions of the same aircraft that might be present in other
aircraft dirs (e.g., loaded /my/personal/dir/SenecaII influenced by
/path/to/fgaddon/Aircraft/SenecaII).
* Aircrafts loading resources using paths relative to the current
aircraft directory (e.g., with 'resolvepath("flo-test")') are not
affected by this kind of problem, because this scheme is handled by
CurrentAircraftDirProvider, which does not exhibit this bug.
2015-09-26 09:45:33 +02:00
Rebecca N. Palmer
a64cf82296
Use +=, not (5.5+ only) append, for concatenating QVectors
2015-09-21 22:12:24 +01:00
James Turner
18a898f5f9
Lots of work on aircraft package support
2015-09-20 19:46:35 -05:00
James Turner
c2cbb36d16
Work around a strange link failure on Mac
...
- Xcode 7 seems to dislike this code as was, adjusted version
links fine. Very odd.
2015-09-20 19:45:03 -05:00
Rebecca N. Palmer
79f1da6bef
Nasal: use SG_LOG for security error messages to avoid truncation
...
These are often too long for naRuntimeError's 128-char limit:
http://sourceforge.net/p/flightgear/mailman/flightgear-devel/thread/55B55856.2030709%40worldwideweb2.nl/#msg34319969
2015-08-14 21:37:28 +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
James Turner
67352a1a52
Fix SIGSEGV with Qt launcher on Linux.
...
- patch from Dirk Dittmann
2015-08-02 18:33:05 -05:00
Rebecca N. Palmer
e296ea5fe0
Nasal security: document that symlinks are no longer followed
2015-07-25 10:15:31 +01:00
Rebecca N. Palmer
e2cbacff90
fgValidatePath: remove overly fragile test case
...
Fix failure to start with non-standard TerraSync directory
2015-07-14 19:43:51 +01: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
Rebecca N. Palmer
6957a17434
fgValidatePath: fix \ vs / Windows bug
2015-07-14 08:00:22 +01:00
Rebecca N. Palmer
5b2ae615e5
avoid ERROR: The path '' does not exist... on startup
...
While harmless, it's an annoying distraction
2015-07-13 23:15:36 +01:00
Rebecca N. Palmer
e090a9da3f
fgInitAllowedPaths: remove possibly invalid test paths
2015-07-13 22:53:23 +01:00
Torsten Dreyer
092707e78b
Fix #1778 : incorrect HUD values
...
negative latitude/longitude coordinates resulted in negative WEST/
SOUTH coordinates for the default format 0 (zero).
This should be now fixed so that
+12.3 gets formatted as 12.3N/E
-12.3 gets formatted as 12.3S/W
2015-07-13 16:23:56 +02:00
Rebecca N. Palmer
823d57bd53
Security: don't follow symlinks to forbidden directories
...
https://bugs.debian.org/780867
This messy approach is to minimise changes during freeze; for 3.7,
I plan to make realpath() handle non-existent files as "realpath
they would have if created now" and get rid of fgNormalizePath
2015-07-12 17:57:49 +01:00
Rebecca N. Palmer
1199d6d626
Security: don't pass a string to fgValidatePath then use the original
...
This is insecure because it always (not just on Windows) converts
\ to / before .. checking. Either use the path it returns (as in
f_open()) or use an SGPath (where this conversion is already done)
Only a minor problem because the affected functions are limited to
the .sav file type
2015-07-12 17:49:21 +01:00
Torsten Dreyer
14b97abd8f
Fix #1771 , wrong groundspeed indication for UFO
2015-07-10 11:07:34 +02:00
Torsten Dreyer
36113bf69d
Cleanup: remove unused code and includes
...
no functional change
jpg-httpd functionality was moved into httpd with 3.4
cmd-line option still spits out a warning
2015-07-08 17:24:13 +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
Erik Hofman
2496bdecfa
Tie the sun vector to the property tree
2015-06-26 09:53:03 +02:00
janodesbois
0d9091bab6
stop sending velocity and acceleration in the motion information when crashed
...
and using speed up time to allow a fine displayed predicted position
when time accelerated (no more jumping planes accelerated using the mp patch)
tell me if it's not the good pace to do such things ;)
2015-06-13 11:02:30 +02:00
Torsten Dreyer
cd0f0b9856
Fix some warnings
2015-06-12 11:51:11 +02:00
Torsten Dreyer
f780480088
Fix random crash on exit in atc_mgr
...
make the ParkingAssignment a local object instead of
creating it on the heap as a member of the ATCManager
2015-06-10 12:04:47 +02:00
Torsten Dreyer
4b564b2555
Fix MSVC compile error
2015-06-08 13:19:51 +02:00
James Turner
0f90a2e9f3
FLIGHTGEAR_VERSION is always set.
2015-06-08 10:37:26 +01:00
James Turner
4289ac77dd
Remove some debug output.
2015-06-08 10:37:26 +01:00
James Turner
bbff8dcbb6
Remove / reduce level on some debug output
2015-06-08 10:37:26 +01:00
James Turner
6e3a935abb
Fix a Cocoa warning.
2015-06-08 10:37:26 +01:00
janodesbois
759aa51213
Basic MP patch, to allow lag compensation and get rid of rubber band effect.
...
the fgdata part is needed to make it working. configuration for each plane
beeing done with nasal
2015-06-06 06:41:03 +02:00
James Turner
f88b4aefe9
Disable testing hacks for package installs.
2015-06-05 14:27:23 +02:00
James Turner
9f5a4609d6
Launcher: airport diagram runways can be clicked
...
- indicate selected runway visually
2015-06-05 14:27:23 +02:00
Erik Hofman
752b8d0acc
Add the option to (properly) revert the propellers moment of inertia calculation
2015-06-03 13:55:00 +02:00
Torsten Dreyer
99ea9c9583
AIBallistic.cxx: warning fix (initialization order)
2015-06-01 20:53:19 +02:00
onox
e3c8ecc25a
Choose a random splash texture
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-06-01 00:51:24 +02:00
onox
7aaa0772df
submodel: Fix -Wreorder warnings
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
onox
56a014cdc7
submodel: Only warn if an <*-offset> is actually present
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
onox
8024a0a4ca
submodel: Rename yaw and pitch to heading-deg and pitch-deg
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-29 14:28:04 +02:00
Torsten Dreyer
1ad81ee94e
Silence some warnings
...
AIBallistic: wrong order of member initialization
Other: unused variables
2015-05-29 10:27:25 +02:00
Torsten Dreyer
98c0a61db3
Add 8.33 kHz support to the commradio
...
Usage:
Add
<comm-radio>
<name>comm</name>
<number>0</number>
<eight-point-three type="bool">true</eight-point-three>
</comm-radio>
to the instrumentation.xml
If eight-point-three is disabled nor not present, previous functionality is unchanged
If eight-point-three is enabled,
set
/instrumentation/comm[x]/frequencies/[selected|standby]-mhz
to the desired 8.33 channel (118.000..136.990) or
/instrumentation/comm[x]/frequencies/[selected|standby]-channel
to the desired channel-number (0..3039).
Valid channels are:
xxx.000
xxx.005
xxx.010
xxx.015
xxx.025
xxx.030
xxx.035
xxx.040
xxx.050
xxx.055
xxx.060
xxx.065
xxx.075
xxx.080
xxx.085
xxx.090
where 118.0 <= xxx <= 136.990
2015-05-28 12:04:23 +02:00
onox
69b055db0a
Revert to old behavior of life randomness
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
46f60b73b3
submodel: Move <yaw-offset> and <pitch-offset> to <offsets>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
79ea238e1d
submodel: Support <offsets> with <x-m>, <y-m>, and <z-m>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
d4b4e07c4d
submodel: Use quaternions instead of trigonometry
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
68a53a7546
submodel: Fix incorrect yaw and pitch offsets
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
0ece93074f
submodel: Add random error for azimuth and elevation
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
1b6326e057
submodel: Fix randomness of Cd and life
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
e049a9ab03
submodel: Remove FGSubmodelMgr::setSubData()
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
Torsten Dreyer
9c63b77133
Remove debug console output in FGApproachController
...
Console was filled with
FGApproachController::render function not yet implemented
2015-05-27 10:19:18 +02:00
Torsten Dreyer
ff66139cf7
fix previous incomplete patch
...
add missing continue statement
2015-05-22 18:39:37 +02:00
Torsten Dreyer
26b74c91da
Only warn about unknown tags in instrumentation.xml
...
Richard J. Senior:
Without this commit, unknown top-level tags in instrumentation.xml are treated
as errors and the rest of the file is not processed.
Users running Flightgear versions prior to 3.2 have experienced problems with
the comm-radio tags after downloading updated versions of aircraft from FGADDON.
Instrumentation listed after the unrecognized comm-radio tags is not processed
for these users and is inactive in the cockpit.
This commit changes the instrumentation build method so that unrecognized tags
are treated as warnings. This won't help users running older versions but
protects against the same problems occurring if new tags are added to
instrumentation in the future.
2015-05-22 17:40:17 +02:00
Torsten Dreyer
076f61f2b7
Merge commit 'c8115f516c47fd389b34f59055d3c2e9a6b697e2' into next
2015-05-19 11:56:01 +02:00
Torsten Dreyer
46c4b134c6
Merge commit '6c1934fcdf7dc91897e9d4dc8b8b6810b1de6a51' into next
2015-05-19 11:52:49 +02:00
onox
9f452408c7
Small refactoring of Torsten's refactoring
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:35:00 +02:00
Torsten Dreyer
90622b6873
Small refactoring of the submodel patch from onox
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:56 +02:00
onox
0e28621051
Use InputValue for yaw-offset and pitch-offset
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:52 +02:00
onox
3037cd8149
Use actual position of view for sound manager
...
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 11:52:19 +02:00
Durk Talsma
e76a6df909
Temporary fix: ground networks are not loaded when a navcache is present. But, the AI/ATC code relies on radio frequencies listed in the groundnet files. Since these are not imported into the nav cache, they remain 0.
...
By forcing the loading of the ground networks, I have the frequencies back. We should find a proper solution later.
2015-05-15 21:42:10 +02:00
Durk Talsma
cbdb8a884f
A second init() is necessary to start the ATCController. There's probably a better way to do is, but for now let's just stick to how I had it set up in early 2012.
2015-05-15 18:25:16 +02:00
Durk Talsma
8e2d0d2a76
Reinstate the backbone of the "I" part of the Interactive traffic system.
2015-05-15 13:30:16 +02:00
Durk Talsma
dbde1f2232
Some preparatory work for reinstating a missing piece of code in the routing algorithm for the AI system.
2015-05-14 18:22:42 +02:00
Durk Talsma
1dc7d4cf11
Reformatting.
2015-05-14 18:20:25 +02:00
Durk Talsma
98682c0c68
Fix bug when starting using the --parkpos option. Create a pointer to a ParkingAssignment object, so that the reference counter doesn't get reset to 0 when the local class is destroyed.
2015-05-14 18:15:30 +02:00
Durk Talsma
8ffbca1b58
Workaround for problem with SGPath: create_dir() does not create the last subdirectory when passed a dir-path only.
2015-05-14 17:41:58 +02:00
Edward d'Auvergne
6c1934fcdf
Singularity avoidance fix for the flightgear Viewer.
...
This was reported at https://sourceforge.net/p/flightgear/codetickets/1740/ and
discussed at http://thread.gmane.org/gmane.games.flightgear.devel/77562 .
The flightgear Viewer no longer causes aircraft to disappear due to the
singularity at the poles resulting in an undefined azimuthal angle.
2015-05-03 20:04:33 +02:00
Thomas Albrecht
c8115f516c
renamed to DampedOscillation
2015-05-02 14:26:05 +10:00
Torsten Dreyer
92e6e25d33
Fix "Error in ground network. Failed to find first waypoint"
...
Fix provided by Jens Thoms Toerring, OK'ed from Durk
http://thread.gmane.org/gmane.games.flightgear.devel/77674
2015-04-21 13:05:41 +02:00
James Turner
1933b71729
Explicit NSPathUtilities include.
2015-04-20 10:42:22 +01:00
James Turner
f4b07f899a
Explicit NSBundle include
...
- should fix Jenkins build, hopefully.
2015-04-20 10:35:24 +01:00
Torsten Dreyer
0758cfbd65
Conditionally enable hot for multiplayer models
...
originally from denk padje alias onox
2015-04-16 20:58:56 +02:00
Torsten Dreyer
93f03f5f2e
property browser: group radio-button elements
...
This allows to better render bool properties
2015-04-15 10:41:31 +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
James Turner
70c4972f48
Fix a clang warning.
2015-04-11 21:59:37 +01:00
James Turner
c07ce6d9bc
Explicit AppKit includes for Mac.
2015-04-11 21:59:29 +01:00
James Turner
c8c2da9448
Fix a clang warning.
2015-04-11 21:59:01 +01:00
Richard Harrison
796acb9092
Always log message if going to segfault during notify logging.
2015-04-10 23:51:32 +02:00
Richard Harrison
9ba892962c
Closedown crash prevention
2015-04-10 23:51:32 +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
James Turner
4f15e1a840
New PathsDialog, for managing locations.
2015-04-10 15:11:14 +01:00
James Turner
aa20e0acd8
Work on new download-dir option
...
- simplify management of a single, user-facing
location for large downloaded data.
2015-04-10 15:01:54 +01:00
James Turner
41ca6bd1de
GUI exclude support.
...
- visual refinements in the delegate.
2015-04-10 14:44:44 +01:00
James Turner
d170de1909
Hacking on the delegate height.
2015-04-10 14:44:44 +01:00
James Turner
9ebdce3995
AircraftModel hacking for package support.
2015-04-10 14:44:44 +01:00
James Turner
217db33b99
Working on adding catalogs from the GUI
2015-04-10 14:44:44 +01:00
James Turner
d9a53e1140
Basics on catalog list model in the GUI.
2015-04-10 14:44:44 +01:00
Rebecca N. Palmer
9745a6fce3
remove obsolete comments
...
see 1cd070de8c
2015-04-09 19:05:22 +01:00
James Turner
73de4aeb86
Fix —show-aircraft with multiple aircraft dirs
...
Patch from Jens Thoms Toerring
2015-04-09 15:31:09 +01:00
Torsten Dreyer
7b62f6ce2f
Catch exception by reference, not by value
2015-04-07 12:11:15 +02:00
Torsten Dreyer
f8591433b1
DigitalFilter: remove debug output
2015-04-07 12:08:01 +02:00
Torsten Dreyer
1cd070de8c
Better fix for NoaaMetarGetRequest::onDone
...
Keep a reference to the LiveMetarProperties while the HTTP request is active
Also, drop the MetarDataHandler which was unneeded overhead
2015-04-07 11:59:07 +02:00
Thomas Albrecht
e113586090
add DampedOsciFilter
2015-04-07 10:23:41 +02:00
Rebecca N. Palmer
659c5b9676
Fix spelling
2015-04-06 10:28:10 +01:00
Rebecca N. Palmer
235693c1c4
Don't free METAR objects, it makes NoaaMetarGetRequest::onDone crash
2015-04-04 14:32:58 +01:00
Rebecca N. Palmer
14405fe2e3
Fix compile with CMake 3.2.1, by Kevin Seroux
...
Explicitly link X11, as this no longer comes with OpenGL
2015-04-03 19:15:52 +01: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
Rebecca N. Palmer
ca362e9251
QtLauncher: fix adding aircraft paths
...
Avoids Nasal security errors when using "Additional aircraft locations"
2015-04-03 14:13:13 +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
Torsten Dreyer
a56694f962
Make command "request-metar" also work
...
same problem as previous commit :-/
2015-03-30 17:11:47 +02:00
Torsten Dreyer
8baf72aabd
Make command "clear-metar" work
...
Didn't work if the client used a non-expanded property path
(like the airport dialog)
2015-03-30 16:13:01 +02:00
Torsten Dreyer
8f9df6940f
httpd: extend the NavDbUriHandler
...
- add more details for airports
- add "q=airports" query to get the airport list
- add "q=airport&id=abcd" query to get airport details
2015-03-28 00:34:28 +01:00
Torsten Dreyer
32f4fdfaf7
Add simple getter for all runways to FGAirport
2015-03-28 00:33:26 +01: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
Torsten Dreyer
55ed10953f
Fix StateMachine autopilot component
2015-03-22 16:09:42 +01:00
Rebecca N. Palmer
6cc98cb995
Improve error messages for system.fgfsrc removal
...
The original message (b5835c38b4
)
was meaningless on Windows
2015-03-20 18:56:13 +00:00
Rebecca N. Palmer
51bfdc21e0
Nasal: remove /tmp/*.xml from allowed paths list
...
Appears unused, and shouldn't be used on Windows
2015-03-20 18:20:11 +00:00
James Turner
e0274af493
Percentage feedback during nav-cache build.
...
- also used by the GUI launcher for the same.
2015-03-19 12:01:38 -05:00
James Turner
2ebf21221d
Fix a clang unused constant warning
2015-03-18 20:34:15 +01:00
James Turner
61eae124d4
Enable anti-aliasing in the airport diagram
2015-03-18 20:34:10 +01:00
James Turner
cee943076c
Fix clang warning: unused constant.
2015-03-18 20:34:05 +01:00
Torsten Dreyer
3ee36a7143
PropertyChangeWebsocket: sanitize property names
2015-03-17 09:27:03 +01:00
Torsten Dreyer
c26fb00049
etxtend "pause" command to force pause/continue
2015-03-14 22:33:06 +01:00
Rebecca N. Palmer
196c667266
Normalize the allowed paths as well (fix Windows breakage)
2015-03-13 22:40:35 +00:00
Torsten Dreyer
817297699f
warning fix: use correct type for std::string::find reply
2015-03-13 22:57:03 +01:00
bcoconni
32a8c712b0
The QUrl header is needed for compilation on Linux
2015-03-13 22:03:22 +01:00
Rebecca N. Palmer
b5835c38b4
Disable system.fgfsrc
...
Together with the preceding few commits, this is intended
to make security independent of the data package
2015-03-13 18:14:51 +00:00
Rebecca N. Palmer
16784d590a
Document that property write-protection is not a security measure
...
(Nasal can remove it)
2015-03-13 18:11:29 +00:00
Rebecca N. Palmer
a4aff2cb82
remove checkIORules(), replaced by check in fgInitAllowedPaths()
2015-03-13 18:10:31 +00:00
Rebecca N. Palmer
9002696195
Make fgValidatePath always return std::string, not char *
2015-03-13 18:07:24 +00:00
Rebecca N. Palmer
d718d5f3cb
Move Nasal io.open to flightgear, and make it use fgValidatePath
2015-03-13 18:02:46 +00:00
Rebecca N. Palmer
6a30e7086e
Stop using property listener for fgValidatePath
...
This was insecure: while removelistener() won't remove it, there are
other ways to remove a listener from Nasal
2015-03-13 17:54:44 +00:00
James Turner
a6937e25ad
Make a new launcher tab for add-ons
...
- avoids the settings page being overloaded with list boxes.
2015-03-12 10:36:41 +00:00
Torsten Dreyer
b21bb90ae5
Split multiplayer command
...
better split into
multiplayer-connect
multiplayer-disconnect
miltiplayer-refreshserverlist
2015-03-12 09:18:41 +01:00
James Turner
1e1326d8f3
Aircraft path support in the Qt launcher
...
- aircraft dirs are re-scanned when the paths change.
2015-03-11 23:20:29 +00:00
Torsten Dreyer
f5f82c461f
RunUriHandler: add some INFO logging for the requests
2015-03-11 22:28:23 +01:00
Torsten Dreyer
956054afe7
Add command multiplayer to control the multiplay_mgr
...
push the logic to connect/disconnect/refresh out of the UI
into the backend.
2015-03-11 22:25:50 +01:00
Torsten Dreyer
4289c0aacd
MetarProperties: don't double-trigger listeners on invalidate
2015-03-11 22:24:07 +01:00
Torsten Dreyer
f7d476c856
extract RemoteXMLRequest to make it reusable
2015-03-11 18:50:11 +01:00
James Turner
11c2623dec
Start wiring package manager into the launcher.
2015-03-11 17:09:59 +00:00
James Turner
68efa84b3a
Remove obsolete #ifdef check
2015-03-11 17:09:59 +00:00
James Turner
92864265af
Refactor aircraft helper classes
...
- move the aircraft list and delegate to their own files
2015-03-11 17:09:59 +00:00
Torsten Dreyer
f32f1fba59
Fix recently introduced bug in json-to-prop conversion
2015-03-11 16:59:58 +01:00
Torsten Dreyer
fced50f480
JSON Properties: encode NaN as null
...
JSON doesn't know about NaN, probably null matches best
2015-03-09 16:17:20 +01:00
Torsten Dreyer
8b141025cd
httpd: expose if airport has metar in navdb uri handler
2015-03-09 14:53:40 +01:00
Torsten Dreyer
4564dbd95e
Live weather: ensure valid flag is set correctly
2015-03-09 12:24:36 +01:00
James Turner
585235ce01
One more log item for the tile-cache.
2015-03-08 09:41:27 +00:00
James Turner
2e452e78f3
Fix non-Qt build.
2015-03-08 09:40:44 +00:00
James Turner
c3543f8fdd
GUI ‘restore defaults’ support.
...
- Hold ‘alt’ on launch to restore defaults, including launcher prefs.
2015-03-08 00:42:39 +00:00
James Turner
f9c23eb096
Add missing GPL boilerplate.
2015-03-08 00:42:39 +00:00
James Turner
bfeb41858d
Cmake always generates version.h
...
- simplify some code as a result
2015-03-08 00:42:39 +00:00
James Turner
a466dbce73
Very crude work on GUI base package selection.
...
- feedback on wording greatly appreciated.
- needed to make nightly builds usable without bundled data.
2015-03-08 00:42:05 +00:00
James Turner
8d9db2824e
Launch aircraft data cache
...
- makes successive aircraft scans much faster since -set.xml parsing
can be skipped when the file is unmodified.
2015-03-08 00:42:05 +00:00
James Turner
4038ba3d51
Arrow icons for variant selection.
2015-03-05 15:53:40 +00:00
James Turner
7ca9fba4a8
Fix some off-by-one errors in variants GUI
2015-03-05 14:51:33 +00:00
James Turner
13d50853df
Launcher support for aircraft variants.
...
- Allows for a less confusing UX when aircraft has several variants.
- Requires changes to aircraft -set.xml files.
2015-03-05 14:01:53 +00:00
Torsten Dreyer
0f72564140
Use the pagedPathForHistory in the FlightHistoryUriHandler
2015-03-03 17:10:16 +01:00
Torsten Dreyer
265c99a149
FlightHistory: add pagedPathForHistory
...
pathForHistory() halts the sim for a few seconds when called on long flights.
pagePathForHistory allows to retrieve the complete history in chunks
2015-03-03 17:08:20 +01:00
Torsten Dreyer
2e5db3ce85
httpd: fix misplaced warning message
2015-03-02 20:39:23 +01:00
Torsten Dreyer
0fcfbe9221
wrap the json flight history as a feature
...
this allows to attach properties later
2015-02-27 15:54:28 +01:00
James Turner
548b899fb6
Fix a couple more Qt version issues.
...
- only set the clearButton on QLineEdit if we have 5.2
- use itemData/currentIndex to avoid currentData()
2015-02-27 11:58:22 +00:00
Torsten Dreyer
146efcafa4
JsonUriHandler: allow POST updates without child
...
updates to properties used to be
POST /json/some/property/path
{
name: 'somechild',
value: 'somevalue'
}
which required some ugly path hacking when directly updating a node.
now, this works too (and in a probably more intuitive way)
POST /json/some/property/path/somechild
{
value: 'somevalue'
}
2015-02-27 11:07:25 +01:00
Torsten Dreyer
4b5dec2cae
HTML Property Browser: use radiobuttons for bools
2015-02-26 18:14:09 +01:00
James Turner
2d8cf78328
Fix Linux compilation.
...
- <memory> needed for auto_ptr
2015-02-25 23:53:49 +00:00
James Turner
a3d3e81a86
Set placeholderText from code
...
Avoids a hard requirement of Qt 5.3; only 5.1 is
needed.
2015-02-25 23:14:02 +00:00
James Turner
e1def22193
Fix cleanup of RouteDataPrivate
2015-02-25 22:58:56 +00:00
Torsten Dreyer
0034d6b59a
flighthistory service: use GeoJSON instead of own invention
...
Track now comes as a LineString object
{
"type":"LineString",
"coordinates": [ [lon,lat,alt], [lon,lat,alt], ... ]
}
ref: http://geojson.org/geojson-spec.html#linestring
2015-02-25 10:38:22 +01:00
James Turner
1898a5fef8
Guard against a crash Torsten encountered once.
2015-02-23 18:22:52 +00:00