James Turner [Thu, 9 Jun 2016 09:33:30 +0000 (10:33 +0100)]
Tweaks for VS 15 / boost detection
James Turner [Wed, 8 Jun 2016 11:00:35 +0000 (12:00 +0100)]
Hide add-ons tab when running launcher in-app
Torsten Dreyer [Mon, 6 Jun 2016 10:17:12 +0000 (12:17 +0200)]
Fix the root cause for terrasync.py timeouts
Thanks to Andre Coetzee for spotting.
Also, don't hardcode port 80, intead use the port given in the url
James Turner [Wed, 1 Jun 2016 21:58:03 +0000 (22:58 +0100)]
VS2015 compatability fixes.
James Turner [Wed, 1 Jun 2016 21:57:11 +0000 (22:57 +0100)]
VS2015 fixes
Explicitly specialize these templates.
Erik Hofman [Sat, 28 May 2016 08:05:09 +0000 (10:05 +0200)]
Revert some debugging code which krept in
Erik Hofman [Sat, 28 May 2016 07:57:03 +0000 (09:57 +0200)]
Fix the header name change from sample_openal.hxx to sample.hxx
Bertrand Coconnier [Fri, 27 May 2016 11:50:35 +0000 (13:50 +0200)]
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.
James Turner [Wed, 25 May 2016 20:48:06 +0000 (21:48 +0100)]
Fallback URL when official catalog is not found.
Tolerate the case where a URL matching the exact FG version is
not found; lookup a generic URL, in the hope it supports our
version (additional changes will make this more likely)
Torsten Dreyer [Wed, 25 May 2016 14:19:36 +0000 (16:19 +0200)]
First attempt to handle the nasty socket timeout
Retry once if a http get fails
Erik Hofman [Wed, 25 May 2016 08:30:34 +0000 (10:30 +0200)]
Prevent rf2 from becoming inf
Bertrand Coconnier [Mon, 23 May 2016 18:02:36 +0000 (20:02 +0200)]
Bug fix for JSBSim SF bug #115: P51D crashes when advance ratio goes through zero
Erik Hofman [Mon, 23 May 2016 09:39:40 +0000 (11:39 +0200)]
Fix file permissions
Erik Hofman [Mon, 23 May 2016 09:38:05 +0000 (11:38 +0200)]
Code cleanups, code updates and fix at least on (possible) devide-by-zero
James Turner [Sat, 21 May 2016 13:00:29 +0000 (14:00 +0100)]
Real fix for Mac deployment issues.
James Turner [Sat, 21 May 2016 09:36:43 +0000 (10:36 +0100)]
Testing if this change broke Mac deployment.
Hopefully it didn’t but the time-frame is correct and it’s just
about the only code that happens before QApplication is created.
Florent Rougon [Wed, 18 May 2016 08:13:18 +0000 (10:13 +0200)]
Add missing include in src/Navaids/NavDataCache.cxx
#include <sstream> is needed for NavDataCachePrivate::init()
which uses std::ostringstream.
Torsten Dreyer [Wed, 18 May 2016 13:14:59 +0000 (15:14 +0200)]
Add user-agent request header
Torsten Dreyer [Wed, 18 May 2016 10:51:29 +0000 (12:51 +0200)]
Much better terrasync.py
- tortellini instead of spaghetti code (use oop)
- reuse connection
Torsten Dreyer [Wed, 18 May 2016 06:28:27 +0000 (08:28 +0200)]
Expose the type (loc/vor) for the navradio
Automatic Release Builder [Tue, 17 May 2016 08:03:50 +0000 (10:03 +0200)]
new version: 2016.3.0
Automatic Release Builder [Tue, 17 May 2016 08:03:50 +0000 (10:03 +0200)]
new version: 2016.2.1
Richard Harrison [Thu, 12 May 2016 10:05:28 +0000 (12:05 +0200)]
Fix MSVC10 compilation errors by using streams.
Richard Harrison [Thu, 12 May 2016 06:15:52 +0000 (08:15 +0200)]
Multiplayer packet boundary warnings
* Add warning if multiplayer packet boundary reached
* Add warning if string too big for remaining space in packet
ref: https://sourceforge.net/p/flightgear/mailman/message/
35059961/
Torsten Dreyer [Wed, 11 May 2016 20:59:59 +0000 (22:59 +0200)]
terrasync.py: cleanup and add some more power
- add option --quick
check sha1sum of .dirindex files and skip directory if hash matches
- add option --remove-orphan
remove orphan files (files exist locally but not on server)
- be less verbose
- write .dirindex files locally
Torsten Dreyer [Wed, 11 May 2016 12:59:36 +0000 (14:59 +0200)]
Move terrasync.py to /scripts/python
Torsten Dreyer [Wed, 11 May 2016 12:57:38 +0000 (14:57 +0200)]
terrasync.py: improving the stub
- use DNS NAPTR records to find terrasync server
- if static root/.dirindex if not provided by server
- allow command-line args for --url and --target
James Turner [Sat, 7 May 2016 09:23:02 +0000 (10:23 +0100)]
Curl is required for SimGear now.
Torsten Dreyer [Wed, 4 May 2016 21:08:22 +0000 (23:08 +0200)]
initial commit for a python based terrasync client
Edward d'Auvergne [Tue, 3 May 2016 07:56:06 +0000 (09:56 +0200)]
Shift of management of the precipitation OSG scene graph to the scenery manager.
The precipitation branch of the OSG scene graph is now centrally managed by the
scenery manager rather the precipitation manager itself. The scene graph
initialisation from the constructor has also been shifted into the new
FGPrecipitationMgr::sceneGraphSetup() function.
Edward d'Auvergne [Tue, 3 May 2016 13:14:53 +0000 (15:14 +0200)]
Prevention of the creation of multiple OSG scene graph roots.
As the scenery manager's init() function is called twice on start up, two OSG
scene graph roots would be created. A number of scene graph branches would be
initalised on the first root, but then be lost as the second is created. This
fixes the precipitation branch, for example.
Roland Haeder [Sat, 30 Apr 2016 16:18:43 +0000 (18:18 +0200)]
Fixed chmod
Signed-off-by: Roland Haeder <roland@mxchange.org>
James Turner [Tue, 17 Mar 2015 16:56:52 +0000 (16:56 +0000)]
Set min-macos-version for CMake 3.2.1
Roland Haeder [Sun, 19 Jan 2014 19:43:40 +0000 (20:43 +0100)]
Fixed CHMOD
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Haeder [Sat, 3 May 2014 18:16:37 +0000 (20:16 +0200)]
merged
Signed-off-by: Roland Haeder <roland@mxchange.org>
Florent Rougon [Sun, 24 Apr 2016 18:10:10 +0000 (20:10 +0200)]
apt.dat parser: indentation fixes; add a comment
- The first place where indentation is fixed was really misleading, at
least.
- The added comment "'line' may end with an \r character [...]" just
clarifies something that has been there for ages, to avoid people
falling into the trap.
Florent Rougon [Sun, 24 Apr 2016 17:45:37 +0000 (19:45 +0200)]
apt.dat parser: various little improvements
- don't duplicate the line buffer (array of char as well as
std::string), it is not useful here;
- don't corrupt (truncate) input lines longer than 2048 bytes: there is
no such limitation in the apt.dat v1000 format spec;
- fix comments handling: the apt.dat v1000 format spec states they must
start with *two* '#' characters.
Florent Rougon [Sun, 24 Apr 2016 17:33:41 +0000 (19:33 +0200)]
apt.dat parser: better input stream handling
- use ( in.getline(...) ) as the main loop condition instead of
( ! in.eof() ). This should behave better (see
<https://gehrcke.de/2011/06/reading-files-in-c-using-ifstream-dealing-correctly-with-badbit-failbit-eofbit-and-perror/>);
- check in.bad() after exiting from each reading loop; if the exit was
caused by an error, log an appropriate message and throw an
exception.
Florent Rougon [Sun, 24 Apr 2016 16:57:36 +0000 (18:57 +0200)]
apt.dat parser: separately handle the first two lines; fix line counting
- The first two lines of apt.dat have their own special syntax -> handle
them separately. Before this commit, the test "is the first character
an 'I' or an 'A'?" was done for *every* line of apt.dat, while it is
only relevant for the first one.
- Fix counting of the current line number (it was most of the time
0-based so far, which could be seen in error messages, because the
second line of apt.dat was absorbed without going through the common
code path where lines are normally read at the top of the while loop).
With this commit, line numbers in apt.dat are consistently counted
starting from 1.
Florent Rougon [Sun, 24 Apr 2016 16:05:15 +0000 (18:05 +0200)]
apt.dat parser: remove useless code
Remove useless code before parsing the "row code" (terminology from the
apt.dat v1000 spec). The row code is parsed with atoi(), which will
automatically stop at the first space found if it saw at least one
digit, thus there is no need to replace it with '\0', AFAICS.
One could replace the existing atoi() call with things that do better
checking, but my tests showed that would be a bit slower, so I let it
this way (tried with std::istringstream and strtol()).
Florent Rougon [Sun, 24 Apr 2016 15:53:42 +0000 (17:53 +0200)]
apt.dat parser: clearer log and exception messages
- the 'apt_dat' variable introduced here will be used in further
commits;
- use two spaces for indentation, as seen in most of the file.
Richard Senior [Tue, 26 Apr 2016 09:30:15 +0000 (10:30 +0100)]
Fix incorrect QNH in spoken ATIS when using live weather fetch
When using live weather fetch, the QNH should be obtained from
environment/metar/pressure-inhg.
See: http://sourceforge.net/p/flightgear/mailman/message/
35037125
Add new method getQnhInHg to ATISInformationProvider and its implementations
to avoid rounding errors converting from hPa back to inches in ATIS reports.
The CurrentWeatherATISInformationProvider (used when live weather fetch is
not in use) continues to use the property environment/pressure-sea-level-inhg.
This produces the incorrect QNH at airports significantly above sea level
but this needs fixing elsewhere to calculate the correct QNH.
Richard Senior [Tue, 26 Apr 2016 09:08:42 +0000 (10:08 +0100)]
Eliminate use of non-standard round() function in ATISEncoder
Use of round() produces compilation errors with MSVC10 and the build server
Torsten Dreyer [Sun, 24 Apr 2016 08:42:58 +0000 (10:42 +0200)]
Slightly better handling of setting initial pos
don't use KSFO as default when an unknown ID was
specified for --airport arg
TODO: don't hardcode default airport
Richard Senior [Fri, 8 Apr 2016 22:33:50 +0000 (23:33 +0100)]
Improvements to spoken ATIS
- Add section tag to support inclusion of ATIS fragments.
- Add visibility, QNH and cloud tokens to support new ATIS formats.
- Add support for starts-with, ends-with and contains comparisons in
conditionals, including negated versions.
- Strip and convert case in comparisons.
- Speak VRB wind direction as "variable".
- Speak zeroes in fractional part of QNH inHg.
- Force US voice in US, Canada and Pacific; UK voice in UK.
James Turner [Sun, 17 Apr 2016 17:00:37 +0000 (18:00 +0100)]
Clearer aircraft search prompt.
Alessandro Menti [Thu, 14 Apr 2016 14:41:19 +0000 (16:41 +0200)]
Launcher: silence 'Unknown aircraft URI scheme' warning on empty selection
------------------------------------------------------------------------
If no aircraft is selected in the launcher, the routine
AircraftItemModel::indexOfAircraftURI is called with an empty QUri,
triggering a warning in the terminal.
This commit removes such warning by ignoring QUris with empty schemes
(the routine still returns an invalid index).
Alessandro Menti [Thu, 14 Apr 2016 09:07:41 +0000 (11:07 +0200)]
Launcher: do not launch the simulator when closing the Qt launcher with ESC
Alessandro Menti [Wed, 13 Apr 2016 18:54:15 +0000 (20:54 +0200)]
Launcher: fix window flags on the "Add catalog" progress dialog
Alessandro Menti [Wed, 13 Apr 2016 14:28:44 +0000 (16:28 +0200)]
Launcher: state that it is needed to press Enter to search for the airport
Alessandro Menti [Wed, 13 Apr 2016 14:15:27 +0000 (16:15 +0200)]
Launcher: disable Close button on the initial progress dialog
Alessandro Menti [Wed, 13 Apr 2016 14:05:18 +0000 (16:05 +0200)]
Launcher: spelling fix in "Add Catalog" dialog window
Bertrand Coconnier [Sat, 16 Apr 2016 12:49:12 +0000 (14:49 +0200)]
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.
James Turner [Fri, 15 Apr 2016 17:03:01 +0000 (18:03 +0100)]
Fix a typo
James Turner [Fri, 15 Apr 2016 16:25:00 +0000 (17:25 +0100)]
Minor improvement to hangar list in the launcher.
James Turner [Fri, 15 Apr 2016 16:21:49 +0000 (17:21 +0100)]
Fixes to launcher description rendering.
James Turner [Fri, 15 Apr 2016 16:06:53 +0000 (17:06 +0100)]
Prompt the user when the default hangar is missing.
In the Qt launcher, when the default hangar isn’t found, show
a hint in the aircraft list.
James Turner [Thu, 14 Apr 2016 17:54:52 +0000 (18:54 +0100)]
Different fix for traffic shutdown crash.
Fix for: https://sourceforge.net/p/flightgear/codetickets/1864/
James Turner [Thu, 14 Apr 2016 17:54:27 +0000 (18:54 +0100)]
Fix stray back-button in Qt launcher
- when no location is set, don’t show the back button.
James Turner [Thu, 14 Apr 2016 08:33:20 +0000 (09:33 +0100)]
Update from SimGear API change
- support new HTTP cancellation API
Stuart Buchanan [Fri, 8 Apr 2016 21:38:17 +0000 (22:38 +0100)]
Make LOD of buildings/trees/objects/STG configurable.
Now using /sim/rendering/static-lod/rough.
James Turner [Fri, 8 Apr 2016 09:40:26 +0000 (10:40 +0100)]
Move launcher settings store inside FG_HOME
Settings now in .ini format, at $FG_HOME/flightgear.org/FlightGear.ini
James Turner [Fri, 8 Apr 2016 09:26:19 +0000 (10:26 +0100)]
Restructure paths handling in the launcher
- move the dialog into a new ‘add-ons’ tab
- separate out ‘restore settings’ from selecting a new fg-data
- actually relaunch the app
Torsten Dreyer [Thu, 7 Apr 2016 09:47:01 +0000 (09:47 +0000)]
Merge /u/sanhozay/flightgear/ branch next into next
https://sourceforge.net/p/flightgear/flightgear/merge-requests/35/
Richard Senior [Wed, 6 Apr 2016 23:58:34 +0000 (00:58 +0100)]
Allow ATIS format specifications to compare tokens against text values
Prior to this change, it was only possible to compare the values of tokens
to each other for use in conditionals, e.g. landing and departing runway.
This change allows comparison of a token to a text value, e.g. to compare
wind speed to zero.
Erik Hofman [Wed, 6 Apr 2016 12:26:30 +0000 (14:26 +0200)]
Add the latest fixes and expose all inertias in the property tree
James Turner [Mon, 28 Mar 2016 22:50:47 +0000 (23:50 +0100)]
Fix a reset crash with pager threading.
Ensure pager thread is stopped before we touch
the sgUserData reference to the main props tree.
James Turner [Mon, 28 Mar 2016 21:54:24 +0000 (22:54 +0100)]
Fix corrupt HUD fonts
osg::texture2D changes GL_UNPACK_ROW_LENGTH, which fntLoadTXF is not
prepared to deal with. Reset the value back to 0 before loading +
caching TXF fonts on the PLIB side.
James Turner [Sat, 26 Mar 2016 20:25:31 +0000 (20:25 +0000)]
Updated Canvas adaptor getImage API
Return the Image by ref ptr instead of raw pointer.
James Turner [Sat, 26 Mar 2016 20:24:57 +0000 (20:24 +0000)]
Fix Clang unused member warnings in JSBsim.
James Turner [Thu, 24 Mar 2016 20:23:39 +0000 (20:23 +0000)]
Fix iterator const-ness.
James Turner [Thu, 24 Mar 2016 15:10:06 +0000 (15:10 +0000)]
Improve download-dir behaviour.
When set on the command line, will be used for aircraft packages. When
set in the Qt launcher, will also be used for aircraft downloads at
all times.
When changing the path in the launcher, the set of aircraft catalogs
is refresh automatically. Note the default catalog may need to be
re-installed.
James Turner [Thu, 24 Mar 2016 15:08:38 +0000 (15:08 +0000)]
HTTP subsystem has a default name.
Switch to using type-safe accessors now.
James Turner [Thu, 24 Mar 2016 15:05:03 +0000 (15:05 +0000)]
New options setting/clearing helpers.
James Turner [Thu, 24 Mar 2016 12:26:16 +0000 (12:26 +0000)]
Fix for view look-at orientation bugs.
Force a manual re-calc of view parameters inside update. Will refactor
this in the future since shouldn’t really be necessary.
Ticket: https://sourceforge.net/p/flightgear/codetickets/1855/
James Turner [Tue, 22 Mar 2016 10:56:05 +0000 (10:56 +0000)]
Fix copy-paste bug setting season in the Qt guy
Spotted by Adrian Serrano!
James Turner [Tue, 22 Mar 2016 10:42:08 +0000 (10:42 +0000)]
Guard against a crash.
Erik Hofman [Mon, 21 Mar 2016 10:50:11 +0000 (11:50 +0100)]
Reload user preferences after reading the video configuration file
Florent Rougon [Sun, 20 Mar 2016 18:56:18 +0000 (19:56 +0100)]
Make --metar automatically imply --disable-real-weather-fetch
The --metar option has no effect unless --disable-real-weather-fetch is
also passed. This often makes users believe that --metar doesn't work.
Change the implementation for --metar so that it automatically implies
--disable-real-weather-fetch.
Torsten Dreyer [Sat, 19 Mar 2016 20:05:28 +0000 (21:05 +0100)]
Fix "failed to load file: Models/..."
After removing /Models from FGData loading of shared models from
within a scenery model failed because the ResourceManager did not know
about additional scenery paths.
James Turner [Sat, 19 Mar 2016 14:46:11 +0000 (14:46 +0000)]
Fix missing menubar on Mac in some setups
- Only clear the OSG ‘pose as standalone’ flag when we really show
a dialog, as opposed to when we /might/ show.
Tested:
- Qt build using launcher
- No Qt build
- Qt build but launcher not requested
Erik Hofman [Sat, 19 Mar 2016 12:10:36 +0000 (13:10 +0100)]
Add support for Video adapter rendering presets
Torsten Dreyer [Sat, 12 Mar 2016 19:55:46 +0000 (20:55 +0100)]
Fix for FreeBSD and a typo
Fix provided by Ganael LAPLANCHE, thanks!
Torsten Dreyer [Tue, 8 Mar 2016 17:37:32 +0000 (18:37 +0100)]
Make some more noise if (stale) fgfs.pid file exists
Durk Talsma [Sun, 6 Mar 2016 20:23:26 +0000 (21:23 +0100)]
AI traffic refused to take-off, because the TrafficRecord destructor would unassign an AIAircraft from it's ATC. This caused it to get stuck in front of the runway and block all other traffic.
This patch may introduce an occasional crash on exit again, because it effectively undoes commit [a972df]. I'll try to find a better fix for that later on.
James Turner [Sat, 5 Mar 2016 09:35:02 +0000 (09:35 +0000)]
Improve UI around adding aircraft dirs
- Check if the selected path, or an ‘Aircraft’ subdir, contains
some -set.xml files, and if not, warn the user.
James Turner [Sat, 5 Mar 2016 09:34:16 +0000 (09:34 +0000)]
Bugfix: Qt launcher, enable variant aircraft on-disk
When mapping a URI to a QModelIndex, we were only considering the
primary aircraft path, for on-disk aircraft as opposed to packages.
Torsten Dreyer [Mon, 29 Feb 2016 21:29:32 +0000 (22:29 +0100)]
Fix #1851, wrong type in multiplayer messages
See https://sourceforge.net/p/flightgear/codetickets/1851/
for details
James Turner [Wed, 24 Feb 2016 19:50:37 +0000 (21:50 +0200)]
Fix bug #1845, closing the Qt launcher
Intercept the close event and quit the app instead of continuing to
run the main FlightGear application.
https://sourceforge.net/p/flightgear/codetickets/1845/
Rebecca N. Palmer [Sun, 21 Feb 2016 20:25:02 +0000 (20:25 +0000)]
Nasal security: allow reading explicit --terrasync-dir
(but not /sim/terrasync/scenery-dir - https://bugs.debian.org/780716 )
Needed for animated jetways:
https://sourceforge.net/p/flightgear/mailman/message/
34870606/
James Turner [Mon, 25 Jan 2016 23:17:17 +0000 (17:17 -0600)]
Rename Viewer/viewer.cxx to view
- keep class and file names in sync.
James Turner [Sun, 24 Jan 2016 19:02:31 +0000 (13:02 -0600)]
View::updateData becomes a private helper.
James Turner [Sun, 24 Jan 2016 19:01:12 +0000 (13:01 -0600)]
View offset/target-offset props are tied
- make these View properties work like all the others, i.e
bound and unbound when the view changes.
James Turner [Sun, 24 Jan 2016 18:54:47 +0000 (12:54 -0600)]
Remove legacy ‘axes/lat’ and ‘axes/long’ props.
- only exits to support some legacy joystick hat configs,
which have been updated to use the goal- properties directly.
James Turner [Thu, 21 Jan 2016 04:00:20 +0000 (23:00 -0500)]
Make many View APIs private
- many things are now only needed by tied methods, and
hence can be made private.
James Turner [Thu, 21 Jan 2016 03:51:30 +0000 (22:51 -0500)]
Simplify setting view eye/target offsets
James Turner [Thu, 21 Jan 2016 03:45:48 +0000 (22:45 -0500)]
Sink more properties into View
James Turner [Thu, 21 Jan 2016 03:38:34 +0000 (22:38 -0500)]
View-manager binds like a normal subsystem.
- no longer need the unusual init-bind order
James Turner [Thu, 21 Jan 2016 02:26:51 +0000 (21:26 -0500)]
Clean up view-number property handling
James Turner [Thu, 21 Jan 2016 02:14:58 +0000 (21:14 -0500)]
Move FOV property into View