]> git.mxchange.org Git - flightgear.git/log
flightgear.git
8 years agoSet min-macos-version for CMake 3.2.1
James Turner [Tue, 17 Mar 2015 16:56:52 +0000 (16:56 +0000)]
Set min-macos-version for CMake 3.2.1

8 years agoFixed CHMOD
Roland Haeder [Sun, 19 Jan 2014 19:43:40 +0000 (20:43 +0100)]
Fixed CHMOD

Signed-off-by: Roland Haeder <roland@mxchange.org>
8 years agomerged
Roland Haeder [Sat, 3 May 2014 18:16:37 +0000 (20:16 +0200)]
merged

Signed-off-by: Roland Haeder <roland@mxchange.org>
8 years agoapt.dat parser: indentation fixes; add a comment
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.

8 years agoapt.dat parser: various little improvements
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.

8 years agoapt.dat parser: better input stream handling
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.

8 years agoapt.dat parser: separately handle the first two lines; fix line counting
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.

8 years agoapt.dat parser: remove useless code
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()).

8 years agoapt.dat parser: clearer log and exception messages
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.

8 years agoFix incorrect QNH in spoken ATIS when using live weather fetch
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.

8 years agoEliminate use of non-standard round() function in ATISEncoder
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

8 years agoSlightly better handling of setting initial pos
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

8 years agoImprovements to spoken ATIS
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.

8 years agoClearer aircraft search prompt.
James Turner [Sun, 17 Apr 2016 17:00:37 +0000 (18:00 +0100)]
Clearer aircraft search prompt.

8 years agoLauncher: silence 'Unknown aircraft URI scheme' warning on empty selection
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).

8 years agoLauncher: do not launch the simulator when closing the Qt launcher with ESC
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

8 years agoLauncher: fix window flags on the "Add catalog" progress dialog
Alessandro Menti [Wed, 13 Apr 2016 18:54:15 +0000 (20:54 +0200)]
Launcher: fix window flags on the "Add catalog" progress dialog

8 years agoLauncher: state that it is needed to press Enter to search for the airport
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

8 years agoLauncher: disable Close button on the initial progress dialog
Alessandro Menti [Wed, 13 Apr 2016 14:15:27 +0000 (16:15 +0200)]
Launcher: disable Close button on the initial progress dialog

8 years agoLauncher: spelling fix in "Add Catalog" dialog window
Alessandro Menti [Wed, 13 Apr 2016 14:05:18 +0000 (16:05 +0200)]
Launcher: spelling fix in "Add Catalog" dialog window

8 years agoJSBSim: - Fixed the forces/hold-down feature. The velocities are now zeroed when...
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.

8 years agoFix a typo
James Turner [Fri, 15 Apr 2016 17:03:01 +0000 (18:03 +0100)]
Fix a typo

8 years agoMinor improvement to hangar list in the launcher.
James Turner [Fri, 15 Apr 2016 16:25:00 +0000 (17:25 +0100)]
Minor improvement to hangar list in the launcher.

8 years agoFixes to launcher description rendering.
James Turner [Fri, 15 Apr 2016 16:21:49 +0000 (17:21 +0100)]
Fixes to launcher description rendering.

8 years agoPrompt the user when the default hangar is missing.
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.

8 years agoDifferent fix for traffic shutdown crash.
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/

8 years agoFix stray back-button in Qt launcher
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.

8 years agoUpdate from SimGear API change
James Turner [Thu, 14 Apr 2016 08:33:20 +0000 (09:33 +0100)]
Update from SimGear API change

- support new HTTP cancellation API

8 years agoMake LOD of buildings/trees/objects/STG configurable.
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.

8 years agoMove launcher settings store inside FG_HOME
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

8 years agoRestructure paths handling in the launcher
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

8 years agoMerge /u/sanhozay/flightgear/ branch next into next
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/

8 years agoAllow ATIS format specifications to compare tokens against text values
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.

8 years agoAdd the latest fixes and expose all inertias in the property tree
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

8 years agoFix a reset crash with pager threading.
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.

8 years agoFix corrupt HUD fonts
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.

8 years agoUpdated Canvas adaptor getImage API
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.

