X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fadf.hxx;h=0feac829db1cd041d842f25722777627d5859de0;hb=bb2b03c7e392e107aeaf7dbc4eecc59064b28512;hp=6f584803c6bf26bb38b773b45e5bc31e87237946;hpb=f614545fc5a6f0fb12a05344d9ee41b2a49cc04a;p=flightgear.git diff --git a/src/Instrumentation/adf.hxx b/src/Instrumentation/adf.hxx index 6f584803c..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; /** @@ -51,7 +51,6 @@ class ADF : public SGSubsystem public: ADF ( SGPropertyNode *node ); - ADF (); virtual ~ADF (); virtual void init (); @@ -64,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; @@ -85,20 +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 name; - int num; - string adf_ident; + string _adf_ident; };