]> git.mxchange.org Git - flightgear.git/log
flightgear.git
11 years agoFix for bug, ILS not visible in map on first run.
James Turner [Sat, 23 Feb 2013 14:51:00 +0000 (14:51 +0000)]
Fix for bug, ILS not visible in map on first run.

When calling setILS, in-memory runways did not get updated. This showed up in the map, but also affecting a few other places. Will port this to 2.10.1 when that process starts.

11 years agoVersion the navache filename.
James Turner [Thu, 21 Feb 2013 17:42:06 +0000 (17:42 +0000)]
Version the navache filename.

Be friendly to people switching between 2.10 and dev (2.11), don't force a rebuild each time.

11 years agoGive the FGAirport class a sane filename.
James Turner [Thu, 21 Feb 2013 11:32:02 +0000 (11:32 +0000)]
Give the FGAirport class a sane filename.

simple.[cxx|hxx] -> airport.[cxx|hxx]

11 years agoAdd support for helipads from apt.dat 850+
Christian Schmitt [Wed, 20 Feb 2013 22:35:32 +0000 (23:35 +0100)]
Add support for helipads from apt.dat 850+

11 years agoairport traffic routes from apt.dat 1000 are unknown to FG, so ignore them for now
Christian Schmitt [Wed, 20 Feb 2013 22:43:21 +0000 (23:43 +0100)]
airport traffic routes from apt.dat 1000 are unknown to FG, so ignore them for now

11 years agoAdding directive for osx sdk 10.5 in ClipBoardCocoa.mm
Yves Sablonier [Sat, 16 Feb 2013 23:06:03 +0000 (00:06 +0100)]
Adding directive for osx sdk 10.5 in ClipBoardCocoa.mm

11 years agoDisplay RTI status like it's done in Simgear
F-JJTH [Fri, 15 Feb 2013 23:03:40 +0000 (00:03 +0100)]
Display RTI status like it's done in Simgear

11 years agofg mingw fixes part #1
hooray [Mon, 4 Feb 2013 16:35:39 +0000 (17:35 +0100)]
fg mingw fixes part #1

Conflicts:
src/Main/bootstrap.cxx

11 years agoIgnore events if canvas::Window is not visible
Thomas Geymayer [Wed, 13 Feb 2013 11:10:25 +0000 (12:10 +0100)]
Ignore events if canvas::Window is not visible

11 years agoMake compiling of all utils/tools optional
Thomas Geymayer [Tue, 12 Feb 2013 16:38:46 +0000 (17:38 +0100)]
Make compiling of all utils/tools optional

11 years agoFix ADA compilation.
James Turner [Mon, 11 Feb 2013 22:16:02 +0000 (22:16 +0000)]
Fix ADA compilation.

Patch by Roland Haeder

11 years agoFile mode fixes.
James Turner [Mon, 11 Feb 2013 22:15:23 +0000 (22:15 +0000)]
File mode fixes.

Contributed by Roland Haeder

11 years agoTypo fix, pointed out by Emillian.
James Turner [Mon, 11 Feb 2013 12:51:54 +0000 (12:51 +0000)]
Typo fix, pointed out by Emillian.

11 years agoAllow HOME to be undefined, as on Windows.
James Turner [Sun, 10 Feb 2013 13:35:58 +0000 (13:35 +0000)]
Allow HOME to be undefined, as on Windows.

11 years agoWork-around a clang glitch with 10.6
James Turner [Sun, 10 Feb 2013 11:53:42 +0000 (11:53 +0000)]
Work-around a clang glitch with 10.6

11 years agoFlightRecorder: smarter log warning.
James Turner [Sun, 10 Feb 2013 11:47:16 +0000 (11:47 +0000)]
FlightRecorder: smarter log warning.

When using the default (generic) config, which references many props which may not exist in a particular aircraft, suppress the 'recording non-existent' property warning.

11 years agoLinux fix.
James Turner [Sat, 9 Feb 2013 17:11:36 +0000 (17:11 +0000)]
Linux fix.

One day I'm going to figure out why I get all the standard-library includes automatically on Mac, but not on Linux. Today is not that day.

11 years agoInclude file only needed by MSVC
Frederic Bouvier [Sat, 9 Feb 2013 16:40:01 +0000 (17:40 +0100)]
Include file only needed by MSVC

