5c18572c64
All necessary elements for an ADF gauge had been migrated from Cockpit/kr_87.cxx to Instrumentation/adf.cxx. Migrating the sound related elements was apparently planned, but not done yet. This intermediate state broke the ident morse sound: it couldn't get turned off and it always indicated "SF", regardless of the tuned-in frequency. The following patches continue the migration: adf-radio.diff => Base/Aircraft/Instruments/adf-radio.xml: --------------------------------------------------------------- * sets maximum volume to 1 (rather than 2); Not only is 1 loud enough (and 2 unpleasantly noisy), it also prevents the knob from being turned to non-existant positions. :-) * fixes wrong use of /instrumentation/adf/ident * the voice/ident selector(?) remains unchanged, but as it's not switched to "IDENT", there'll be no ident sound by default this is consistent with other sounds and DME. radiostack.diff => src/Cockpit/radiostack.[ch]xx: --------------------------------------------------------------- * comment out use of FGKR_87 class. kr_87.[ch]xx is now no longer used. kr-87adf.xml would no longer work, either, but isn't used anywhere, anyway. Future adf radios have to use the adf instrument, using xml/Nasal for specific hardware implementation details. adf.diff => src/Instrumentation/adf.[ch]xx: --------------------------------------------------------------- * adds ident morse sound capability using two new input properties: - /instrumentation/adf/volume-norm (double) - /instrumentation/adf/ident-audible (bool) |
||
---|---|---|
.. | ||
.cvsignore | ||
adf.cxx | ||
adf.hxx | ||
airspeed_indicator.cxx | ||
airspeed_indicator.hxx | ||
altimeter.cxx | ||
altimeter.hxx | ||
annunciator.cxx | ||
annunciator.hxx | ||
attitude_indicator.cxx | ||
attitude_indicator.hxx | ||
clock.cxx | ||
clock.hxx | ||
dme.cxx | ||
dme.hxx | ||
gps.cxx | ||
gps.hxx | ||
gyro.cxx | ||
gyro.hxx | ||
heading_indicator.cxx | ||
heading_indicator.hxx | ||
instrument_mgr.cxx | ||
instrument_mgr.hxx | ||
mag_compass.cxx | ||
mag_compass.hxx | ||
Makefile.am | ||
README | ||
slip_skid_ball.cxx | ||
slip_skid_ball.hxx | ||
turn_indicator.cxx | ||
turn_indicator.hxx | ||
vertical_speed_indicator.cxx | ||
vertical_speed_indicator.hxx |
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.