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.
Thomas Geymayer [Tue, 5 Mar 2013 16:29:48 +0000 (17:29 +0100)]
Parse geod/position and use it with new airportinfo.
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.
James Turner [Tue, 5 Mar 2013 14:29:14 +0000 (14:29 +0000)]
Stray debug message, remove.
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.
James Turner [Tue, 5 Mar 2013 08:40:17 +0000 (08:40 +0000)]
More explicit check for cursor feedback.
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.
Thomas Geymayer [Mon, 4 Mar 2013 22:14:26 +0000 (23:14 +0100)]
Finish porting airportinfo to cppbind
Thomas Geymayer [Mon, 4 Mar 2013 22:13:36 +0000 (23:13 +0100)]
Report std::exception in main loop
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.
Thomas Geymayer [Mon, 4 Mar 2013 15:31:37 +0000 (16:31 +0100)]
Clean up/prepare for porting NasalPositioned to cppbind
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.
Thomas Geymayer [Sun, 3 Mar 2013 19:57:08 +0000 (20:57 +0100)]
NasalCanvas: clean up
Thomas Geymayer [Sun, 3 Mar 2013 14:27:06 +0000 (15:27 +0100)]
Update for nasal::Ghost changes
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.
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.
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.
Christian Schmitt [Thu, 28 Feb 2013 20:33:32 +0000 (21:33 +0100)]
Expose more runway methods to Nasal
Christian Schmitt [Thu, 28 Feb 2013 19:16:26 +0000 (20:16 +0100)]
Fix missing includes
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.
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.
Christian Schmitt [Wed, 27 Feb 2013 10:36:37 +0000 (11:36 +0100)]
update gitignore
Thomas Geymayer [Thu, 28 Feb 2013 00:15:44 +0000 (01:15 +0100)]
Canvas Window: use new CanvasImage method to handle events
Christian Schmitt [Thu, 21 Feb 2013 15:14:44 +0000 (16:14 +0100)]
Expose heliports to Nasal for future use in maps
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.
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.
Christian Schmitt [Sun, 24 Feb 2013 21:18:49 +0000 (22:18 +0100)]
apt_loader.cxx: 810 helipads are now treated as such internally
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.
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.
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.
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]
Christian Schmitt [Wed, 20 Feb 2013 22:35:32 +0000 (23:35 +0100)]
Add support for helipads from apt.dat 850+
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
Yves Sablonier [Sat, 16 Feb 2013 23:06:03 +0000 (00:06 +0100)]
Adding directive for osx sdk 10.5 in ClipBoardCocoa.mm
F-JJTH [Fri, 15 Feb 2013 23:03:40 +0000 (00:03 +0100)]
Display RTI status like it's done in Simgear
hooray [Mon, 4 Feb 2013 16:35:39 +0000 (17:35 +0100)]
fg mingw fixes part #1
Conflicts:
src/Main/bootstrap.cxx
Thomas Geymayer [Wed, 13 Feb 2013 11:10:25 +0000 (12:10 +0100)]
Ignore events if canvas::Window is not visible
Thomas Geymayer [Tue, 12 Feb 2013 16:38:46 +0000 (17:38 +0100)]
Make compiling of all utils/tools optional
James Turner [Mon, 11 Feb 2013 22:16:02 +0000 (22:16 +0000)]
Fix ADA compilation.
Patch by Roland Haeder
James Turner [Mon, 11 Feb 2013 22:15:23 +0000 (22:15 +0000)]
File mode fixes.
Contributed by Roland Haeder
James Turner [Mon, 11 Feb 2013 12:51:54 +0000 (12:51 +0000)]
Typo fix, pointed out by Emillian.
James Turner [Sun, 10 Feb 2013 13:35:58 +0000 (13:35 +0000)]
Allow HOME to be undefined, as on Windows.
James Turner [Sun, 10 Feb 2013 11:53:42 +0000 (11:53 +0000)]
Work-around a clang glitch with 10.6
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.
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.
Frederic Bouvier [Sat, 9 Feb 2013 16:40:01 +0000 (17:40 +0100)]
Include file only needed by MSVC
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.
Frederic Bouvier [Sat, 9 Feb 2013 16:24:44 +0000 (17:24 +0100)]
Fix windows build
James Turner [Sat, 9 Feb 2013 15:33:13 +0000 (15:33 +0000)]
Fix a GCC warning.
James Turner [Sat, 9 Feb 2013 15:33:05 +0000 (15:33 +0000)]
Split huge NasalSys header apart.
James Turner [Sat, 9 Feb 2013 15:31:43 +0000 (15:31 +0000)]
Fix compilation.
James Turner [Sat, 9 Feb 2013 14:27:15 +0000 (14:27 +0000)]
Merge branch 'next' of gitorious.org:fg/flightgear into next
Mathias Froehlich [Sat, 9 Feb 2013 07:53:34 +0000 (08:53 +0100)]
fix compile with fgai
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).
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.
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.
Frederic Bouvier [Fri, 8 Feb 2013 07:46:34 +0000 (08:46 +0100)]
Fix build for windows after logstream changes
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").
Christian Schmitt [Thu, 7 Feb 2013 18:00:54 +0000 (19:00 +0100)]
Some headers missing... ;)
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.
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.
James Turner [Wed, 6 Feb 2013 18:05:45 +0000 (19:05 +0100)]
Adapt to revised logging API.
James Turner [Wed, 6 Feb 2013 18:05:33 +0000 (19:05 +0100)]
Log to file inside FG_HOME.
James Turner [Wed, 6 Feb 2013 18:05:08 +0000 (19:05 +0100)]
Remove un-needed header.
James Turner [Wed, 6 Feb 2013 18:04:51 +0000 (19:04 +0100)]
Make various PUI widgets private.
Thomas Geymayer [Wed, 6 Feb 2013 00:22:44 +0000 (01:22 +0100)]
Reapply canvas placements upon aircraft-model reinit
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.
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.
James Turner [Sun, 3 Feb 2013 16:34:36 +0000 (16:34 +0000)]
Update for tweaked SGPickCallback API.
(Requires corresponding SimGear commit)
James Turner [Fri, 25 Jan 2013 08:34:57 +0000 (09:34 +0100)]
Initial work on state-machine AP module.
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.
Thomas Geymayer [Thu, 31 Jan 2013 18:14:14 +0000 (19:14 +0100)]
Expose some methods on strings to Nasal
James Turner [Thu, 31 Jan 2013 16:51:06 +0000 (16:51 +0000)]
Set preview mode when using --fgviewer
James Turner [Wed, 30 Jan 2013 20:49:50 +0000 (20:49 +0000)]
Guard libudev include with extern "C".
James Turner [Tue, 29 Jan 2013 15:04:20 +0000 (15:04 +0000)]
Didn't mean to add this (yet), removing.
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)
Michał Gawron [Sun, 27 Jan 2013 14:06:15 +0000 (15:06 +0100)]
Return double precision float as requested in generic/binary protocol.
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
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.
James Turner [Sat, 26 Jan 2013 14:44:03 +0000 (14:44 +0000)]
Boo, typo.
James Turner [Sat, 26 Jan 2013 14:32:18 +0000 (15:32 +0100)]
Support optionally embedding simgear.
James Turner [Fri, 25 Jan 2013 08:30:31 +0000 (09:30 +0100)]
Joystick/dialog caches, commit the transactions.
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.
James Turner [Tue, 22 Jan 2013 17:42:24 +0000 (18:42 +0100)]
Kill off obsolete helper class in GPS code.
Thomas Geymayer [Tue, 22 Jan 2013 19:33:17 +0000 (20:33 +0100)]
Fix initialization order
James Turner [Tue, 22 Jan 2013 17:33:16 +0000 (18:33 +0100)]
Tolerate old blocks support in 10.6 compiler.
James Turner [Tue, 22 Jan 2013 17:15:19 +0000 (18:15 +0100)]
Fix for namespace scope.
James Turner [Tue, 22 Jan 2013 17:15:05 +0000 (18:15 +0100)]
Use the aircraft position helper.
James Turner [Sun, 20 Jan 2013 09:22:41 +0000 (10:22 +0100)]
Make radar-altimeter indépendant of wxradar.
Torsten Dreyer [Sat, 19 Jan 2013 21:32:55 +0000 (22:32 +0100)]
sync with JSBSim
James Turner [Sat, 19 Jan 2013 18:05:35 +0000 (18:05 +0000)]
Tweaking syntax for 10.6 block locals.
James Turner [Sat, 19 Jan 2013 16:23:05 +0000 (16:23 +0000)]
Make it all work with existing FileSelector API.
James Turner [Fri, 28 Dec 2012 17:27:38 +0000 (17:27 +0000)]
Cocoa: use a window-sheet, and fire the callback.
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.
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)
Torsten Dreyer [Thu, 17 Jan 2013 18:22:35 +0000 (19:22 +0100)]
Bump version to 2.11.0
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.
James Turner [Wed, 2 Jan 2013 17:07:28 +0000 (17:07 +0000)]
Allow ND rules to occur in the symbols file.
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.
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.