8 years agoFix Clang unused member warnings in JSBsim.
James Turner [Sat, 26 Mar 2016 20:24:57 +0000 (20:24 +0000)]
Fix Clang unused member warnings in JSBsim.

8 years agoFix iterator const-ness.
James Turner [Thu, 24 Mar 2016 20:23:39 +0000 (20:23 +0000)]
Fix iterator const-ness.

8 years agoImprove download-dir behaviour.
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.

8 years agoHTTP subsystem has a default name.
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.

8 years agoNew options setting/clearing helpers.
James Turner [Thu, 24 Mar 2016 15:05:03 +0000 (15:05 +0000)]
New options setting/clearing helpers.

8 years agoFix for view look-at orientation bugs.
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/

8 years agoFix copy-paste bug setting season in the Qt guy
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!

8 years agoGuard against a crash.
James Turner [Tue, 22 Mar 2016 10:42:08 +0000 (10:42 +0000)]
Guard against a crash.

8 years agoReload user preferences after reading the video configuration file
Erik Hofman [Mon, 21 Mar 2016 10:50:11 +0000 (11:50 +0100)]
Reload user preferences after reading the video configuration file

8 years agoMake --metar automatically imply --disable-real-weather-fetch
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.

8 years agoFix "failed to load file: Models/..."
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.

8 years agoFix missing menubar on Mac in some setups
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

8 years agoAdd support for Video adapter rendering presets
Erik Hofman [Sat, 19 Mar 2016 12:10:36 +0000 (13:10 +0100)]
Add support for Video adapter rendering presets

8 years agoFix for FreeBSD and a typo
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!

8 years agoMake some more noise if (stale) fgfs.pid file exists
Torsten Dreyer [Tue, 8 Mar 2016 17:37:32 +0000 (18:37 +0100)]
Make some more noise if (stale) fgfs.pid file exists

8 years agoAI traffic refused to take-off, because the TrafficRecord destructor would unassign...
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.

8 years agoImprove UI around adding aircraft dirs
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.

8 years agoBugfix: Qt launcher, enable variant aircraft on-disk
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.

8 years agoFix #1851, wrong type in multiplayer messages
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

8 years agoFix bug #1845, closing the Qt launcher
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/

8 years agoNasal security: allow reading explicit --terrasync-dir
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/

8 years agoRename Viewer/viewer.cxx to view
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.

8 years agoView::updateData becomes a private helper.
James Turner [Sun, 24 Jan 2016 19:02:31 +0000 (13:02 -0600)]
View::updateData becomes a private helper.

8 years agoView offset/target-offset props are tied
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.

8 years agoRemove legacy ‘axes/lat’ and ‘axes/long’ props.
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.

8 years agoMake many View APIs private
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.

8 years agoSimplify setting view eye/target offsets
James Turner [Thu, 21 Jan 2016 03:51:30 +0000 (22:51 -0500)]
Simplify setting view eye/target offsets

8 years agoSink more properties into View
James Turner [Thu, 21 Jan 2016 03:45:48 +0000 (22:45 -0500)]
Sink more properties into View

8 years agoView-manager binds like a normal subsystem.
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

8 years agoClean up view-number property handling
James Turner [Thu, 21 Jan 2016 02:26:51 +0000 (21:26 -0500)]
Clean up view-number property handling

8 years agoMove FOV property into View
James Turner [Thu, 21 Jan 2016 02:14:58 +0000 (21:14 -0500)]
Move FOV property into View

8 years agoView-Mgr absolute position is gone.
James Turner [Thu, 21 Jan 2016 02:02:46 +0000 (21:02 -0500)]
View-Mgr absolute position is gone.

8 years agoTie view orientations directly
James Turner [Thu, 21 Jan 2016 01:54:26 +0000 (20:54 -0500)]
Tie view orientations directly

- remove need for cached orientations in view-manager

8 years agocopyToCurrent removed.
James Turner [Thu, 21 Jan 2016 01:37:26 +0000 (20:37 -0500)]
copyToCurrent removed.

8 years agoRemove dead code.
James Turner [Tue, 19 Jan 2016 01:05:44 +0000 (20:05 -0500)]
Remove dead code.

8 years agoBetter types for eye/target position
James Turner [Mon, 18 Jan 2016 05:04:05 +0000 (00:04 -0500)]
Better types for eye/target position

