fg:flightgear.git
9 years agoMapWidget: Show counties and towns as well, depending on the zoom.
Christian Schmitt [Tue, 5 Mar 2013 17:24:44 +0000 (18:24 +0100)]
MapWidget: Show counties and towns as well, depending on the zoom.
Some colors added.

9 years agoParse geod/position and use it with new airportinfo.
Thomas Geymayer [Tue, 5 Mar 2013 16:29:48 +0000 (17:29 +0100)]
Parse geod/position and use it with new airportinfo.

9 years agoFix updating of mouse position props.
James Turner [Tue, 5 Mar 2013 14:31:58 +0000 (14:31 +0000)]
Fix updating of mouse position props.

Some cockpits rely on mouse position props being updated even when using a dragged pick-callback. Thanks to Clement for noticing. Re-structured so however we process the mouse (PUI, pick-callback, normal motion), we always update the props.

9 years agoStray debug message, remove.
James Turner [Tue, 5 Mar 2013 14:29:14 +0000 (14:29 +0000)]
Stray debug message, remove.

9 years agoFix crash starting at heliport.
James Turner [Tue, 5 Mar 2013 13:19:10 +0000 (13:19 +0000)]
Fix crash starting at heliport.

Don't assume FGAirports have runways, they might only have helipads.

9 years agoMore explicit check for cursor feedback.
James Turner [Tue, 5 Mar 2013 08:40:17 +0000 (08:40 +0000)]
More explicit check for cursor feedback.

9 years agoMouseInput changes to support hover.
James Turner [Sat, 9 Feb 2013 16:05:54 +0000 (16:05 +0000)]
MouseInput changes to support hover.

This adds the framework for platform cursor implementations; Windows and X11 to be done.
It also extend the mouse-input code to generate hover events suitable for driving tooltips.

Note there should be no visible functionality change from this commit, since everything
is inactive until fgdata changes are made.

9 years agoFinish porting airportinfo to cppbind
Thomas Geymayer [Mon, 4 Mar 2013 22:14:26 +0000 (23:14 +0100)]
Finish porting airportinfo to cppbind

9 years agoReport std::exception in main loop
Thomas Geymayer [Mon, 4 Mar 2013 22:13:36 +0000 (23:13 +0100)]
Report std::exception in main loop

9 years agoStart porting NasalPositioned to cppbind.
Thomas Geymayer [Mon, 4 Mar 2013 18:24:47 +0000 (19:24 +0100)]
Start porting NasalPositioned to cppbind.

For now it is available in the positioned Nasal
module. FGAirport is fully ported, but especially
procedures/navaids and free functions are still
missing.

9 years agoClean up/prepare for porting NasalPositioned to cppbind
Thomas Geymayer [Mon, 4 Mar 2013 15:31:37 +0000 (16:31 +0100)]
Clean up/prepare for porting NasalPositioned to cppbind

9 years agoMapWidget: make use of the new POI system and display cities on the map.
Christian Schmitt [Sun, 3 Mar 2013 23:27:12 +0000 (00:27 +0100)]
MapWidget: make use of the new POI system and display cities on the map.
This is meant as a preview.

9 years agoNasalCanvas: clean up
Thomas Geymayer [Sun, 3 Mar 2013 19:57:08 +0000 (20:57 +0100)]
NasalCanvas: clean up

9 years agoUpdate for nasal::Ghost changes
Thomas Geymayer [Sun, 3 Mar 2013 14:27:06 +0000 (15:27 +0100)]
Update for nasal::Ghost changes

9 years agoLook for MSVC 3rdparty deps differently.
James Turner [Sun, 3 Mar 2013 16:08:01 +0000 (16:08 +0000)]
Look for MSVC 3rdparty deps differently.

Check for the 3rdparty dir in the parent of build dir, not the parent of the source dir. For the recommended build layout, this is the same location, but for super-builds using fgmeta it's not (and the source tree should not be touched).

If this causes anyone issues, please let me know, since it's possible more flexibility is needed to set the path explicitly.

9 years agoAdd points of interest (POI) database to FGPositioned. Useful for maps and GPS instru...
Christian Schmitt [Sun, 3 Mar 2013 13:17:37 +0000 (14:17 +0100)]
Add points of interest (POI) database to FGPositioned. Useful for maps and GPS instruments.

