]> 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 0f1eb0667c43c26053d7eb10440fffb94b3c4dbb..6eb52d1f04fc2a67d58e6079cc5125b30ff88f65 100644 (file)
@@ -48,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;
@@ -171,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