X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fdme.hxx;h=f2a6bf9bd3080680993e6a15690a7d45f43afb62;hb=d05121ef4689d2b50b3fe1848cbb0d1f5a1db877;hp=b8280adaa14b321b5a51e0792129a175daf0640f;hpb=eaf495444148a3338456dda8c61366b193f9d48e;p=flightgear.git diff --git a/src/Cockpit/dme.hxx b/src/Cockpit/dme.hxx index b8280adaa..f2a6bf9bd 100644 --- a/src/Cockpit/dme.hxx +++ b/src/Cockpit/dme.hxx @@ -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 @@ -25,15 +25,14 @@ #define _FG_DME_HXX -#include
#include
#include - +#include // #include #include -#include +// #include #include // #include #include @@ -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 {