]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/navcom.hxx
Begin interfacing the navcom's to the electrical model.
[flightgear.git] / src / Cockpit / navcom.hxx
index d05881abe89c0cfc6c7517216ad7c748a6613a06..6eb52d1f04fc2a67d58e6079cc5125b30ff88f65 100644 (file)
 
 #include <Navaids/ilslist.hxx>
 #include <Navaids/navlist.hxx>
-#include <Sound/beacon.hxx>
 #include <Sound/morse.hxx>
 
 class FGNavCom : public FGSubsystem
 {
-    FGBeacon beacon;
     FGMorse morse;
 
     SGInterpTable *term_tbl;
@@ -50,6 +48,7 @@ class FGNavCom : public FGSubsystem
     SGPropertyNode *lon_node;
     SGPropertyNode *lat_node;
     SGPropertyNode *alt_node;
+    SGPropertyNode *bus_power;
 
     string last_nav_id;
     bool last_nav_vor;
@@ -173,6 +172,9 @@ public:
     inline void set_nav_ident_btn( bool val ) { nav_ident_btn = val; }
 
     // NavCom Accessors
+    inline bool has_power() const {
+        return power_btn && (bus_power->getDoubleValue() > 1.0);
+    }
     inline bool get_power_btn() const { return power_btn; }
 
     // COMM Accessors