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
James Turner [Thu, 21 Jan 2016 02:02:46 +0000 (21:02 -0500)]
View-Mgr absolute position is gone.
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
James Turner [Thu, 21 Jan 2016 01:37:26 +0000 (20:37 -0500)]
copyToCurrent removed.
James Turner [Tue, 19 Jan 2016 01:05:44 +0000 (20:05 -0500)]
Remove dead code.
James Turner [Mon, 18 Jan 2016 05:04:05 +0000 (00:04 -0500)]
Better types for eye/target position
James Turner [Mon, 18 Jan 2016 02:21:20 +0000 (21:21 -0500)]
Move data updating into the View class
James Turner [Sun, 17 Jan 2016 22:14:11 +0000 (16:14 -0600)]
ViewManager::copyToCurrent is a no-op
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.
James Turner [Sun, 17 Jan 2016 21:15:11 +0000 (15:15 -0600)]
Make View::set_clean private.
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
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)
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
Automatic Release Builder [Wed, 17 Feb 2016 20:16:33 +0000 (21:16 +0100)]
new version: 2016.2.0
Automatic Release Builder [Wed, 17 Feb 2016 20:16:33 +0000 (21:16 +0100)]
new version: 2016.1.1
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.
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.
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)
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/
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)
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
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)
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.
Erik Hofman [Fri, 29 Jan 2016 11:23:58 +0000 (12:23 +0100)]
Add the latest batch of JSBSim changes. Tested with the Shuttle
James Turner [Wed, 27 Jan 2016 14:00:09 +0000 (14:00 +0000)]
VS2013 fixes for some FDMs.
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.
James Turner [Tue, 26 Jan 2016 06:47:38 +0000 (07:47 +0100)]
Possible fix for Mac strncmp crashes.
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)
Gijs de Rooy [Mon, 25 Jan 2016 15:38:57 +0000 (16:38 +0100)]
Fix #1744: disable commradio when unserviceable
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
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.
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.
James Turner [Sat, 16 Jan 2016 21:48:50 +0000 (15:48 -0600)]
New log class for TerraSync
Bertrand Coconnier [Sat, 16 Jan 2016 18:36:32 +0000 (19:36 +0100)]
JSBSim dropped the support of the simplex trim code
Bertrand Coconnier [Sat, 16 Jan 2016 18:32:50 +0000 (19:32 +0100)]
Fixed the initialization process for JSBSim models: the error message "FGTrim::calcRotation DistPlane^2 larger than sqrRadius" should no longer be issued
bcoconni [Sat, 16 Jan 2016 12:14:51 +0000 (13:14 +0100)]
Remove the error message about the property atmosphere/P-sl-psf that can't be tied
James Turner [Wed, 13 Jan 2016 04:44:51 +0000 (22:44 -0600)]
Clang warning fixes for IAXClient lib.
Torsten Dreyer [Wed, 13 Jan 2016 12:25:16 +0000 (13:25 +0100)]
httpd: expose /fg-home and /fg-root
James Turner [Tue, 12 Jan 2016 23:33:57 +0000 (17:33 -0600)]
Log options to INFO level when processing
- ensures they occur in the fgfs.log which should aid problem
tracing.
James Turner [Tue, 12 Jan 2016 23:26:06 +0000 (17:26 -0600)]
Fix a typo breaking some takeoff-state logic.
James Turner [Tue, 12 Jan 2016 23:25:54 +0000 (17:25 -0600)]
Launcher: fix slot name for old-style syntax
James Turner [Tue, 12 Jan 2016 18:50:58 +0000 (12:50 -0600)]
Fix an unused variable in non-developer-warning mode.
James Turner [Tue, 12 Jan 2016 18:50:44 +0000 (12:50 -0600)]
Fix unused constants in YASim
James Turner [Tue, 12 Jan 2016 18:50:31 +0000 (12:50 -0600)]
Fix many clang errors in UIUC code
- because uiuc_warning_error always called exit(-1), it can be marked
no return, so Clang realises that when it’s used in the ‘else’
side of a parsing test, uninitialised variables in the enclosing
call site are safe.
(Requires Simgear update to define SG_NO_RETURN helper)
James Turner [Tue, 12 Jan 2016 18:49:14 +0000 (12:49 -0600)]
Fix unused variable in LaRCsim
James Turner [Mon, 11 Jan 2016 19:01:05 +0000 (13:01 -0600)]
Fix a potential use-after-free in ATC code
- when dynamics shuts down the ATC controllers, they clear their
traffic vectors (destroying the records), but we didn’t notify
the AI aircraft of this. Ensure the controller is cleared so
the AI aircraft shutdown doesn’t crash.
Erik Hofman [Mon, 11 Jan 2016 10:39:11 +0000 (11:39 +0100)]
Sync. again
Erik Hofman [Mon, 11 Jan 2016 10:38:11 +0000 (11:38 +0100)]
Fix a singed/unsigned warning
Torsten Dreyer [Tue, 12 Jan 2016 10:19:26 +0000 (11:19 +0100)]
Fix a bug for allowed paths
Under some conditions on my system
aircraft_paths.begin() was equal to scenery_paths.end()
This resulted in neither of them being added to read_allowed_paths
followed by failure to load Nasal scripts from the aircraft directory.
This might happen, if scenery_paths gets allocated just before aircraft_paths
in memory.
Better loop across the desired lists instead of using fancy tricks with
the iterator.
James Turner [Mon, 11 Jan 2016 17:47:29 +0000 (11:47 -0600)]
Bugfix: pause works for JSBsim/Yasim again
Erik Hofman [Mon, 11 Jan 2016 08:46:16 +0000 (09:46 +0100)]
Apperently maybeRestoreAircraftSelection() needs to be a slot
James Turner [Mon, 11 Jan 2016 05:46:44 +0000 (23:46 -0600)]
Fixes to launcher aircraft delegate.
- fix some text size computation issues
James Turner [Mon, 11 Jan 2016 04:11:32 +0000 (22:11 -0600)]
Linux build fix.
James Turner [Mon, 11 Jan 2016 04:10:10 +0000 (22:10 -0600)]
Current time of day (warp) fixes:
- sim-speed-up (a/A keys) offsets warp correctly. This means at 4x speed
up the warp will increase by 3 seconds for one elapsed real second.
In practice this means simulation elements timed using sim ‘current time’
will be correctly synchronised with those using simulated elapsed time.
(AI traffic being a prime example of this)
- warp-delta (t/T keys) is independent of frame rate, and works when
paused. The warp-delta values in the keybindings / GUI dialog
will need to be updated since warp-delta in now seconds-per-second,
as opposed to seconds-per-frame.
James Turner [Sun, 10 Jan 2016 22:38:01 +0000 (16:38 -0600)]
Launcher finds parking positions from scenery
- change launcher to examine the scenery paths and hence load
ground-net files for airports to populate parking data.
- refactor ground-net XML parsing to use FGGroundNetwork only, not
AirportDynamics.
- change parenting of GroundNetwork to Airport, since it contains
immutable data now.
James Turner [Sun, 10 Jan 2016 19:47:57 +0000 (13:47 -0600)]
Launcher: Maintain aircraft selection better
- when launching or toggling settings, try to keep the current
aircraft selected and in-view.
James Turner [Sun, 10 Jan 2016 18:56:46 +0000 (12:56 -0600)]
‘only show installed checkbox’ for Qt launcher
- will be replaced when I think of a prettier UI, but this
feature is important to have for now.
James Turner [Sun, 10 Jan 2016 18:55:18 +0000 (12:55 -0600)]
Fix some FDM warnings with Clang
James Turner [Sat, 9 Jan 2016 23:17:58 +0000 (17:17 -0600)]
Allow re-ordering of paths in the launcher.
- suggested by Gilberto, allow the user to set the order of the
scenery and aircraft paths by dragging.
James Turner [Sat, 9 Jan 2016 16:07:16 +0000 (10:07 -0600)]
Fallback for runway assignment logic
- when no runway use preferences XML exists, be smarter about using
available runways. Makes the common case of using two parallel
runways for arrivals and departures work, greatly improving AI
traffic behaviour.
James Turner [Thu, 7 Jan 2016 04:27:33 +0000 (22:27 -0600)]
Fix a dumb AI traffic bug I introduced.
James Turner [Wed, 6 Jan 2016 23:58:24 +0000 (17:58 -0600)]
Fix acceleration path of default takeoff taxi.
James Turner [Wed, 6 Jan 2016 05:16:34 +0000 (23:16 -0600)]
Fix some more uses of libC time()
James Turner [Wed, 6 Jan 2016 04:04:19 +0000 (22:04 -0600)]
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.
James Turner [Wed, 6 Jan 2016 04:00:12 +0000 (22:00 -0600)]
Use SGTime instead of time() in traffic/AI code
- avoids manual handling of /sim/time/warp in many places
James Turner [Wed, 6 Jan 2016 02:58:47 +0000 (20:58 -0600)]
Remove dt member of AIAircraft
Torsten Dreyer [Tue, 5 Jan 2016 19:44:42 +0000 (20:44 +0100)]
Version 2016.1.0
James Turner [Mon, 4 Jan 2016 18:10:04 +0000 (12:10 -0600)]
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)
James Turner [Mon, 4 Jan 2016 02:58:03 +0000 (20:58 -0600)]
Package variants working.
James Turner [Fri, 1 Jan 2016 20:53:02 +0000 (14:53 -0600)]
Chatter-queue moved out of globals
- now lives as part of the sound-manager, yay.
James Turner [Fri, 1 Jan 2016 20:33:17 +0000 (14:33 -0600)]
Remove FontCache from globals.
- access via a singleton instead.
Erik Hofman [Sun, 3 Jan 2016 13:38:18 +0000 (14:38 +0100)]
Remove scenefx code, it keeps crashing in untracable places and I lost interrest. It was a hughe waste of time
James Turner [Thu, 31 Dec 2015 05:11:54 +0000 (23:11 -0600)]
Pull Sound-manager out of FGGlobals
James Turner [Thu, 31 Dec 2015 05:11:06 +0000 (23:11 -0600)]
Pull Ephemeris out of FGGlobals
James Turner [Wed, 30 Dec 2015 23:05:25 +0000 (17:05 -0600)]
Update to newer version of HTS engine
- version 1.1, released 25th December 2015
(note there is no corresponding update to Flite)
James Turner [Wed, 30 Dec 2015 20:27:54 +0000 (14:27 -0600)]
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.
Erik Hofman [Tue, 29 Dec 2015 13:55:22 +0000 (14:55 +0100)]
Prevent two possible nan's
Erik Hofman [Thu, 24 Dec 2015 12:44:34 +0000 (13:44 +0100)]
Do not call setIsPushback, it causes a segmentation fault after about 10 minutes. I did commit this change in
6b9a28a568dee493dc76be76a2d8eb106133d4e4 to fix a warning, but it night not have been the wisest thing to do.
Erik Hofman [Thu, 24 Dec 2015 10:52:09 +0000 (11:52 +0100)]
Fix the tile-manager subsystem name
James Turner [Tue, 22 Dec 2015 21:15:09 +0000 (15:15 -0600)]
Better Traffic performance data warnings.
Torsten Dreyer [Tue, 22 Dec 2015 10:42:27 +0000 (11:42 +0100)]
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)
Torsten Dreyer [Tue, 22 Dec 2015 10:41:56 +0000 (11:41 +0100)]
Remove unused code
James Turner [Sat, 19 Dec 2015 08:32:25 +0000 (00:32 -0800)]
Fix a typo
James Turner [Sat, 19 Dec 2015 08:30:31 +0000 (00:30 -0800)]
AI subsystem now does an orderly shutdown
- remove special case logic which is no longer required
James Turner [Sat, 19 Dec 2015 08:29:00 +0000 (00:29 -0800)]
Make PerformanceDB a real subsystem
James Turner [Sat, 19 Dec 2015 08:08:07 +0000 (00:08 -0800)]
Fix off-by-one errors in GroundController
findSegment() and segments[] array use different indexing, account
for this in the conversion to always use findSegment
James Turner [Sat, 19 Dec 2015 06:00:37 +0000 (22:00 -0800)]
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.
James Turner [Sat, 19 Dec 2015 05:59:28 +0000 (21:59 -0800)]
Quiet down Traffic error logging.
James Turner [Sat, 19 Dec 2015 05:42:22 +0000 (21:42 -0800)]
Trying to bullet-proof the traffic code.
James Turner [Sat, 19 Dec 2015 04:13:23 +0000 (20:13 -0800)]
Aircraft-model subsystem behaves better
- make shutdown logic more robust
- shutdown is no longer special cased in globals.
James Turner [Sat, 19 Dec 2015 03:56:56 +0000 (19:56 -0800)]
Proper shutdown() for the model manager
- also move property setup to bind/unbind
James Turner [Fri, 18 Dec 2015 04:23:45 +0000 (20:23 -0800)]
Runtime checks for GroundContoller crashes.
Trying to identify what’s actually going wrong here.
James Turner [Fri, 18 Dec 2015 03:22:14 +0000 (19:22 -0800)]
Fixes for first/last legs on a route
- fixes total route distance calculation