SGGeod _tgtpos;
bool _solid; // if true ground is solid for FDMs
- double _load_resistance; // ground load resistanc N/m^2
- double _frictionFactor; // dimensionless modifier for Coefficient of Friction
double _tgtrange, _tgtbrg;
double _ht_agl_ft;
- double _relbrg, _truebrg;
+ double _relbrg;
double _parent_speed, _parent_hdg;
double _interval;
double user_yaw;
double user_roll;
double user_speed;
- double user_agl;
double wind_from_east;
double wind_from_north;
//////////////////////////////////////////////////////////////////////
-FGAltimeter::FGAltimeter() : kset(atmodel::ISA::P0), kft(0)
+FGAltimeter::FGAltimeter()
{
cache();
}
class FGAltimeter : public FGAtmoCache {
- double kset;
- double kft;
-
public:
FGAltimeter();
double reading_ft(const double p_inHg,
}
AxisElement::AxisElement(CFDictionaryRef element, long page, long usage) :
- HIDElement(element, page, usage), dead_band(0.00), saturate(1.0)
+ HIDElement(element, page, usage), dead_band(0.00)
{
min = GetHIDElementLongValue(element, kIOHIDElementMinKey);
max = GetHIDElementLongValue(element, kIOHIDElementMaxKey);
long min;
long max;
float dead_band;
- float saturate;
long center;
bool isRelative;
bool isWrapping;
Format _mode;
std::string _format;
int _halign; // HUDText alignment
- int _blink;
bool _box;
- float _text_y;
float _pointer_width;
float _pointer_length;
virtual void update (double dt);
private:
-
- double _last_pos;
-
std::string _name;
int _num;
SGVec3d _transmitter;
SGGeod _transmitter_pos;
double _transmitter_range_nm;
- double _transmitter_bearing_deg;
double _transmitter_bias;
std::string _transmitter_name;
std::string _transmitter_ident;
SGGeod _mobilePos;
double _mobile_range_nm;
- double _mobile_bearing_deg;
double _mobile_bias;
std::string _mobile_name;
std::string _mobile_ident;
# 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 //////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
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();
}
static const SensitivityLevel sensitivityLevels[];
TCAS* tcas;
+#ifdef FEATURE_TCAS_DEBUG_THREAT_DETECTOR
int checkCount;
-
+#endif // of FEATURE_TCAS_DEBUG_THREAT_DETECTOR
+
SGPropertyNode_ptr nodeLat;
SGPropertyNode_ptr nodeLon;
SGPropertyNode_ptr nodePressureAlt;