]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/kt_70.hxx
Boris Koenig:
[flightgear.git] / src / Cockpit / kt_70.hxx
index 2dca70308aee38754c763268be50eabf74b9b12a..7fdb649e128bc1197243fe4c126f8f73de82dc6f 100644 (file)
 #define _FG_KT_70_HXX
 
 
-#include <Main/fgfs.hxx>
 #include <Main/fg_props.hxx>
 
 #include <simgear/compiler.h>
-
+#include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/math/interpolater.hxx>
 #include <simgear/timing/timestamp.hxx>
 
 #include <Sound/morse.hxx>
 
 
-class FGKT_70 : public FGSubsystem
+class FGKT_70 : public SGSubsystem
 {
     SGPropertyNode *lon_node;
     SGPropertyNode *lat_node;
     SGPropertyNode *alt_node;
+    SGPropertyNode *bus_power;
+    SGPropertyNode *serviceable_node;
 
     // internal values
     double r_flash_time;
@@ -81,9 +82,9 @@ public:
     void search () { /* empty placeholder */ }
 
     // internal values
-
-    // modes
-    // inline int get_stby_mode() const { return stby_mode; }
+    inline bool has_power() const {
+        return (func_knob > 0) && (bus_power->getDoubleValue() > 1.0);
+    }
 
     // input and buttons
     inline bool get_ident_btn() const { return ident_btn; }