8 years agoMove data updating into the View class
James Turner [Mon, 18 Jan 2016 02:21:20 +0000 (21:21 -0500)]
Move data updating into the View class

8 years agoViewManager::copyToCurrent is a no-op
James Turner [Sun, 17 Jan 2016 22:14:11 +0000 (16:14 -0600)]
ViewManager::copyToCurrent is a no-op

8 years agoStart moving view-manager logic into View
James Turner [Sun, 17 Jan 2016 21:48:57 +0000 (15:48 -0600)]
Start moving view-manager logic into View

- work in progress, goal is to make copyToCurrent and most of
  the bind/unbind logic sink into each specific View, avoiding all the
  null pointer checks in view manager.

8 years agoMake View::set_clean private.
James Turner [Sun, 17 Jan 2016 21:15:11 +0000 (15:15 -0600)]
Make View::set_clean private.

8 years agoView can created itself from config properties
James Turner [Sun, 17 Jan 2016 21:13:42 +0000 (15:13 -0600)]
View can created itself from config properties

- use in view manager
- make View constructor private

8 years agoRe-Name FGViewer to flightgear::View
James Turner [Sun, 17 Jan 2016 21:06:45 +0000 (15:06 -0600)]
Re-Name FGViewer to flightgear::View

- avoids confusion with osgViewer and fgviewer application.

(source files to be renamed in a follow-up commit)

8 years agoViewer: move camera-group to view manager
James Turner [Sun, 17 Jan 2016 20:50:13 +0000 (14:50 -0600)]
Viewer: move camera-group to view manager

- also devirtualise many methods in FGViewer

8 years agonew version: 2016.2.0
Automatic Release Builder [Wed, 17 Feb 2016 20:16:33 +0000 (21:16 +0100)]
new version: 2016.2.0

8 years agonew version: 2016.1.1
Automatic Release Builder [Wed, 17 Feb 2016 20:16:33 +0000 (21:16 +0100)]
new version: 2016.1.1

8 years agoFix for the particle system.
Edward d'Auvergne [Tue, 16 Feb 2016 16:33:40 +0000 (17:33 +0100)]
Fix for the particle system.

The problem was that the change to make FGScenery a standard subsystem caused
the particle OSG group to no longer be inserted into the scene graph.  The
solution was to convert the particle group to be set up as a standard branch of
the scene graph, alongside the terrain, models, aircraft, and interior branches.
The particle system is now set up as part of the init() subsystem function call,
so it is compatible with the new subsystem design.

8 years agoHUD fix for MSVC math.h incompatibility with C-99 and the round() function.
Edward d'Auvergne [Thu, 11 Feb 2016 11:34:13 +0000 (12:34 +0100)]
HUD fix for MSVC math.h incompatibility with C-99 and the round() function.

8 years agoadd new QtFileDialog to avoid using Nasal in file selectors
Rebecca N. Palmer [Wed, 10 Feb 2016 22:58:56 +0000 (22:58 +0000)]
add new QtFileDialog to avoid using Nasal in file selectors

(and hence avoid applying Nasal security rules to them)

8 years agoNasal security: give a more user-friendly error on self-check fail
Rebecca N. Palmer [Wed, 10 Feb 2016 22:54:52 +0000 (22:54 +0000)]
Nasal security: give a more user-friendly error on self-check fail

https://sourceforge.net/p/flightgear/mailman/message/34701972/

8 years agoRedesign of the latitude and longitude formatting for the HUD.
Edward d'Auvergne [Tue, 14 Jul 2015 16:57:42 +0000 (18:57 +0200)]
Redesign of the latitude and longitude formatting for the HUD.

This follows from http://thread.gmane.org/gmane.games.flightgear.devel/78650 and
resolves the sign bug https://sourceforge.net/p/flightgear/codetickets/1778/ .

Combined with a matching change to FGData, this changes the HUD formats from the
current set of 3 (note that the text in brackets is not shown in the HUD
preferences PUI dialog, but is show here for reference):

    0) Decimal degrees (37.618890N -122.375000W)
    1) Degrees, minutes (37*37.133N -122*22.500W)
    2) Degrees, minutes, seconds (37*37 08.0 N -122*22 30.0 W)