Can display country, city, towns and villages names worldwide.

9 years agoPositioned/Cache tweaks to support PoIs.
James Turner [Sat, 2 Mar 2013 13:44:20 +0000 (13:44 +0000)]
Positioned/Cache tweaks to support PoIs.

In preparation for adding POI data, extend the FGPositioned type enum, and the cache code to handle arbitrary POI types. (Adding more in the future is straightforward now)

Also support removing user waypoints, which was requested by the Garmin G196 developers.

9 years agoExpose more runway methods to Nasal
Christian Schmitt [Thu, 28 Feb 2013 20:33:32 +0000 (21:33 +0100)]
Expose more runway methods to Nasal

9 years agoFix missing includes
Christian Schmitt [Thu, 28 Feb 2013 19:16:26 +0000 (20:16 +0100)]
Fix missing includes

9 years agoRemove isReciprocal from FGRunway.
James Turner [Thu, 28 Feb 2013 18:21:23 +0000 (18:21 +0000)]
Remove isReciprocal from FGRunway.

This was a bogus concept, either runways have a reciprocal or not (if singled-ended), really this was simply exposing an artefact of the apt.dat encoding. Change to an API which gives what is actually wanted - the ability to extract an airport's runways without any reciprocals included.

9 years agoConvert runway parser and all internals to metric units and 2 runway ends.
Christian Schmitt [Thu, 21 Feb 2013 21:47:01 +0000 (22:47 +0100)]
Convert runway parser and all internals to metric units and 2 runway ends.

This eliminates many conversations between ft and m and gives us runway start/end
points that are needed for many calculations. Also, this prepares the internals for
the upcoming apt.dat 850+ format that uses the metric system as well as start/end points.

9 years agoupdate gitignore
Christian Schmitt [Wed, 27 Feb 2013 10:36:37 +0000 (11:36 +0100)]
update gitignore

9 years agoCanvas Window: use new CanvasImage method to handle events
Thomas Geymayer [Thu, 28 Feb 2013 00:15:44 +0000 (01:15 +0100)]
Canvas Window: use new CanvasImage method to handle events

9 years agoExpose heliports to Nasal for future use in maps
Christian Schmitt [Thu, 21 Feb 2013 15:14:44 +0000 (16:14 +0100)]
Expose heliports to Nasal for future use in maps

9 years agoCanvasWidget: automatically set auto-viewport.
Thomas Geymayer [Mon, 25 Feb 2013 14:39:30 +0000 (15:39 +0100)]
CanvasWidget: automatically set auto-viewport.

If no viewport dimensions are given the viewport
will now automatically resize, otherwise it stays
unchanged.

9 years agoCanvasWidget: add auto-viewport property.
Thomas Geymayer [Mon, 25 Feb 2013 14:30:01 +0000 (15:30 +0100)]
CanvasWidget: add auto-viewport property.

The auto-viewport property allows to disable automatic
update of the canvas viewport update upon resizing
the PUI canvas widget.

9 years agoapt_loader.cxx: 810 helipads are now treated as such internally
Christian Schmitt [Sun, 24 Feb 2013 21:18:49 +0000 (22:18 +0100)]
apt_loader.cxx: 810 helipads are now treated as such internally

9 years agoapt_loader.cxx: update version parsing to 4-digit versions,
Christian Schmitt [Sun, 24 Feb 2013 21:03:29 +0000 (22:03 +0100)]
apt_loader.cxx: update version parsing to 4-digit versions,
some tweaks according to the spec.

9 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.

9 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.

9 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]

9 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+

9 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

9 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

9 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

9 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

9 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

9 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

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

Patch by Roland Haeder

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

Contributed by Roland Haeder

9 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.

9 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.

9 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

9 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.

9 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.

9 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

9 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.

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

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

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

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

9 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

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

9 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).

9 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.

9 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.

9 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

9 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").

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

9 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.

9 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.

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

9 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.

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

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

9 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

9 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.

9 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.

9 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)

9 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.

9 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.

9 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

9 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

9 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".

9 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.

9 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)

9 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.

9 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

9 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.

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

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

9 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.

9 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.

9 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.

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

9 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.

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

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

9 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.

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

9 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.

9 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.

9 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.

9 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.

9 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)

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

9 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.

9 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.

9 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.

9 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.