]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/dme.hxx
Fix my mailing address by replacing it with my web page.
[flightgear.git] / src / Cockpit / dme.hxx
index b8280adaa14b321b5a51e0792129a175daf0640f..f2a6bf9bd3080680993e6a15690a7d45f43afb62 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started April 2000.
 //
-// Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2000  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
 #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>
 
-#include <Navaids/ilslist.hxx>
+// #include <Navaids/ilslist.hxx>
 #include <Navaids/navlist.hxx>
 // #include <Sound/beacon.hxx>
 #include <Sound/morse.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;
@@ -66,6 +65,7 @@ class FGDME : public FGSubsystem
     double x;
     double y;
     double z;
+    double bias;
     double dist;
     double prev_dist;
     double spd;
@@ -93,7 +93,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 {