X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fkr_87.hxx;h=626b502838405f55fb9b0663258507e82c8c62f5;hb=51a1c86f00d5e19547cf3eb368b6a28dfdb966f4;hp=2be8abc77f1504c4c0c6f548cb0bd30f66b95a84;hpb=c9813d1b5d79b4aad13c263690a0223086af25ac;p=flightgear.git diff --git a/src/Instrumentation/kr_87.hxx b/src/Instrumentation/kr_87.hxx index 2be8abc77..626b50283 100644 --- a/src/Instrumentation/kr_87.hxx +++ b/src/Instrumentation/kr_87.hxx @@ -29,27 +29,24 @@ #include #include +#include #include #include -#include +class SGSampleGroup; class FGKR_87 : public SGSubsystem { - FGMorse morse; - - SGPropertyNode *lon_node; - SGPropertyNode *lat_node; - SGPropertyNode *alt_node; - SGPropertyNode *bus_power; - SGPropertyNode *serviceable; +private: + SGPropertyNode_ptr bus_power; + SGPropertyNode_ptr serviceable; bool need_update; // internal values - string ident; - string trans_ident; + std::string ident; + std::string trans_ident; bool valid; bool inrange; double stn_lon; @@ -59,9 +56,7 @@ class FGKR_87 : public SGSubsystem double effective_range; double dist; double heading; - double x; - double y; - double z; + SGVec3d xyz; double goal_needle_deg; double et_flash_time; @@ -106,12 +101,15 @@ class FGKR_87 : public SGSubsystem // internal periodic station search timer double _time_before_search_sec; -public: + SGSharedPtr _sgr; + simgear::TiedPropertyList _tiedProperties; +public: FGKR_87( SGPropertyNode *node ); ~FGKR_87(); void init (); + void reinit (); void bind (); void unbind (); void update (double dt_sec); @@ -120,7 +118,7 @@ public: void search (); // internal values - inline const string& get_ident() const { return ident; } + inline const std::string& get_ident() const { return ident; } inline bool get_valid() const { return valid; } inline bool get_inrange() const { return inrange; } inline double get_stn_lon() const { return stn_lon; }