James Turner
0931fe332e
Guard against NaN SGGeods in FGPositioned spatial queries, and in the GPS lat/lon reading code.
2010-12-19 16:18:12 +00:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Torsten Dreyer
58fbd0d72a
msvc warning fixes
2010-12-15 16:40:25 +01:00
James Turner
d2bbaa69e0
Change how ils.xml data is loaded, to reduce impact on startup time.
2010-12-07 18:07:50 +00:00
James Turner
f7548fec1f
Fix bug #185 - altitude ignored when adding waypoints to the route.
2010-12-01 23:57:01 +00:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
James Turner
f5c2c630eb
Remove references to old (unused) airways code
2010-10-20 17:54:16 +01:00
James Turner
308fd1b112
Automake build fixes for airways commit.
2010-10-20 11:48:06 +01:00
James Turner
dd2eec7bd8
Airways/procedures code - add new data structures to store waypoints and
...
procedures, and routing algorithms, and modify the GPS, route manager and
WaypointList to use the new objects.
2010-10-20 09:02:02 +01:00
James Turner
8d5021f670
Make ident/name searches on FGPositioned case-insensitive (for the GPS, especially)
2010-08-14 20:24:30 +01:00
James Turner
57cb0a809b
Fix bug 150 (airports not found in GPS search)
...
Overhaul and simplify the GPS search logic based
on experience and testing with the API. Also fix
search-by-name, which was broken.
2010-08-14 19:16:28 +01:00
James Turner
19360a8425
Fix 'using std::' abuses
2010-08-09 08:36:20 +01:00
Torsten Dreyer
2e6d7e111a
gcc warning fixes
2010-06-26 21:24:46 +02:00
James Turner
45fbd8008d
Support ICAO identifiers with more than four characters, in the AirportsList.
2010-05-09 11:11:52 +01:00
frohlich
1797f4cb3e
Use methods from SGMath when possible.
...
Modified Files:
src/Airports/apt_loader.cxx src/Navaids/positioned.cxx
src/Navaids/positioned.hxx
2010-05-05 17:02:27 +02:00
jmt
e4c4a3a412
MapWidget for the GUI, initial commit.
2010-03-28 15:25:47 +02:00
Tim Moore
3836abcf4b
Merge branches 'jmt/spatial', 'jmt/ref_ptr', 'jmt/navradio' and 'jmt/gps'
2010-01-12 00:09:19 +01:00
jmt
718d99f420
Fix for Martin: tolerate runway-associated navaids with a bogus ICAO/runway ident.
2009-12-20 08:39:33 +01:00
James Turner
0637cba24a
Fix findNearest termination - ensure we expand all octree nodes that might contain closer results than the current list.
2009-12-19 23:13:17 +01:00
James Turner
34bbc6d974
Rewrite the spatial index to use a sparse octree on the cartesian coordinates of items.
...
* Fixes errors selecting 'nearest' items, including duplicates
* Stable behaviour around the poles and dateline
* Decently efficient, even for 'everything within 500nm' queries
2009-12-19 23:13:17 +01:00
jmt
c453d1a0cc
Fix reset crash, thanks to Joe: make findNextWithPartial, and the route-manager, robust about people setting NULL / empty airport idents.
2009-12-12 00:11:34 +01:00
jmt
f11572cd64
Case insensitivity for findNextByPartialId.
2009-11-07 09:00:51 +01:00
jmt
ecfe4eb21b
Check one potential source of the prime-meridian crash.
2009-11-04 23:12:59 +01:00
jmt
bc7ac3493e
Refactor airway code to use SGGeod in external APIs. First of various changes to make airways more useful in GPS/FMS modules.
2009-10-08 10:37:21 +02:00
jmt
4b5518808b
Use boost string algorithms to avoid dependence on C-library extensions missing in MSVC. Also they're just nicer.
2009-10-07 08:26:10 +02:00
jmt
2d5924939e
Extend FGPositioned API to support queries by name as well as ident.
2009-10-06 07:29:03 +02:00
jmt
5c2dbb4239
Extender iterative search APIs with a 'has-next' return arg, to enable better iteration UI.
2009-10-06 07:28:38 +02:00
jmt
c08cc9693e
Bugfix use of type checks in FGPositioned::findAllWithIdentSortedByRange
2009-10-04 02:04:18 +02:00
Tim Moore
9ebd19babf
Use boost::to_lower_copy instead of function from simgear
...
The simgear function is about to get removed.
2009-10-01 00:15:37 +02:00
jmt
e1555ba9a5
Positioned support for adding user waypoints.
2009-09-30 08:13:09 +02:00
jmt
5755b7ae0e
Further extensions to FGPositioned to support ongoing GPS work.
2009-09-29 00:01:56 +02:00
jmt
04b30f322d
Extend FGPositioned to allow mapping from a string to a type.
2009-09-29 00:01:47 +02:00
Tim Moore
13ff5da4be
Merge branch 'jmt/reciprocal'
2009-09-23 07:44:02 +02:00
jmt
29f84492a2
Different approach to handling the paired-ILS-on-opposite-runways situation. This uses additional information we now store (in FGRunway) to be more explicit about the behaviour (i.e only look at paired navids), and crucially, does not misbehave near either threshold. Instead it always switches about the runway midpoint (so back-course/missed-approaches are broken as before), leading to stable behaviour when touching down.
...
I am pretty confident this is (was, from FS2004) also the 'solution' taken by MSFS.
2009-09-17 22:51:44 +02:00
jmt
44bc440d32
Associate non-ILS localisers with their runway.
2009-09-17 22:51:44 +02:00
jmt
971e87bb49
Logging: less verbose about navaids we didn't align.
2009-09-17 22:45:30 +02:00
jmt
80e67b17c2
Set runway elevation to the airport elevation, and don't reset ILS/LOC elevation when aligning with runways.
2009-09-09 08:56:31 +02:00
jmt
25c55f67bf
More precise matching of ILS records to navaids.
2009-09-03 00:02:48 +02:00
jmt
294a7b675a
Add support for processing the ICAO.ils.xml scenery data into ILS/LOC nav records.
2009-09-03 00:02:48 +02:00
fredb
862f59aded
Reserve a special FGPositionned type for pavements
2009-06-15 10:29:45 +02:00
jmt
21a8522160
Whoops, type codes for localizers and ILSs were swapped in the nav.dat reader
2009-06-15 10:29:44 +02:00
jmt
86d1e4ea9d
Directly associate runways objects with their ILS navrecord (if one exists)
2009-06-15 10:29:44 +02:00
jmt
83c29b4f43
Fix a bad copy-and-paste bug in namedFindClosest, which broke things in the
...
multiple-matches case.
2009-06-11 16:05:21 +02:00
jmt
a29e5ce666
Remove some remaining non-route-related uses of SGWayPoint.
2009-06-11 16:05:20 +02:00
jmt
6e42458a55
Convert waypoint::CourseAndDistance users to use SGGeodesy helper functions.
2009-06-11 16:05:20 +02:00
jmt
031f9bb33b
Dave Luff's patch to fix findNextWithPartialId
2009-06-11 16:05:19 +02:00
mfranz
b07ad149ae
turn a few #include paths from the "foo" form to <foo>
...
The quotes form is normally only used for headers with path relative
to the including file's path, though the standard doesn't strictly
mandate this. This is consistent with the rest of sg/fg, it makes the
code's intent clearer and helps to find headers. (And it's a few
milliseconds faster, too.)
2009-05-18 12:24:17 +02:00
fredb
1d4aaa2f0d
Compile with VS2005 in debug mode
2009-02-22 23:52:17 +01:00
jmt
9e945e3408
Fix Torsten's crash. A completely cross-platform issue, no idea why it didn't show up in local testing.
2009-01-10 00:07:44 +01:00
jmt
c9e8112a81
Add various helper filters, to make use of type-ranges, and reduce the need
...
to down-cast in filter implementations.
2009-01-10 00:07:01 +01:00