]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/tacan.hxx
Pull Sound-manager out of FGGlobals
[flightgear.git] / src / Instrumentation / tacan.hxx
index b48057f4bd13dd806fd17dfd3e8333a4837cb45e..fcbc737c840de59d33bed1d55e9fc7509974d671 100644 (file)
 class TACAN : public SGSubsystem, public SGPropertyChangeListener
 {
 
-public:
+  public:
 
-    TACAN ( SGPropertyNode *node );
-    virtual ~TACAN ();
+    TACAN(SGPropertyNode *node);
+    virtual ~TACAN();
 
     virtual void init ();
     virtual void reinit ();
     virtual void update (double delta_time_sec);
 
-private:
+  private:
+
+    void disabled(bool force = false);
 
     void search (double frequency, const SGGeod& pos);
-  double searchChannel (const std::string& channel);
+    double searchChannel (const std::string& channel);
     void valueChanged (SGPropertyNode *);
 
     std::string _name;
@@ -59,7 +61,6 @@ private:
     SGPropertyNode_ptr _display_node;
     SGPropertyNode_ptr _x_shift_node;
     SGPropertyNode_ptr _y_shift_node;
-    SGPropertyNode_ptr _rotation_node;
 
     SGPropertyNode_ptr _in_range_node;
     SGPropertyNode_ptr _distance_node;
@@ -76,31 +77,14 @@ private:
     SGPropertyNode_ptr _channel_in3_node;
     SGPropertyNode_ptr _channel_in4_node;
 
-    SGPropertyNode_ptr _carrier_name_node;             // FIXME unused
-    SGPropertyNode_ptr _tanker_callsign_node;          // FIXME
-    SGPropertyNode_ptr _mp_callsign_node;              // FIXME
-
+    bool _was_disabled;
     bool _new_frequency;
     std::string _channel;
     double _last_distance_nm;
     double _frequency_mhz;
     double _time_before_search_sec;
 
-    bool _mobile_valid;
-    bool _transmitter_valid;
-
-    SGVec3d _transmitter;
-    SGGeod _transmitter_pos;
-    double _transmitter_range_nm;
-    double _transmitter_bias;
-    std::string _transmitter_name;
-    std::string _transmitter_ident;
-
-    SGGeod _mobilePos;
-    double _mobile_range_nm;
-    double _mobile_bias;
-    std::string _mobile_name;
-    std::string _mobile_ident;
+    FGNavRecordRef _active_station;
 
     int _listener_active;
 };