11 years agoFix another compile fail.
James Turner [Sat, 9 Feb 2013 16:37:40 +0000 (16:37 +0000)]
Fix another compile fail.

No idea why I don't need this on Mac, hmm.

11 years agoFix windows build
Frederic Bouvier [Sat, 9 Feb 2013 16:24:44 +0000 (17:24 +0100)]
Fix windows build

11 years agoFix a GCC warning.
James Turner [Sat, 9 Feb 2013 15:33:13 +0000 (15:33 +0000)]
Fix a GCC warning.

11 years agoSplit huge NasalSys header apart.
James Turner [Sat, 9 Feb 2013 15:33:05 +0000 (15:33 +0000)]
Split huge NasalSys header apart.

11 years agoFix compilation.
James Turner [Sat, 9 Feb 2013 15:31:43 +0000 (15:31 +0000)]
Fix compilation.

11 years agoMerge branch 'next' of gitorious.org:fg/flightgear into next
James Turner [Sat, 9 Feb 2013 14:27:15 +0000 (14:27 +0000)]
Merge branch 'next' of gitorious.org:fg/flightgear into next

11 years agofix compile with fgai
Mathias Froehlich [Sat, 9 Feb 2013 07:53:34 +0000 (08:53 +0100)]
fix compile with fgai

11 years agoSupport a log-list widget in PUI.
James Turner [Fri, 8 Feb 2013 19:39:41 +0000 (19:39 +0000)]
Support a log-list widget in PUI.

Add a puaListBox which can show the contents of a log-buffer. Currently only two buffer sources are supported more to follow (and the dialog XML updates).

11 years agoDump more config state at startup.
James Turner [Fri, 8 Feb 2013 13:15:20 +0000 (13:15 +0000)]
Dump more config state at startup.

Ensure that log files capture enough config state to debug path/search issues. Easy to expand this mechanism now to record anything similar.

11 years agoRefactor FG_HOME init, so we can log sooner.
James Turner [Fri, 8 Feb 2013 11:43:51 +0000 (11:43 +0000)]
Refactor FG_HOME init, so we can log sooner.

Logging to file now happens earlier, so some useful early output is captured.

11 years agoFix build for windows after logstream changes
Frederic Bouvier [Fri, 8 Feb 2013 07:46:34 +0000 (08:46 +0100)]
Fix build for windows after logstream changes

11 years agoImprove mouse event capturing with Canvas windows.
Thomas Geymayer [Thu, 7 Feb 2013 22:08:36 +0000 (23:08 +0100)]
Improve mouse event capturing with Canvas windows.

 - Don't capture mouse events if mouse mode has
   pass-through disabled. This behaviour is
   consistent with the PUI dialogs and allows
   changing moving view and controls while above
   any GUI dialog.
 - Add option to canvas windows to ignore all
   events and let them pass through
   ("capture-events").

11 years agoSome headers missing... ;)
Christian Schmitt [Thu, 7 Feb 2013 18:00:54 +0000 (19:00 +0100)]
Some headers missing... ;)

11 years agoSupport logging from Nasal at custom levels.
James Turner [Thu, 7 Feb 2013 16:44:24 +0000 (16:44 +0000)]
Support logging from Nasal at custom levels.

For now, print() still logs at SG_ALERT level.

11 years agoMap OSG notification system to Simgear logging.
James Turner [Thu, 7 Feb 2013 16:01:36 +0000 (16:01 +0000)]
Map OSG notification system to Simgear logging.

With this, OSG notifications can be captured / buffered in-line with our other log messages, which should help debugging and feedback.

11 years agoAdapt to revised logging API.
James Turner [Wed, 6 Feb 2013 18:05:45 +0000 (19:05 +0100)]
Adapt to revised logging API.

11 years agoLog to file inside FG_HOME.
James Turner [Wed, 6 Feb 2013 18:05:33 +0000 (19:05 +0100)]
Log to file inside FG_HOME.

11 years agoRemove un-needed header.
James Turner [Wed, 6 Feb 2013 18:05:08 +0000 (19:05 +0100)]
Remove un-needed header.

11 years agoMake various PUI widgets private.
James Turner [Wed, 6 Feb 2013 18:04:51 +0000 (19:04 +0100)]
Make various PUI widgets private.

