X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fadf.hxx;h=0feac829db1cd041d842f25722777627d5859de0;hb=61812ef4b88f5aa74e9cc0630c84d6fc6b4a51cd;hp=f897cb5e401495aeb04ae8543c2ed866fcc30e8e;hpb=57971cbd9bbf49e0b219871e99cb0d1b1f7f2a2c;p=flightgear.git diff --git a/src/Instrumentation/adf.hxx b/src/Instrumentation/adf.hxx index f897cb5e4..0feac829d 100644 --- a/src/Instrumentation/adf.hxx +++ b/src/Instrumentation/adf.hxx @@ -19,7 +19,7 @@ #include #include -SG_USING_STD(string); +using std::string; /** @@ -50,7 +50,7 @@ class ADF : public SGSubsystem public: - ADF (); + ADF ( SGPropertyNode *node ); virtual ~ADF (); virtual void init (); @@ -63,6 +63,9 @@ private: void search (double frequency, double longitude_rad, double latitude_rad, double altitude_m); + string _name; + unsigned int _num; + SGPropertyNode_ptr _longitude_node; SGPropertyNode_ptr _latitude_node; SGPropertyNode_ptr _altitude_node; @@ -84,16 +87,15 @@ private: 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 _adf_ident; };