28fe28ec4f
_course_deg is first initialized in the if()-branch (gps.cxx:419). But this branch isn't entered at first run if wp0==wp1, so that in line 615 fgfs tries to SG_NORMALIZE_RANGE() a random value, which can take a long while if the number huge. This was occasionally a number greater than 10160! - initialize all vars before they are used (fixes endless loop) - fix some compiler warnings (initialization order, unused vars) |
||
---|---|---|
.. | ||
.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 | ||
encoder.cxx | ||
encoder.hxx | ||
gps.cxx | ||
gps.hxx | ||
gyro.cxx | ||
gyro.hxx | ||
heading_indicator.cxx | ||
heading_indicator.hxx | ||
instrument_mgr.cxx | ||
instrument_mgr.hxx | ||
kr_87.cxx | ||
kr_87.hxx | ||
kt_70.cxx | ||
kt_70.hxx | ||
mag_compass.cxx | ||
mag_compass.hxx | ||
Makefile.am | ||
marker_beacon.cxx | ||
marker_beacon.hxx | ||
navradio.cxx | ||
navradio.hxx | ||
README | ||
slip_skid_ball.cxx | ||
slip_skid_ball.hxx | ||
transponder.cxx | ||
transponder.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.