11 years agoReapply canvas placements upon aircraft-model reinit
Thomas Geymayer [Wed, 6 Feb 2013 00:22:44 +0000 (01:22 +0100)]
Reapply canvas placements upon aircraft-model reinit

11 years agoChange the way the nav-cache is rebuilt.
James Turner [Sun, 3 Feb 2013 22:24:40 +0000 (22:24 +0000)]
Change the way the nav-cache is rebuilt.

Instead of deleting all table contents, actually remove the entire file on disk and re-create. This is fractionally more work, but removes any possibility of stale indices or missing deletes causing clutter after rebuilds. My suspicion is, this is cause the erratic performance some people have seen with the airports search dialog, so will back-port to 2.10.

11 years agoAppend major/minor version to autosave file name.
James Turner [Sun, 3 Feb 2013 16:57:31 +0000 (16:57 +0000)]
Append major/minor version to autosave file name.

Ensure that new minor versions get a clean autosave file. In practice
this means settings from 2.10 and 2.11 would co-exist, for example.

11 years agoUpdate for tweaked SGPickCallback API.
James Turner [Sun, 3 Feb 2013 16:34:36 +0000 (16:34 +0000)]
Update for tweaked SGPickCallback API.

(Requires corresponding SimGear commit)

11 years agoInitial work on state-machine AP module.
James Turner [Fri, 25 Jan 2013 08:34:57 +0000 (09:34 +0100)]
Initial work on state-machine AP module.

11 years agoFix numeric keypad support on Mac.
James Turner [Thu, 31 Jan 2013 18:42:34 +0000 (18:42 +0000)]
Fix numeric keypad support on Mac.

Comments in the code imply osgViewer always sends 'num-lock'-off codes, but that is not the observed behaviour with Cocoa. So adding mappings for the num-locked codes on Mac, which is what people actually want at the moment.

11 years agoExpose some methods on strings to Nasal
Thomas Geymayer [Thu, 31 Jan 2013 18:14:14 +0000 (19:14 +0100)]
Expose some methods on strings to Nasal

11 years agoSet preview mode when using --fgviewer
James Turner [Thu, 31 Jan 2013 16:51:06 +0000 (16:51 +0000)]
Set preview mode when using --fgviewer

11 years agoGuard libudev include with extern "C".
James Turner [Wed, 30 Jan 2013 20:49:50 +0000 (20:49 +0000)]
Guard libudev include with extern "C".

11 years agoDidn't mean to add this (yet), removing.
James Turner [Tue, 29 Jan 2013 15:04:20 +0000 (15:04 +0000)]
Didn't mean to add this (yet), removing.

11 years agoBug #385 - enable the Ati viewport hack on next.
James Turner [Mon, 28 Jan 2013 23:35:44 +0000 (23:35 +0000)]
Bug #385  - enable the Ati viewport hack on next.

Enabling this hack by default, to assess the impact for everyone. Should fix the issue for Ati Catalyst 11.5 users, and hopefully no impact for everyone else. All feedback appreciated. Set /sim/ati-viewport-hack to false if you think this option might be causing issues for you (and then tell James, ASAP)

11 years agoReturn double precision float as requested in generic/binary protocol.
Michał Gawron [Sun, 27 Jan 2013 14:06:15 +0000 (15:06 +0100)]
Return double precision float as requested in generic/binary protocol.

11 years agocalculate /systems/pitot/total-pressure on the bases of /velocities/mach
Eric van den Berg [Mon, 26 Nov 2012 17:59:48 +0000 (18:59 +0100)]
calculate /systems/pitot/total-pressure on the bases of /velocities/mach
added measured-total-pressure property to account for a normal
shockwave in front of pitot tube at supersonic speeds. momentarily not
used
small unit conversion correction of inHg to hPa in altimeter
Base airspeed calculations on impact pressure in instrumentation
/airspeed_indicator

11 years agoWork-around a JSBSim reset issue following the sync.
James Turner [Mon, 28 Jan 2013 12:54:21 +0000 (12:54 +0000)]
Work-around a JSBSim reset issue following the sync.

Thanks to Ron Jensen for the catch. I've added a comment so we know to update this on the next JSBSim sync.

