]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/tacan.hxx
Support for multiple data dirs.
[flightgear.git] / src / Instrumentation / tacan.hxx
index 083efa665042b6fbf2d1081a88ce3acdcde9b653..b48057f4bd13dd806fd17dfd3e8333a4837cb45e 100644 (file)
@@ -40,23 +40,19 @@ public:
     virtual ~TACAN ();
 
     virtual void init ();
+    virtual void reinit ();
     virtual void update (double delta_time_sec);
 
 private:
 
-    void search (double frequency, double longitude_rad,
-                 double latitude_rad, double altitude_m);
+    void search (double frequency, const SGGeod& pos);
   double searchChannel (const std::string& channel);
     void valueChanged (SGPropertyNode *);
 
     std::string _name;
     unsigned int _num;
 
-    SGPropertyNode_ptr _longitude_node;
-    SGPropertyNode_ptr _latitude_node;
-    SGPropertyNode_ptr _altitude_node;
     SGPropertyNode_ptr _heading_node;
-    SGPropertyNode_ptr _yaw_node;
     SGPropertyNode_ptr _serviceable_node;
     SGPropertyNode_ptr _electrical_node;
     SGPropertyNode_ptr _frequency_node;
@@ -96,15 +92,12 @@ private:
     SGVec3d _transmitter;
     SGGeod _transmitter_pos;
     double _transmitter_range_nm;
-    double _transmitter_bearing_deg;
     double _transmitter_bias;
     std::string _transmitter_name;
     std::string _transmitter_ident;
 
-    double _mobile_lat, _mobile_lon;
-    double _mobile_elevation_ft;
+    SGGeod _mobilePos;
     double _mobile_range_nm;
-    double _mobile_bearing_deg;
     double _mobile_bias;
     std::string _mobile_name;
     std::string _mobile_ident;