to (here the text in brackets will be shown in the PUI dialog):

    0) DDD format (37.618890N 122.375000W)
    1) DMM format (37*37.133'N 122*22.500'W)
    2) DMS format (37*37'08.0"N 122*22'30.0"W)
    3) Signed DDD format (37.618890 -122.375000)
    4) Signed DMM format (37*37.133' -122*22.500')
    5) Signed DMS format (37*37'08.0" -122*22'30.0")
    6) Zero padded DDD (51.477500N 000.461389W)
    7) Zero padded DMM (51*28.650'N 000*27.683'W)
    8) Zero padded DMS (51*28'39.0"N 000*27'41.0"W)
    9) Trinity House Navigation (51* 28'.650N 000* 27'.683W)

8 years agoNasal security: don't break file dialogs
Rebecca N. Palmer [Tue, 9 Feb 2016 23:17:41 +0000 (23:17 +0000)]
Nasal security: don't break file dialogs

Include the directory itself when allowing reading
Don't kill the script on a denied directory read

8 years agoNasal security: make directory() use fgValidatePath
Rebecca N. Palmer [Sat, 6 Feb 2016 21:26:05 +0000 (21:26 +0000)]
Nasal security: make directory() use fgValidatePath

Being able to list arbitrary directories is a privacy violation;
existing in-fgdata uses of this are all permitted paths
(i.e. not Terrasync; FileSelector doesn't use it)

8 years agoDefensive handling of locales.
James Turner [Tue, 2 Feb 2016 20:44:46 +0000 (20:44 +0000)]
Defensive handling of locales.

- Use setlocale() to ensure consistent handling of locales and
  string handling irrespective of whether or not QCoreApplication
  is invoked. Forces a the C locale for numerics and collation,
  since many pieces of FG assume this.

8 years agoAdd the latest batch of JSBSim changes. Tested with the Shuttle
Erik Hofman [Fri, 29 Jan 2016 11:23:58 +0000 (12:23 +0100)]
Add the latest batch of JSBSim changes. Tested with the Shuttle

8 years agoVS2013 fixes for some FDMs.
James Turner [Wed, 27 Jan 2016 14:00:09 +0000 (14:00 +0000)]
VS2013 fixes for some FDMs.

8 years agoFix a bug with updating packages.
James Turner [Tue, 26 Jan 2016 16:46:58 +0000 (16:46 +0000)]
Fix a bug with updating packages.

- always refresh the catalogs each launch, so we don’t get mismatches
  between the cached copy the and package zips.

8 years agoPossible fix for Mac strncmp crashes.
James Turner [Tue, 26 Jan 2016 06:47:38 +0000 (07:47 +0100)]
Possible fix for Mac strncmp crashes.

8 years agoUse target_include_directories in some places.
James Turner [Sat, 23 Jan 2016 21:55:11 +0000 (15:55 -0600)]
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)

8 years agoFix #1744: disable commradio when unserviceable
Gijs de Rooy [Mon, 25 Jan 2016 15:38:57 +0000 (16:38 +0100)]
Fix #1744: disable commradio when unserviceable

8 years agoAdjust fg root processing order
James Turner [Tue, 19 Jan 2016 23:32:20 +0000 (18:32 -0500)]
Adjust fg root processing order

- ensure fg-root and FG_ROOT are higher precedence than the Qt gui

8 years agoImproved fg-root control from the Qt Launcher
James Turner [Sun, 17 Jan 2016 19:10:22 +0000 (13:10 -0600)]
Improved fg-root control from the Qt Launcher

- add a button to the main dialog, explaining how to adjust the
  fg-root path via the GUI
- tweak the GUI flow to support explicitly changing the path even
  when the default path is acceptable.

8 years agoFixed a bug which caused the solid propellant thrusters of the space shuttle to be...
bcoconni [Sun, 17 Jan 2016 09:26:25 +0000 (10:26 +0100)]
Fixed a bug which caused the solid propellant thrusters of the space shuttle to be unconditionnally ignited during the trimming.

8 years agoNew log class for TerraSync
James Turner [Sat, 16 Jan 2016 21:48:50 +0000 (15:48 -0600)]
New log class for TerraSync