1
0
Fork 0
flightgear/src/Instrumentation
curt b423d0bc1d Torsten Dreyer:
Here is a little patch that changes the behaviour of the VOR CDI and OFF-flag
for indicators like the HSI when getting outside the range of the VOR
station.

Currently, when flying at a distance between the effective_range and twice the
effective_range of a VOR station, the in-range property is computed based on
a random value, causing the OFF Flag and the CDI bar to perform an ugly
jitter.

The attached patch introduces a new property signal-quality-norm which is
computed based on the distance to the station and the range. It is 1.0 when
the distance is less than the range and decreases by 1/x^2 for distances
greater than the range leading to a signal-quality-norm of 0.25 for distances
two times the range, 0.125 for three times the range and so on.
The in-range flag is tied to a signal-quality-norm greater than 0.2 (fixed
squelch).
The CDI and GS needle deflection is multiplied with the signal-quality-norm.

The benefit is:
- Ability to animate the OFF-Flag with a smooth transition.
- CDI and GS needle deflection shows correct values when in range
(signal-quality-norm=1.0) and show some wrong indication when the range is
exceeded
- CDI and GS needle start to move, even when the OFF flag is visible
- No more jitter for flag and needles

See the new SenecaII ki525a hsi as an example at
http://www.t3r.de/fg/navpatch.jpg
The numbers on the image are:
(1) the new property signal-quality-norm
(2) distance exceeds the effective-range by 30%
(3) NAV flag has a rotation animation bound to signal-quality-norm and is
partially visible
(4) CDI is partially deflected even with NAV flag shown

This implementation better matches reality - at least, how I observed it ;-)
2008-08-28 21:24:02 +00:00
..
HUD James Turner: Improved runway management code: 2008-08-14 18:13:39 +00:00
KLN89 James Turner: 2008-08-22 11:22:22 +00:00
.cvsignore Ignore generated files. 2002-09-24 14:55:14 +00:00
adf.cxx James Turner: 2008-08-03 14:34:42 +00:00
adf.hxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
agradar.cxx For the agRadar, initialize property nodes with defaults. 2008-03-22 09:19:21 +00:00
agradar.hxx For the agRadar, initialize property nodes with defaults. 2008-03-22 09:19:21 +00:00
airspeed_indicator.cxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
airspeed_indicator.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
altimeter.cxx Win32 fix 2007-04-03 11:36:47 +00:00
altimeter.hxx John DENKER: 2007-03-31 09:36:19 +00:00
attitude_indicator.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
attitude_indicator.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
clock.cxx - simplify number/name handling 2006-10-26 15:06:12 +00:00
clock.hxx - simplify number/name handling 2006-10-26 15:06:12 +00:00
dclgps.cxx James Turner: 2008-08-22 11:22:22 +00:00
dclgps.hxx James Turner: 2008-08-22 11:22:22 +00:00
dme.cxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
dme.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
gps.cxx James Turner: 2008-08-15 18:48:11 +00:00
gps.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
groundradar.cxx James Turner: Improved runway management code: 2008-08-14 18:13:39 +00:00
groundradar.hxx James Turner: Improved runway management code: 2008-08-14 18:13:39 +00:00
gsdi.cxx simplify name/number handling 2006-10-26 17:39:47 +00:00
gsdi.hxx simplify name/number handling 2006-10-26 17:39:47 +00:00
gyro.cxx If the gyro becomes unserviceable, stop spinning immediately. 2003-01-26 20:20:33 +00:00
gyro.hxx Added a Gyro helper class to factor out some common code for managing 2003-01-25 19:49:27 +00:00
heading_indicator.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
heading_indicator.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
heading_indicator_dg.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
heading_indicator_dg.hxx Vivian MEAZZA: Directional Gyro (DG) compass & electrically powered master 2006-10-23 21:58:28 +00:00
heading_indicator_fg.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
heading_indicator_fg.hxx Vivian Meazza: 2006-06-24 03:42:30 +00:00
inst_vertical_speed_indicator.cxx The Concorde Maintainer: 2008-02-07 20:41:00 +00:00
inst_vertical_speed_indicator.hxx The Concorde Maintainer: 2008-02-07 20:41:00 +00:00
instrument_mgr.cxx Remove unused variables 2008-06-01 14:59:20 +00:00
instrument_mgr.hxx - remove evil exit() 2006-06-12 15:39:38 +00:00
kr_87.cxx James Turner: 2008-08-03 14:34:42 +00:00
kr_87.hxx Make more use of SGGeod 2006-06-15 19:16:21 +00:00
kt_70.cxx new FSF address 2006-02-21 01:16:04 +00:00
kt_70.hxx fix another crash on exit by finally converting the rest of unguarded 2006-06-11 10:21:10 +00:00
mag_compass.cxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
mag_compass.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
Makefile.am ground radar from Vivian Mezza 2008-03-17 08:47:16 +00:00
marker_beacon.cxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
marker_beacon.hxx cosmetics: 2006-06-24 07:48:05 +00:00
mk_viii.cxx James Turner: 2008-08-15 18:48:11 +00:00
mk_viii.hxx James Turner: 2008-08-15 18:48:11 +00:00
mrg.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
mrg.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
navradio.cxx Torsten Dreyer: 2008-08-28 21:24:02 +00:00
navradio.hxx Torsten Dreyer: 2008-08-28 21:24:02 +00:00
od_gauge.cxx Use a render target fallback that works in any case. 2007-12-11 06:19:08 +00:00
od_gauge.hxx Vivian MEAZZA & Tim MOORE: 2007-06-24 07:57:45 +00:00
rad_alt.cxx Small cleanup of terrain radar 2008-03-17 08:47:31 +00:00
rad_alt.hxx ground radar from Vivian Mezza 2008-03-17 08:47:16 +00:00
README Added a README for the src/Instrumentation/ directory. 2003-01-29 15:38:52 +00:00
render_area_2d.cxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
render_area_2d.hxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
slip_skid_ball.cxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
slip_skid_ball.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
tacan.cxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
tacan.hxx - simplify number/name handling 2006-10-26 15:06:12 +00:00
transponder.cxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
transponder.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
turn_indicator.cxx This should apply, and everything should build cleanly, in isolation from the 2008-07-25 18:38:29 +00:00
turn_indicator.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
vertical_speed_indicator.cxx Nick WARNE: fix property name 2007-02-23 21:34:41 +00:00
vertical_speed_indicator.hxx Roy Vegard Ovesen: 2006-12-06 22:11:43 +00:00
wxradar.cxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00
wxradar.hxx - remove the SG_GLxxxx_H #defines, since OSG provides its own versions 2008-07-27 16:25:13 +00:00

src/Instrumentation/ - gauge and avionics support code

This directory contains code to support gauges, avionics, and other
instruments in FlightGear.  The file instrument_mgr.[ch]xx contains a
subsystem group that holds all of the individual instruments.  Every
instrument should extend FGSubsystem, and then should be added to the
group in the FGInstrumentMgr constructor.

Code is gradually moving into here from other areas, especially the
src/Cockpit/ directory.  Eventually, there will be an XML
configuration file to select what instrumentation modules should be
available, so that different aircraft can have appropriate support.