ThorstenB
ebbd5bfd05
fix bug #177 : crash caused by route manager/gps/navradio
...
Uninitialized variables were sources for NaN values.
Once NaNs are passed to Nasal (through (tied) properties), these cause
a crash. Nasal cannot handle NaNs - it interprets these as pointer values...
2010-12-05 20:35:21 +01:00
Dave Luff
7a0c2c2e8a
KLN89: Move some KLN89 specific configuration from dclgps to kln89
2010-12-05 17:36:32 +00:00
Dave Luff
d1601ff8b2
KLN89: Fix ARINC 424 loader for airports with parallel runways.
...
To load approach data into the KLN89, drop an ARINC 424 format file
named "rnav.dat" into the data/Navaids directory. The loader has
been tested on the 424-18 data revision, so may need tweaking for
the latest data. Currently about 97% of the listed US non-precision
approaches are loaded, the majority of the failures appear to be due
to 1-digit runway code offsets between the flightgear airport data
and the ARINC data due to magnetic variation changes.
2010-12-05 10:57:36 +00:00
Dave Luff
316f68cbf1
KLN89: Remove hardwired instrument approach, and add initial support for loading non-precision approaches from ARINC 424 format data. Currently fails on airports with multiple parallel runways.
2010-12-04 16:55:26 +00:00
James Turner
a9a1734f1e
Fix bug 191, uninitialised HUD color.
2010-12-02 00:41:29 +00:00
ThorstenB
7a2e1be5bf
GPWS: change default source to match all FDMs
...
Provide another built-in altitude source to hook a radio-altimeter instrument
2010-12-01 22:57:35 +01:00
Csaba Halasz
c5c895dae2
Merge commit 'refs/merge-requests/14' of git://gitorious.org/fg/flightgear into next
2010-11-30 00:42:34 +01:00
Csaba Halasz
674a295896
Merge commit 'refs/merge-requests/13' of git://gitorious.org/fg/flightgear into next
2010-11-30 00:26:22 +01:00
Torsten Dreyer
f33d26d51c
Warning fix: unused variables
2010-11-26 16:14:43 +01:00
Dave Luff
7ac304398b
KLN89: Small improvement to flightplan page: dash out invalid distances when entering a new waypoint
2010-11-23 18:03:13 +00:00
Dave Luff
438cb4a462
KLN89: Jump to the next position in the flightplan after waypoint entry, as per the real-life unit
2010-11-23 16:29:53 +00:00
Dave Luff
3ac2f000d2
KLN89: Fix small bug in FPL pages due to comparison against a negative quantity with unsigned variables
2010-11-23 16:29:21 +00:00
Dave Luff
c171c44653
KLN89: Allow CLR to abort flightplan waypoint entry at the waypoint review page, as per the real-life unit
2010-11-23 12:21:25 +00:00
Dave Luff
c6276f5845
KLN89: Fix both incorrect behaviour and a segfault when deleting a partially-entered waypoint in the flightplan pages
2010-11-23 10:51:37 +00:00
Dave Luff
c30c183999
KLN89: Fix some bugs in the flightplan page text entry. Basically, draw the text entry string instead of the dummy waypoint ID.
2010-11-23 10:15:10 +00:00
Dave Luff
dbd3e7077d
KLN89: Change to more meaningful function names, and always clear the buffer after drawing.
2010-11-22 22:21:09 +00:00
Dave Luff
cd420dadf7
KLN89: Fix clipping bug affecting the KLN89 map page. Pixels and lines must be clipped when being put into the buffer, since the clip region may change before the buffer is rendered. Also, the wrong DrawPixel function was called from the oldDrawLine function.
2010-11-22 21:34:24 +00:00
Dave Luff
0b941b759a
KLN89: Round properly when converting map points to pixel locations
2010-11-21 20:46:14 +00:00
Dave Luff
95f244b741
KLN89: Update obsolete email address
2010-11-21 17:14:15 +00:00
Dave Luff
34cbe3623b
KLN89: Update obsolete email address
2010-11-21 17:13:41 +00:00
Dave Luff
650483f1d3
KLN89: Cleanup - fix broken indentation and email address, and replace tabs with spaces
2010-11-21 17:05:33 +00:00
Dave Luff
35e63ca406
Fix copy-and-paste error which resulted in right inner knob having left inner knob function whilst setting ID in flightplan pages
2010-11-21 15:56:15 +00:00
Dave Luff
19d94f21e2
Clean up indentation and then replace tabs with spaces
2010-11-21 14:16:43 +00:00
Dave Luff
80badf9fc5
Clarify comments
2010-11-21 09:59:49 +00:00
Vivian Meazza
6ac7271d80
Add oitput to property tree.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-11-19 09:55:36 +00:00
Vivian Meazza
a68b07e67a
Add Alignment settable at runtime, and add movement-induced errors.
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-11-18 23:48:58 +00:00
Vivian Meazza
f51f15eb50
Merge branch 'next' of D:\Git_New\flightgear into next
2010-11-14 22:24:00 +00:00
Frederic Bouvier
3209a4db09
MSVC: ensure that HAVE_VERSION_H always has a value
2010-11-14 15:33:08 +01:00
James Turner
1dbe833579
Use updated version.h if available.
...
Add single fallback header if version.h is missing.
2010-11-13 18:58:55 +00:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
Vivian Meazza
8ec60b663d
Merge branch 'next' of D:\Git_New\flightgear into next
2010-10-29 20:59:01 +01:00
ThorstenB
7dd2cf19e8
Fixed some compiler warnings.
...
Please the compiler (gods).
2010-10-29 21:14:09 +02:00
James Turner
d1a4590721
Goodbye old HUD - and the archeology it depended upon in cockpit.cxx
2010-10-29 08:47:58 +01:00
Vivian Meazza
02fb83c774
Merge branch 'next' of D:\Git_New\flightgear into next
2010-10-28 17:35:03 +01:00
Vivian Meazza
0840b188d2
Re-interpret gyro wander under g-forces
...
Signed-off-by: Vivian Meazza <vivian.meazza@lineone.net>
2010-10-28 17:32:22 +01:00
James Turner
0320010d95
Make use of view[0] in HUD-runway lazy.
2010-10-28 13:54:01 +01:00
James Turner
984900d84d
Make v2 HUD a top-level subsystem, so it can be reinit()ed correctly.
2010-10-24 07:10:02 +01:00
James Turner
3464eef711
Make the v2 HUD support reinit(), so HUDs can be reloaded at runtime.
2010-10-22 19:11:24 +01:00
James Turner
d573cb43a0
Move three more subsystems into the init + update scheme - fixes some crashes found by papillion.
2010-10-22 16:44:37 +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
Tim Moore
f901dac2ac
replace GLU functions with OSG functionality
2010-10-08 23:48:01 +02:00
Thorsten Brehm
a1137ed940
Another GPWS fix: terrain clearance filter must be reset on reset/reposition.
...
Queue of recent altitude samples must be cleared on reset/reposition to avoid nuisance alerts...
2010-10-05 22:34:23 +02:00
Thorsten Brehm
9be636555c
Fixed navradio when shutting down/restarting nav receiver.
...
"nav-loc" and "has_gs" properties were not updated when nav receiver was rebooted.
Shutting down the nav receiver clears all nav outputs (including "nav-loc" and "has_gs").
=> When nav receiver is powered again, all outputs must be updated.
=> "nav-loc" and "has_gs" are only updated when active nav station changes.
=> old nav station must be cleared on shutdown to enforce update on nav reboot...
2010-10-05 22:34:08 +02:00
Thorsten Brehm
e7b58d48e3
Fix wxradar to use path resolution
...
make it work with the new "multiple aircraft dir" feature
2010-10-02 00:40:24 +02:00
James Turner
1afd4e602e
Get rid of FGGeneral; expose equivlanet values via properties.
2010-10-01 09:33:31 +01:00
Thorsten Brehm
c7423cbcea
- Fixed mk-viii sound sample loader: missing "/".
...
- Fixed triggering of debug assertion "altitude_callout_voice != NULL" when
altitude callouts were delayed by higher priority warnings.
- Fixed performance bug: MK_VIII::IOHandler::TerrainClearanceFilter::update
sucked CPU time (top #12 in profiler), due to complex "moving average"
calculation on a queue of hundreds/thousands of altitude samples.
Also, pausing the sim caused this queue to grow excessively (by one sample
per update loop) => resuming the sim after pausing it for a long time
resulted in the TerrainClearanceFilter sucking even more CPU time...
=> Number of altitude samples is now limited to 5 samples/sim-time-second
(still more than enough to calculate a stable average).
2010-09-30 23:18:13 +02:00
James Turner
d5e0bc3b89
Thorsten Brehm:
...
* Fixed segfault when GPWS finds a matching airport but no suitable runway.
* Fixed several sim deadlocks when GPWS alerts trigger at "strange"
heights (e.g. initial alert height is -5ft or 1e-29...).
* Avoid repitition of GPWS alerts below 30ft, i.e. avoid excessive
repitition when plane becomes airborne at bumpy landings.
2010-09-20 09:06:30 +01:00
James Turner
8330449c5f
Pass current-dir into XMLSound
...
(and update to revised SGSoundSample ctor)
2010-09-06 09:28:28 +01:00
James Turner
ae50c054a9
Fix crashes (activating the route-manager) with a default GPS.
2010-08-16 17:10:12 +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
71fbacc6dc
Thorsten Brehm: GPWS: Fixed permanent blocking of lower prio warnings
...
Only block callouts which were actually issued to the pilot. When
multiple callouts trigger at the same time, allow lower prio warnings
to be issued once the higher prio ones are resolved.
=> Gear/flap warnings are now working reliably (no longer blocked
permanently when altitude callouts are enabled).
2010-08-14 10:23:13 +01:00
Torsten Dreyer
bc31bdbbbb
use simgear::strutils::rpad() instead of strncpy()
2010-08-12 13:03:26 +02:00
James Turner
cc7a9d4727
Make even more implict includes explicit.
2010-08-07 13:00:33 +01:00
James Turner
c61a14afdd
Once again, I forgot that we bind() subsystems *before* init().
2010-08-01 23:50:52 +01:00
James Turner
7aba4333a2
Reset - instruments can be re-inited now (reloads XML files)
2010-08-01 19:04:31 +01:00
James Turner
d9236f33b2
Remove use of simgear/screen/extensions.h.
2010-07-31 15:15:40 +01:00
Durk Talsma
314f3c5718
Properly compile kln89 code without reliance on ATCDCL.
2010-07-31 13:35:22 +02:00
James Turner
cba5066a6b
Thorsten: EGPWS fixes!
...
* Fix issue #139 , uninitialized variable causing sim deadlock in MK_VIII::Mode5Handler::get_soft_bias
* Fix more uninitialized variables sometimes causing warnings not to work.
* Fix some warnings only working on a single approach (missing reset).
* EGPWS self-test can now be triggered more than once (missing reset).
* Implement configuration options for attitude and altitude input selection.
2010-07-30 09:20:36 +01:00
James Turner
ab495d1370
Add --fg-aircraft option, and aircraft dir path list. Partial support in places that load files, for respecting the setting.
...
Add helper to look for an aircraft branch path in multiple candidate locations.
Update the main subsystems to use the helper, and hence load from any aircraft dir.
2010-07-28 22:03:10 +01:00
James Turner
d1852430bf
Make various implicit includes (via PLIB) explicit.
2010-07-28 10:25:42 +01:00
James Turner
9604908a8d
Remove all (2) uses of simgear/math/vector.h from FlightGear.
2010-07-23 13:26:07 +01:00
James Turner
37054a4960
Include of aircraft.hxx that slipped under the radar, oops.
2010-07-02 01:03:10 +01:00
James Turner
01e0156b5d
Remove current_aircraft global, fgAIRCRAFT struct, and dead code for reading aircraft dirs.
2010-07-01 22:33:51 +01:00
James Turner
a0588272dc
Merge branch 'topics/mainloop' into next
2010-06-26 15:30:00 +01:00
James Turner
85be9be1e0
Initial work on FDM shell, and removal of cur_fdm_state
2010-06-26 10:31:22 +01:00
Erik Hofman
de3afcce99
gcc issues 'format not a string literal and no format arguments' when running -Werror, trick gcc into thinking everything is alright.
2010-06-26 09:36:48 +02:00
Mathias Froehlich
721566a6e7
Fix some more unitialized value warnings.
2010-05-29 17:17:49 +02:00
Tim Moore
664bb77d95
Merge branch 'jmt/gps' into next
2010-05-05 12:02:16 +02:00
jmt
1222e9b094
Fix a crash if startup fails before the navradio is inited.
2010-05-05 12:02:07 +02:00
Tim Moore
0447581255
Merge branch 'jmt/gps' into next
2010-04-19 09:56:39 +02:00
torsten
0750d8a6d4
gps warning fix (xxx will be initialized after yyy)
2010-04-19 09:56:32 +02:00
Tim Moore
ebdeb3eed3
Merge branch 'jmt/gps' into next
...
Conflicts:
src/Instrumentation/navradio.cxx
2010-03-28 15:32:59 +02:00
fredb
1c7278b474
Initialise member variable
2010-03-28 15:26:43 +02:00
jmt
e4c4a3a412
MapWidget for the GUI, initial commit.
2010-03-28 15:25:47 +02:00
jmt
ee8437431a
Expose a flag indicating if the GPS is driving the AP (to give clearer user feedback when that is the case)
2010-03-28 15:21:05 +02:00
Tim Moore
1aff92ce49
Merge to get true base of James' recent gps changes
2010-03-28 15:20:09 +02:00
Tim Moore
70ebde4488
Merge branch 'jmt/gps' into next
...
Conflicts:
src/Instrumentation/gps.cxx
2010-03-28 00:34:51 +01:00
jmt
4e24fbbb91
GPS: enable switching to OBS/DTO mode with no valid scratch - use active waypoint.
2010-03-28 00:33:44 +01:00
jmt
40e383451b
GPS: add NS and EW velocity computation, which some real-world devices display.
2010-03-28 00:33:29 +01:00
jmt
4265b2e241
GPS: make slaved-to-gps read course from the GPS *when active*, via a listener.
2010-03-28 00:33:13 +01:00
jmt
0be2e03d7e
GPS: fix bugs where GPS overwrites NAV1 course, including --nav1 command line
2010-03-28 00:32:34 +01:00
Tim Moore
37d3cf7fbb
Merge branch 'syd/ias-limit' into next
2010-03-27 19:06:53 +01:00
jmt
5695395dd5
Add Mach/TAS computation to the airspeed indicator.
2010-03-27 19:06:42 +01:00
Tim Moore
7cde2e800b
Merge branch 'syd/ias-limit' into next
2010-03-20 18:45:52 +01:00
jmt
432da86c7b
Read airspeed-indicator overspeed limit values from instrument configuration, as Syd intended.
2010-03-20 18:45:43 +01:00
Tim Moore
a357aad365
Merge branch 'syd/ias-limit' into next
2010-03-16 15:12:46 +01:00
jmt
b1855b34c6
Syd Adams: only define overspeed-indicator properties when enabled.
2010-03-16 15:12:38 +01:00
jmt
65ad38ccae
Airspeed indicator: add default values for overspeed, and rename the
...
enable property to 'has-overspeed-indicator'.
2010-03-16 15:12:26 +01:00
Tim Moore
dd7a5dd32d
Merge branch 'syd/ias-limit' into next
2010-03-11 08:58:45 +01:00
jmt
45a446dfaf
Syd Adams:
...
add ias-limit (brarber-pole) computation to airpseed-indicator
expose selected DME frequency on the DME instrument
2010-03-11 08:58:23 +01:00
Tim Moore
7ee645aa20
Merge branch 'timoore/getpath-rebase' into next
2010-03-09 11:25:18 +01:00
Tim Moore
7ff80d11a0
changes for SGPropertyNode::getPath return type
...
It's now a std::string.
2010-03-09 11:24:45 +01:00
Tim Moore
fa7d9ed549
Merge branch 'jmt/gps'
2010-03-09 11:20:04 +01:00
Tim Moore
2a0fcea8a5
Merge branch 'vivian/tachy' into next
2010-03-09 10:39:30 +01:00
torsten
cb81aa9f65
one more gcc warning fix: xxx will be initialized after yyy
2010-03-09 10:39:02 +01:00
Tim Moore
37d0cfd6be
Merge branch 'vivian/tachy' into next
2010-02-26 08:47:41 +01:00
V Meazza
f112fc4638
Revised bugfix for tachymetric gunsight
2010-02-26 08:46:15 +01:00
Tim Moore
4a14f8c107
Merge branch 'jmt/navradio' into next
2010-02-17 07:29:44 +01:00
jmt
3fb898643e
Bugfix: don't crash on localizers with no associated runway (due to inconsistent nav.dat/apt.dat). Reported by Jacob Burbach.
2010-02-17 07:29:30 +01:00