11 years agoBoo, typo.
James Turner [Sat, 26 Jan 2013 14:44:03 +0000 (14:44 +0000)]
Boo, typo.

11 years agoSupport optionally embedding simgear.
James Turner [Sat, 26 Jan 2013 14:32:18 +0000 (15:32 +0100)]
Support optionally embedding simgear.

11 years agoJoystick/dialog caches, commit the transactions.
James Turner [Fri, 25 Jan 2013 08:30:31 +0000 (09:30 +0100)]
Joystick/dialog caches, commit the transactions.

11 years agoWrap dialog and joystick stat-cache in a transaction.
James Turner [Thu, 24 Jan 2013 08:27:09 +0000 (09:27 +0100)]
Wrap dialog and joystick stat-cache in a transaction.

Should improve startup times when the cache is rebuilt.

11 years agoKill off obsolete helper class in GPS code.
James Turner [Tue, 22 Jan 2013 17:42:24 +0000 (18:42 +0100)]
Kill off obsolete helper class in GPS code.

11 years agoFix initialization order
Thomas Geymayer [Tue, 22 Jan 2013 19:33:17 +0000 (20:33 +0100)]
Fix initialization order

11 years agoTolerate old blocks support in 10.6 compiler.
James Turner [Tue, 22 Jan 2013 17:33:16 +0000 (18:33 +0100)]
Tolerate old blocks support in 10.6 compiler.

11 years agoFix for namespace scope.
James Turner [Tue, 22 Jan 2013 17:15:19 +0000 (18:15 +0100)]
Fix for namespace scope.

11 years agoUse the aircraft position helper.
James Turner [Tue, 22 Jan 2013 17:15:05 +0000 (18:15 +0100)]
Use the aircraft position helper.

11 years agoMake radar-altimeter indépendant of wxradar.
James Turner [Sun, 20 Jan 2013 09:22:41 +0000 (10:22 +0100)]
Make radar-altimeter indépendant of wxradar.

11 years agosync with JSBSim
Torsten Dreyer [Sat, 19 Jan 2013 21:32:55 +0000 (22:32 +0100)]
sync with JSBSim

11 years agoTweaking syntax for 10.6 block locals.
James Turner [Sat, 19 Jan 2013 18:05:35 +0000 (18:05 +0000)]
Tweaking syntax for 10.6 block locals.

11 years agoMake it all work with existing FileSelector API.
James Turner [Sat, 19 Jan 2013 16:23:05 +0000 (16:23 +0000)]
Make it all work with existing FileSelector API.

11 years agoCocoa: use a window-sheet, and fire the callback.
James Turner [Fri, 28 Dec 2012 17:27:38 +0000 (17:27 +0000)]
Cocoa: use a window-sheet, and fire the callback.

11 years agoInitial work on native file dialog support.
James Turner [Fri, 28 Dec 2012 14:48:19 +0000 (14:48 +0000)]
Initial work on native file dialog support.

Add an abstract interface, version that forwards to the existing PUI dialog, and a Cocoa-native version.

11 years agoIncrease the nav-cache in-memory cache size.
James Turner [Sat, 19 Jan 2013 13:58:22 +0000 (13:58 +0000)]
Increase the nav-cache in-memory cache size.

(Avoid thrash in certain cases)

11 years agoBump version to 2.11.0
Torsten Dreyer [Thu, 17 Jan 2013 18:22:35 +0000 (19:22 +0100)]
Bump version to 2.11.0

11 years agoNavCache: fix an issue reloading ground-nets.
James Turner [Sun, 6 Jan 2013 20:34:34 +0000 (20:34 +0000)]
NavCache: fix an issue reloading ground-nets.

AndersG noticed an issue when a ground-net file is edited. The DROP commands prior to the reload were wrong, fixed now to delete all ground-net entries before the file is read.

11 years agoAllow ND rules to occur in the symbols file.
James Turner [Wed, 2 Jan 2013 17:07:28 +0000 (17:07 +0000)]
Allow ND rules to occur in the symbols file.

11 years agoFix runway elevations when threshold.xml is used.
James Turner [Tue, 1 Jan 2013 20:58:42 +0000 (20:58 +0000)]
Fix runway elevations when threshold.xml is used.

