]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/adf.hxx
- fix unzoomed tapes (TODO: restore tick length)
[flightgear.git] / src / Instrumentation / adf.hxx
index fa17234f23a9342792c98ca1553e6da3f411adc9..d43bdce600e16845ccb83b5d0f2f2483627d9175 100644 (file)
@@ -17,6 +17,7 @@
 #include <simgear/props/props.hxx>
 
 #include <simgear/structure/subsystem_mgr.hxx>
+#include <Sound/morse.hxx>
 
 SG_USING_STD(string);
 
@@ -35,6 +36,8 @@ SG_USING_STD(string);
  * /instrumentation/adf/error-deg
  * /instrumentation/adf/frequencies/selected-khz
  * /instrumentation/adf/mode
+ * /instrumentation/adf/ident-audible
+ * /instrumentation/adf/volume-norm
  *
  * Output properties:
  *
@@ -47,6 +50,7 @@ class ADF : public SGSubsystem
 
 public:
 
+    ADF ( SGPropertyNode *node );
     ADF ();
     virtual ~ADF ();
 
@@ -73,18 +77,26 @@ private:
     SGPropertyNode_ptr _in_range_node;
     SGPropertyNode_ptr _bearing_node;
     SGPropertyNode_ptr _ident_node;
+    SGPropertyNode_ptr _ident_audible_node;
+    SGPropertyNode_ptr _volume_node;
 
     double _time_before_search_sec;
 
     int _last_frequency_khz;
     bool _transmitter_valid;
     string _last_ident;
-    Point3D _transmitter;
-    double _transmitter_lon_deg;
-    double _transmitter_lat_deg;
-    double _transmitter_elevation_ft;
+    SGGeod _transmitter_pos;
+    SGVec3d _transmitter_cart;
     double _transmitter_range_nm;
 
+    FGMorse morse;
+    int _ident_count;
+    time_t _last_ident_time;
+    double _last_volume;
+
+    string name;
+    int num;
+    string adf_ident;
 };