]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/dme.hxx
Multiplayer client/server system -- MessageBuf class and test harness complete
[flightgear.git] / src / Cockpit / dme.hxx
index b8280adaa14b321b5a51e0792129a175daf0640f..5b1483fc505775c77ab8c4300f8143824adffb83 100644 (file)
 #define _FG_DME_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>
 
@@ -42,7 +41,7 @@
 // #include "kt_70.hxx"            // Transponder
 // #include "navcom.hxx"
 
-class FGDME : public FGSubsystem
+class FGDME : public SGSubsystem
 {
     SGPropertyNode *lon_node;
     SGPropertyNode *lat_node;
@@ -93,7 +92,7 @@ public:
 
     // DME Accessors
     inline bool has_power() const {
-        return (switch_pos == 1 || switch_pos == 3)
+        return (switch_pos > 0)
             && (bus_power->getDoubleValue() > 1.0);
     }
     inline bool navcom1_on() const {