]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/navrecord.cxx
bind the sky disable cutoff distance to a property
[flightgear.git] / src / Navaids / navrecord.cxx
index 03317a57d3342f62cd68718c36d1cc88e910ae5c..d30635303e3fc932fc46293b7a8b934fd4bdb34a 100644 (file)
@@ -41,6 +41,7 @@
 #include <Airports/xmlloader.hxx>
 
 #include <Main/fg_props.hxx>
+#include <Navaids/PositionedBinding.hxx>
 
 FGNavRecord::FGNavRecord(Type aTy, const std::string& aIdent, 
   const std::string& aName, const SGGeod& aPos,
@@ -51,8 +52,7 @@ FGNavRecord::FGNavRecord(Type aTy, const std::string& aIdent,
   multiuse(aMultiuse),
   _name(aName),
   mRunway(NULL),
-  serviceable(true),
-  trans_ident(aIdent)
+  serviceable(true)
 { 
   initAirportRelation();
 
@@ -60,7 +60,7 @@ FGNavRecord::FGNavRecord(Type aTy, const std::string& aIdent,
   // assign our own defaults, unless the range is not set for some
   // reason.
   if (range < 0.1) {
-    SG_LOG(SG_GENERAL, SG_WARN, "navaid " << ident() << " has no range set, using defaults");
+    SG_LOG(SG_GENERAL, SG_DEBUG, "navaid " << ident() << " has no range set, using defaults");
     switch (type()) {
     case NDB:
     case VOR:
@@ -187,6 +187,13 @@ double FGNavRecord::localizerWidth() const
 
 }
 
+flightgear::PositionedBinding*
+FGNavRecord::createBinding(SGPropertyNode* nd) const
+{
+    return new flightgear::NavaidBinding(this, nd);
+}
+
+
 FGTACANRecord::FGTACANRecord(void) :
     channel(""),
     freq(0)