SGGeodesy::direct doesn't preserve elevations, oops.

11 years agoTweak normalisation of route-path segments.
James Turner [Tue, 1 Jan 2013 13:49:12 +0000 (13:49 +0000)]
Tweak normalisation of route-path segments.

KATL -> KLAX looks correct now. Great-circles that span the 180-meridian are still rendered wrong, but that's a map projection issues, which I will fix in the next few days.

11 years agoFix canvas gui size sometimes not initialized correct
Thomas Geymayer [Tue, 1 Jan 2013 12:45:45 +0000 (13:45 +0100)]
Fix canvas gui size sometimes not initialized correct

11 years agoAutopilot: rename parameter, no functional change
Torsten Dreyer [Mon, 31 Dec 2012 21:21:30 +0000 (22:21 +0100)]
Autopilot: rename parameter, no functional change

11 years agoAutopilot: initialize the derivative filter
Torsten Dreyer [Mon, 31 Dec 2012 20:27:13 +0000 (21:27 +0100)]
Autopilot: initialize the derivative filter

Dont let the derivative filter emit a spike on init or reset if the input
value is non-zero. This is a potential fix for #973.

11 years agoFix compilation on some platforms.
James Turner [Mon, 31 Dec 2012 20:13:26 +0000 (20:13 +0000)]
Fix compilation on some platforms.

No idea why I don't need this on Mac - differing Boost versions?

11 years agoFlightplan delegate hook for clearing the FP.
James Turner [Mon, 31 Dec 2012 17:39:52 +0000 (17:39 +0000)]
Flightplan delegate hook for clearing the FP.

This allows delegates to take action when the flightlan is cleared, and especially, for the default delegate in the route-manager to deactivate itself, and hence the GPS LEG mode - which fixes bug 940 I hope.

11 years agoFix route-path display of long legs.
James Turner [Mon, 31 Dec 2012 17:21:05 +0000 (17:21 +0000)]
Fix route-path display of long legs.

When leg spans more than a threshold (currently 0.5 degrees) of longitude, interpolate the actual path flown by the GPS/RM, which is a true great-circle. Previous we rendered a Rhumb line which does not agree at all. (Especially noticeable in the MapWidget and NavDisplay code, both of which use RoutePath to tesselate the route before rendering)

11 years agoExpose an additional flight plan leg data to Nasal.
James Turner [Mon, 31 Dec 2012 11:46:36 +0000 (11:46 +0000)]
Expose an additional flight plan leg data to Nasal.

11 years agoNavDisplay: time-bound the spatial query.
James Turner [Sun, 30 Dec 2012 17:01:48 +0000 (17:01 +0000)]
NavDisplay: time-bound the spatial query.

At large search ranges (320 or 640NM range on the 777), the search time can blow up, especially if distant airports are being loaded. Add a time-bounded spatial query, and use it, so performance stays tolerable.

11 years agoFix auto-routing by airways.
James Turner [Sun, 30 Dec 2012 16:12:11 +0000 (16:12 +0000)]
Fix auto-routing by airways.

When the from and to points are not on the enroute structure, check the initial and final legs for large turns (more than 90-degrees) from the overall route course. If found, kill the leg, to generate more natural route and avoid very sharp turns in the terminal area.

11 years agoNicer default SID and approach procedures.
James Turner [Sun, 30 Dec 2012 15:37:25 +0000 (15:37 +0000)]
Nicer default SID and approach procedures.

Note these are still generic and do NOT take local terrain into account. Don't come crying to me if you fly into nearby terrain because you weren't using a real procedure!

11 years agoMake the GPS quieter at log-level info.
James Turner [Sat, 29 Dec 2012 14:47:23 +0000 (14:47 +0000)]
Make the GPS quieter at log-level info.

11 years agoXMLHTTPRequest: handle network level failures.
James Turner [Sat, 29 Dec 2012 14:37:33 +0000 (14:37 +0000)]
XMLHTTPRequest: handle network level failures.

11 years agoBug 941, lower minimum speed for GPS sequencing.
James Turner [Sat, 29 Dec 2012 13:46:29 +0000 (13:46 +0000)]
Bug 941, lower minimum speed for GPS sequencing.

10kts is fine, apparently some people 'fly' very slowly.

