#include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/sound/soundmgr_openal.hxx>
+#include <simgear/sound/sample_group.hxx>
#include <simgear/structure/exception.hxx>
using std::string;
# include <Include/no_version.h>
#endif
-#include <Main/fg_props.hxx>
-#include <Main/globals.hxx>
-#include "instrument_mgr.hxx"
-#include "tcas.hxx"
-
///////////////////////////////////////////////////////////////////////////////
// debug switches /////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//#define FEATURE_TCAS_DEBUG_ADV_GENERATOR
//#define FEATURE_TCAS_DEBUG_PROPERTIES
+#include <Main/fg_props.hxx>
+#include <Main/globals.hxx>
+#include "instrument_mgr.hxx"
+#include "tcas.hxx"
+
///////////////////////////////////////////////////////////////////////////////
// constants //////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
void
TCAS::AdvisoryCoordinator::init(void)
+{
+ reinit();
+}
+
+void
+TCAS::AdvisoryCoordinator::reinit(void)
{
clear();
previous = current;
TCAS::ThreatDetector::ThreatDetector(TCAS* _tcas) :
tcas(_tcas),
- checkCount(0),
pAlarmThresholds(&sensitivityLevels[0])
{
+#ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR
+ checkCount = 0;
+#endif
self.radarAltFt = 0.0;
unitTest();
}
threatDetector.init();
}
+void
+TCAS::reinit(void)
+{
+ nextUpdateTime = 0;
+ advisoryCoordinator.reinit();
+}
+
void
TCAS::bind(void)
{