jmt
053d405a5c
GPS: make 'loadRouteWaypoint' robust about bad scratch/index values.
2009-12-22 07:44:24 +01:00
jmt
52905875f9
Fix airportinfo() ILS frequency listing to use underscores.
2009-12-22 07:44:12 +01:00
jmt
d3d17d9ec0
Fix GPS SGPropertyNode tie() handling, as suggested by John Denker.
2009-12-22 07:42:14 +01:00
jmt
88dc75695b
Probably best if the string and its length agree. :)
2009-12-20 08:44:50 +01:00
jmt
3180d5f4f2
Add runway ILS frequency to Nasal airportinfo() query, as discussed on the list.
2009-12-20 08:44:47 +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
35cb89626e
As discussed on the mailing list, make the 'nearest' GPS command use scratch lat/lon as the search origin if they are valid.
2009-12-12 00:11:41 +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
6a4e458af9
In the route-manager, track the departure and destination airport objects
...
* Expose the airport names as properties
* Use tied properties to simplify the code
2009-11-07 09:00:36 +01:00
jmt
9cdcd76c6b
Make Nasal airportinfo() tolerant of invalid airport idents.
2009-11-07 08:57:57 +01:00
jmt
ecfe4eb21b
Check one potential source of the prime-meridian crash.
2009-11-04 23:12:59 +01:00
jmt
6593d6c065
Bugfix - don't exclude seaports or heliports when looking up by ICAO.
2009-10-28 23:22:32 +01:00
jmt
53b16caec0
Check for an empty search query in GPS searches, and fix test code.
2009-10-27 22:22:03 +01:00
jmt
8ace3a12ba
Better idents for waypoints defined by lon/lat.
2009-10-26 22:12:20 +01:00
jmt
57d8dca176
Fix for an uninitialised value, reported by Dave Luff.
2009-10-22 23:21:34 +02:00
jmt
9495c2efdf
Route tweaks, especially in-flight activation and deactivation
...
* Don't require a valid departure and destination airport
* Handle in-air route activation cleanly
* Handle end-of-route situation cleanly
2009-10-22 23:21:25 +02:00
jmt
08039f1fa5
Tweak permitted indices for GPS route insert commands.
2009-10-21 16:28:14 +02:00
jmt
2a86384da7
GPS commands to edit the route manager route.
2009-10-21 16:28:01 +02:00
jmt
069b26bbb8
Make panel-IO quieter.
2009-10-19 23:56:51 +02:00
jmt
71a9e3d419
HUD tweak - don't show cross-track error if it's (effectively) zero.
2009-10-19 23:56:51 +02:00
jmt
332e7fc59b
GPS data validity clean-up; it was a mess, now it's more robust. Thanks to Dave Luff for reporting.
2009-10-19 23:56:51 +02:00
jmt
87141b47a7
Fix route-manager / GPS sequencing interaction; tied properties need help to fire listeners.
2009-10-19 23:56:51 +02:00
jmt
1a05ed6b3d
Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton.
2009-10-19 23:56:51 +02:00
jmt
afb1e7ffe9
Further GPS and route manager behavioural fixes
...
* When the nav-radio is slaved, calculated radial/target-hdg-deg
(needed by some autopilot logic)
* Handle editing (including deletion) of route waypoints correctly,
including deleting the active waypoint
* Add a signal to the route manager when the last wpt is reached, and
use it in the GPS to revert to OBS mode.
* Change the altitude handling to use the specified cruise altitude
* Fix a bug where autopilot/locks/altitude was treated as a boolean
2009-10-16 11:24:36 +02:00
jmt
a865555fed
Route-manager: remove any interaction with the autopilot, or internal sequencing; assume the GPS always handles this (it should, now). Also fix waypoint altitude handling, which was broken. If not altitude is supplied for a waypoint, default to the requested cruise altitude.
2009-10-14 11:44:27 +02:00
jmt
879531ce63
Make the GPS drive the autopilot directly (if configured), also update external course (OBS) source, and init at the current airport.
2009-10-14 00:42:37 +02:00
jmt
5aa51e5780
Ensure we always create a GPS instrument.
2009-10-14 00:42:37 +02:00
jmt
093e267091
Make the HUD show GPS state, instead of RM state.
2009-10-14 00:42:36 +02:00
jmt
d4cc5f9c44
Change default airport search to exclude seaports and heliports, for the moment.
2009-10-14 00:42:36 +02:00
jmt
110dd605a0
Fix unrealistic-but-convenient direct-drive from the route-manager to the autopilot code. A new boolean config prop, 'drive-autopilot' exists, to disable this behaviour.
2009-10-12 07:56:15 +02:00
jmt
bde366e0e3
Make GPS slaved mode on the navradio slightly more robust. Not done yet.
2009-10-12 07:55:51 +02:00
jmt
3637482916
Fix various route-manager issues - HUD display of waypoints, some potential divide-by-zeroes when paused or stationary, and Win32 compilation.
2009-10-12 07:54:09 +02: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
cb6647ff13
Fix an issue which VC90 warns about - using 'this' in initialiser lists.
2009-10-07 08:26:23 +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
72d9c254f4
Numerical robustness for the GPS code, when dt or last_speed_kts is zero.
2009-10-07 08:26:00 +02:00
Tim Moore
696007e503
include header for auto_ptr
2009-10-06 11:20:19 +02:00
jmt
d784810430
Land the GPS/route-manager re-write. Many things are better, many other things will be better, some things are no doubt broken. Please be patient and report problems on the mailing list.
2009-10-06 10:44:01 +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
torsten
eb8dd47971
Alex Buzin: Fix wrong calculation of temperature and dewpoint
2009-09-22 22:51:46 +02:00
torsten
3714a0ef51
Fix the temperature computation.
2009-09-20 22:51:36 +02:00