11 years agoBug 974, GPS exceptions at end-of-route.
James Turner [Sat, 29 Dec 2012 13:45:27 +0000 (13:45 +0000)]
Bug 974, GPS exceptions at end-of-route.

One of the two route termination conditions was improperly handled, leading to bad leg/wpt indices and exceptions from the GPS code. Detect passing the final waypoint in a more robust way now.

Also fix the GPS code to avoid turn computation on the final leg.

11 years agoBug #923 : repeatable flag set on input reload.
James Turner [Sat, 29 Dec 2012 12:16:51 +0000 (12:16 +0000)]
Bug #923 : repeatable flag set on input reload.

Clean-up how axes and button bindings are destroyed are re-built on reinit of the FGJoystickInput subsystem, so we get new, cleanly initialised items each time.

11 years agoExpose position along the flight-path to Nasal.
James Turner [Wed, 26 Dec 2012 23:48:19 +0000 (23:48 +0000)]
Expose position along the flight-path to Nasal.

Useful to query a point '100nm before wpt X' from Nasal, especially for VNAV calculations (T/C, T/D).

11 years agoNavDisplay - custom symbol support enabled.
James Turner [Mon, 24 Dec 2012 23:13:18 +0000 (23:13 +0000)]
NavDisplay - custom symbol support enabled.

11 years agoFix altitudes on default SIDs and approaches.
James Turner [Mon, 24 Dec 2012 20:22:58 +0000 (20:22 +0000)]
Fix altitudes on default SIDs and approaches.

Thanks to Hyde for noticing I had set the elevations incorrectly.

11 years agoMake PLAN mode in Boeing NDs possible.
James Turner [Mon, 24 Dec 2012 17:42:23 +0000 (17:42 +0000)]
Make PLAN mode in Boeing NDs possible.

Allow the location of the ND centre to be set from properties instead of always using the acct position.
(I thought I'd supported this option long ago, evidently not)

11 years agoRevised cache transaction handling.
James Turner [Sun, 23 Dec 2012 23:32:53 +0000 (23:32 +0000)]
Revised cache transaction handling.

Use a RAII object to manage cache transactions, and reset queries immediately after they are done, to avoid auto-commit transactions lasting long periods of time. Re-write the commit and step logic to handle SQLITE_BUSY, with progressively increasing waits when there is DB contention (multiple processes accessing the DB).

11 years agoFix a typo.
James Turner [Wed, 19 Dec 2012 10:06:52 +0000 (10:06 +0000)]
Fix a typo.

11 years agofeature freeze for 2.10.0, new version number
Torsten Dreyer [Tue, 18 Dec 2012 20:50:43 +0000 (21:50 +0100)]
feature freeze for 2.10.0, new version number

11 years agoSupport partial all-within-range spatial queries.
James Turner [Tue, 18 Dec 2012 10:23:44 +0000 (10:23 +0000)]
Support partial all-within-range spatial queries.

As an opt-in API, allow clients to request partial results, with a time-bounded cutoff. Use this to keep the MapWidget responsive even when many airports are being added to the cache (e.g., zooming out or panning rapidly when zoomed out)

11 years agoExpose canvas Text::getNearestCursor to Nasal as replacement for old property based...
Thomas Geymayer [Sun, 16 Dec 2012 23:32:02 +0000 (00:32 +0100)]
Expose canvas Text::getNearestCursor to Nasal as replacement for old property based method

11 years agoCanvasEvent: expose event target to Nasal
Thomas Geymayer [Sun, 16 Dec 2012 20:32:05 +0000 (21:32 +0100)]
CanvasEvent: expose event target to Nasal

11 years agopopen/pclose changed to _popen/_pclose for Windows
Frederic Bouvier [Sun, 16 Dec 2012 19:35:50 +0000 (20:35 +0100)]
popen/pclose changed to _popen/_pclose for Windows

11 years agonear and far are reserved keyword under Windows
Frederic Bouvier [Sun, 16 Dec 2012 19:30:10 +0000 (20:30 +0100)]
near and far are reserved keyword under Windows

11 years agoAdd fgviewer missing includes.
Thomas Geymayer [Sun, 16 Dec 2012 18:19:31 +0000 (19:19 +0100)]
Add fgviewer missing includes.