Tim Moore
6044d929d4
eliminate some SGPropertyNode_ptr variables in classes
...
These were temporary variables that were being deleted explicitly, leading to
various corruption.
2010-01-26 17:19:17 +01:00
Tim Moore
13ec36af42
Merge branch 'jmt/gps'
2010-01-17 10:52:48 +01:00
ehofman
8da2f1a31b
Use SGPropertyNode_ptr wherever possible
2010-01-17 00:03:06 +01:00
Tim Moore
c1bb4aec97
Merge branch 'vivian/trainz'
2010-01-17 00:02:51 +01:00
jmt
10d4799058
GPS: improve reliability (at the expense of some in-development features) for pending release.
...
- default to an invalid altitude in routes, instead of cruise altitude (temporarily)
- only set an altitude on the autopilot, if valid
- only add departure airport/runway to the route, if not airborne
2010-01-16 16:00:15 +01:00
jmt
21f1fcd17a
GPS:
...
- relaxed overflight sequencing threshold
- default to linear CDI deviation in the configuration
2010-01-16 16:00:15 +01:00
Tim Moore
cf9a520a9f
Merge branch 'curt/navradio'
...
Conflicts:
src/Instrumentation/navradio.cxx
2010-01-13 07:37:44 +01:00
Tim Moore
3836abcf4b
Merge branches 'jmt/spatial', 'jmt/ref_ptr', 'jmt/navradio' and 'jmt/gps'
2010-01-12 00:09:19 +01:00
torsten
149c6acc85
purge gcc warnings:
...
- xxx will be initialized after yyy
- age_factor may be used uninitialized
2010-01-03 10:35:33 +01:00
jmt
38e76a175e
Navradio: constructor cleanup, tie/untie helper, and a new 'operable' property to make it clear when the radio is functioning.
2009-12-27 10:03:08 +01:00
jmt
7a007d9638
OSG ref_ptr fix: use .get() explicitly.
2009-12-27 09:32:18 +01:00
jmt
8cfdfb21a5
GPS / route-manager: only drive autopilot true-heading in LEG mode, for compatibility with the old behaviour.
2009-12-23 09:40:58 +01:00
jmt
053d405a5c
GPS: make 'loadRouteWaypoint' robust about bad scratch/index values.
2009-12-22 07:44:24 +01:00
jmt
d3d17d9ec0
Fix GPS SGPropertyNode tie() handling, as suggested by John Denker.
2009-12-22 07:42:14 +01:00
jmt
45d0e14cad
JSD: Make false courses work for more than one instance of navradio.
2009-12-22 07:41:30 +01:00
Csaba Halasz
41752bab57
Fix NaNs in TACAN::update
2009-12-22 07:16:44 +01:00
Tim Moore
b5c46a8d59
Merge branch 'ehofman/sound'
2009-12-20 11:11:16 +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
curt
ea281051d8
Compute glide slope target rate of climb in fpm as well as fps.
2009-12-18 07:10:13 +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
Tim Moore
582a95f0cb
small cleanup to vivian's patch
2009-12-09 09:23:20 +01:00
Tim Moore
3922c12163
Vivian Meazza: AI escorts
2009-12-09 09:04:23 +01:00
ehofman
fde1a925fe
Change of thoughts since it makes life easier:
...
/sim/sound/working enable/disable the use of OpenAL
/sin/sound/enabled master mute/unmute
2009-11-30 22:45:23 +01:00
Tim Moore
6fcd9f967b
Merge branch 'luff/kln89'
2009-11-27 06:41:43 +01:00
Tim Moore
e503591af4
Merge branch 'jmt/gps'
...
Conflicts:
src/Instrumentation/gps.cxx
2009-11-27 06:40:47 +01:00
jmt
33058511de
Dave Perry:
...
Allows using a nasal filter to smoothly park the gs needle when out
of range or frequency changes to a station w/o gs.
2009-11-15 01:31:42 +01:00
daveluff
e1af876a65
Enable correct DTO waypoint selection
2009-11-07 08:56:55 +01:00
daveluff
eb382545c5
Allow all approaches to be selected at airports with more than 3 approaches
2009-11-07 08:56:36 +01:00
Csaba Halasz
52c1061e24
Re-apply the reciprocal patch from cvs rev 1.3 and correct an order of magnitude regression in HeadingIndicatorFG
2009-11-07 07:53:49 +01:00
torsten
58f303e464
Ron Jensen:
...
This little patch makes the KT-70 read 888-8888 when in self-test mode.
This is the correct behavior, the current behavior, where it reads the
flight level and squawk code in self-test is incorrect.
2009-11-06 23:46:02 +01:00
daveluff
24b57ada09
Allow the DIR page to be exited properly using the inner knob
2009-11-04 23:15:48 +01:00
daveluff
00d9abef42
Make the comments about switching to the DIR page more useful
2009-11-04 23:15:41 +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
daveluff
f696c541be
Remove the unecessary distinction between waypoints of the core approach and waypoints of the missed approach procedure
2009-10-27 22:21:52 +01:00
daveluff
0112b24540
Expand SIAP idents as found in FAA ARINC dataset to the full approach name as shown on the approach chart and possibly the GPS
2009-10-24 23:48:54 +02:00
ehofman
430fbe99fa
Use shared pointers for any reference to SGSoundSample
2009-10-24 19:52:09 +02:00
ehofman
f9445874a0
Don't make the SoundManager a memebr of the subsystem manager; It needs to be initialized very early and destroyed as late as possible. That doesn't work as a subsystem meber onless some sort of priority scheme gets implemented. Get rid of auto_ptr which doesn work for the samples either.
2009-10-24 19:51:39 +02: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
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
daveluff
a2401ea94b
Add a hardwired instrument approach for testing. This will be removed and read from file shortly
2009-10-18 17:56:17 +02:00
daveluff
882f5b4deb
My non-precision approach model had been one or more IAFs and then a common core approach from the IF. In fact, there can be one or more initial approach routes from the IAFs to the IF, then the core approach. Replace the IAFs with initial approach routes. NOTE it is assumed in the code that there is a unique IAF per initial approach route.
2009-10-17 23:54:26 +02:00
daveluff
a01bee3817
Change one of the default flight plans to something more convenient for development. These will eventually all be removed from the code and read from preferences anyway.
2009-10-17 23:54:14 +02:00
daveluff
8de8a734a2
Fix a crash where there is only 1 IAF in an approach
2009-10-17 23:54:05 +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
ehofman
a9b3fc7a56
move some of the sound postion and orientation calculations over to the sample class which also makes the main code nice and clean
2009-10-16 11:24:10 +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